d09e5e02eb6ff08648c229aa60d0e1ade83f712b
[gnulib.git] / ChangeLog
1 2010-04-26  Eric Blake  <eblake@redhat.com>
2
3         git-version-gen: allow use on EBCDIC hosts
4         * build-aux/git-version-gen (dirty): Use literal rather than tying
5         ourselves to ascii.
6         Reported by Steve Goetze.
7
8 2010-04-25  Bruno Haible  <bruno@clisp.org>
9
10         netdb: Add support for GNULIB_POSIXCHECK.
11         * lib/netdb.in.h: Include warn-on-use.h.
12         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13         functions are used when GNULIB_POSIXCHECK is defined and the
14         getaddrinfo module is not in use.
15         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16         freeaddrinfo, gai_strerror, getnameinfo are declared.
17         * modules/netdb (Depends-on): Add warn-on-use.
18         (Makefile.am): Include warn-on-use.h in netdb.h.
19
20 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
21
22         build: avoid "make check" failure without .git/ directory
23         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24         there is no .git/ directory.
25
26 2010-04-25  Bruno Haible  <bruno@clisp.org>
27
28         ptsname: Fix misuse of ttyname_r.
29         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30         of errno.
31
32 2010-04-25  Bruno Haible  <bruno@clisp.org>
33
34         ttyname_r: Make it work on Solaris 10.
35         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
36         if the system function has the POSIX declaration. Test whether the
37         function fails if the buffer is less than 128 bytes large.
38         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
39         system's ttyname_r function. Provide a reasonably large buffer.
40         * modules/ttyname_r (Depends-on): Add extensions.
41         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
42
43 2010-04-25  Bruno Haible  <bruno@clisp.org>
44
45         Use the 'extensions' module for some more functions on Solaris.
46         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
47         module.
48         * doc/posix-functions/ctime_r.texi: Likewise.
49         * doc/posix-functions/getgrgid_r.texi: Likewise.
50         * doc/posix-functions/getgrnam_r.texi: Likewise.
51         * doc/posix-functions/getpwnam_r.texi: Likewise.
52         * doc/posix-functions/getpwuid_r.texi: Likewise.
53         * doc/posix-functions/readdir_r.texi: Likewise.
54         * doc/posix-functions/sigwait.texi: Likewise.
55         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
56         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
57
58 2010-04-25  Bruno Haible  <bruno@clisp.org>
59
60         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
61         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
62         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
63         * lib/ttyname_r.c: Include <limits.h>.
64         (ttyname_r): Define using the system's ttyname_r function, if it exists
65         and not on Solaris.
66         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
67         set.
68         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
69         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
70         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
71         Reported by Simon Josefsson.
72
73 2010-04-25  Bruno Haible  <bruno@clisp.org>
74
75         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
76         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
77         * doc/posix-functions/ctime_r.texi: Likewise.
78         * doc/posix-functions/getgrgid_r.texi: Likewise.
79         * doc/posix-functions/getgrnam_r.texi: Likewise.
80         * doc/posix-functions/getlogin_r.texi: Likewise.
81         * doc/posix-functions/getpwnam_r.texi: Likewise.
82         * doc/posix-functions/getpwuid_r.texi: Likewise.
83         * doc/posix-functions/readdir_r.texi: Likewise.
84         * doc/posix-functions/sigwait.texi: Likewise.
85         * doc/posix-functions/ttyname_r.texi: Likewise.
86         Reported by Simon Josefsson.
87
88 2010-04-25  Bruno Haible  <bruno@clisp.org>
89
90         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
91         * gnulib-tool (func_usage): Document that --with-*-tests options apply
92         also to --create-testdir.
93         (func_acceptable): Don't consider the status of *-tests modules here.
94         (func_modules_transitive_closure): Consider it here, before including a
95         test module.
96         (func_import, func_create_testdir): Set inc_all_direct_tests,
97         inc_all_indirect_tests.
98         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
99         --create-testdir and --create-megatestdir.
100
101 2010-04-25  Bruno Haible  <bruno@clisp.org>
102
103         gnulib-tool: Add --without-*-tests options.
104         * gnulib-tool (func_usage): Document the --without-*-tests options.
105         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
106         excl_unportable_tests): New variables.
107         Fail if they are specified with --import or --update.
108         (func_acceptable): Respect the excl_*_tests variables.
109         (func_import): Set the excl_*_tests variables to empty.
110
111 2010-04-25  Simon Josefsson  <simon@josefsson.org>
112             Bruno Haible  <bruno@clisp.org>
113
114         Work around a MacOS X 10.4 bug with openpty.
115         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
116         * tests/test-openpty.c (main): Close the master side explicitly.
117
118 2010-04-25  Bruno Haible  <bruno@clisp.org>
119
120         strnlen: Fix a C++ test error on MacOS X and Solaris.
121         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
122         the function is not declared.
123         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
124         Simon Josefsson.
125
126 2010-04-24  Bruno Haible  <bruno@clisp.org>
127
128         Avoid a gcc warning.
129         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
130         of correct type for %08lx directive.
131         Reported by Eric Blake.
132
133 2010-04-24  Bruno Haible  <bruno@clisp.org>
134
135         vasnprintf: Correct errno value in case of out-of-memory.
136         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
137         or sprintf. Use the errno value from SNPRINTF or sprintf.
138         Reported by Ian Beckwith <ianb@erislabs.net>.
139
140 2010-04-24  Bruno Haible  <bruno@clisp.org>
141
142         ansi-c++-opt: Find correct compiler when cross-compiling.
143         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
144         AC_CHECK_PROGS.
145         Reported by Simon Josefsson.
146
147 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
148
149         vc-list-files: Add support for subversion
150         * build-aux/vc-list-files: Use "svn list" to generate the list of
151         files controlled by subversion.
152
153 2010-04-23  Jim Meyering  <meyering@redhat.com>
154
155         vc-list-files tests: convert to use init.sh
156         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
157         path_prepend_.
158         Use Exit, not exit.
159         Use skip_ rather than open coding it.
160         Remove trap set-up and compare definitions.
161         * tests/test-vc-list-files-git.sh: Likewise.
162         * modules/vc-list-files-tests (Files): Add tests/init.sh.
163
164 2010-04-22  Simon Josefsson  <simon@josefsson.org>
165
166         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
167         backup files.
168
169 2010-04-21  Simon Josefsson  <simon@josefsson.org>
170
171         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
172
173 2010-04-20  Eric Blake  <eblake@redhat.com>
174
175         tests: be robust to ignored SIGPIPE
176         * tests/test-select-in.sh: Consume all output.
177         * tests/test-lseek.sh: Check correct exit status, while avoiding
178         EPIPE.
179
180 2010-04-20  Simon Josefsson  <simon@josefsson.org>
181             Bruno Haible  <bruno@clisp.org>
182
183         visibility: Don't use -fvisibility if it leads to a warning.
184         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
185         yes, don't pretend that visibility works if it leads to a warning.
186         Reported by Mike Gran <spk121@yahoo.com>.
187
188 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
189
190         * build-aux/bootstrap: Use "git -h" for testing for supported options
191         instead of "git --help".  The short-form option only shows a summary,
192         and doesn't layout the full man page.  Grep for the full option name
193         in the summary, too.
194
195 2010-04-19  Bruno Haible  <bruno@clisp.org>
196
197         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
198         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
199         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
200         mention of RELOCATABLE_STRIP.
201         Reported by Sylvain Beucler <beuc@beuc.net>.
202
203 2010-04-19  Bruno Haible  <bruno@clisp.org>
204
205         * lib/diffseq.h: Fix typo in comment.
206         Reported by Eric Blake.
207
208 2010-04-19  Bruno Haible  <bruno@clisp.org>
209
210         ioctl: Move autoconf macro to a .m4 file.
211         * m4/ioctl.m4: New file, extracted from modules/ioctl.
212         * modules/ioctl (Files): Add it.
213         (configure.ac): Simply invoke gl_FUNC_IOCTL.
214         Reported by Ian Beckwith <ianb@erislabs.net>.
215
216 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
217             Bruno Haible  <bruno@clisp.org>
218
219         diffseq: Accommodate use-case with abstract arrays.
220         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
221         is not defined.
222         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
223         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
224
225 2010-04-18  Bruno Haible  <bruno@clisp.org>
226
227         * doc/posix-headers/stdbool.texi: More precise wording.
228
229 2010-04-17  Jim Meyering  <meyering@redhat.com>
230
231         maint.mk: use gnu-style indentation in an embedded perl script
232         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
233         Rename variable: s/two/last_two_bytes/
234
235 2010-04-16  Eric Blake  <eblake@redhat.com>
236
237         test-stdbool: skip test that fails with Solaris CC
238         * tests/test-stdbool.c (f): Skip test that causes compilation
239         error under buggy C++ compiler.
240         * lib/stdbool.in.h: Document the limitation.
241         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
242
243         setenv: allow compilation with C++
244         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
245         register keyword.
246
247         stdint: allow test to pass with C++
248         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
249
250         getopt: allow compilation with C++
251         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
252         struct.
253         * lib/getopt.c (_getopt_internal_r): Use correct type.
254         Reported by Dagobert Michelson, via Joel E. Denny.
255
256 2010-04-16  Bruno Haible  <bruno@clisp.org>
257
258         Override netdb.h always.
259         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
260         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
261         Reported by Ludovic Courtès <ludo@gnu.org>.
262
263 2010-04-15  Bruno Haible  <bruno@clisp.org>
264
265         openpty: Fix mistake from 2010-03-21.
266         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
267         Reported by Simon Josefsson.
268
269 2010-04-15  Eric Blake  <eblake@redhat.com>
270
271         test-forkpty: fix expected signature
272         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
273         Reported by Simon Josefsson.
274
275 2010-04-15  Jim Meyering  <meyering@redhat.com>
276
277         maint.mk: texinfo_suffix_re_: correct the default regexp
278         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
279
280         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
281         make it configurable via texinfo_suffix_re_.
282
283 2010-04-14  Eric Blake  <eblake@redhat.com>
284
285         strtok_r: relax license to LGPLv2+
286         * modules/strtok_r (License): Relax license.
287         Reported by Matthias Bolte.
288
289 2010-04-14  Simon Josefsson  <simon@josefsson.org>
290
291         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
292         version 1.4.4 by default instead of requiring the libgcrypt
293         version used during build.  This makes it possible to use the
294         application with older but still binary compatible libgcrypt
295         versions.
296
297 2010-04-13  Eric Blake  <eblake@redhat.com>
298
299         getopt-gnu: match recent glibc fixes and posix ruling
300         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
301         '+' handling, when requesting extensions.
302         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
303         'W;' handling.
304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
305         * doc/posix-functions/getopt.texi (getopt): Document this.
306         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
307         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
308         Likewise.
309
310         getopt: merge bug fixes from glibc
311         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
312         diagnostics.  Honor '+:' correctly.  Reject ';'.
313
314         getopt-posix: detect MacOS bug
315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
316         optind when missing a required argument.
317         * doc/posix-functions/getopt.texi (getopt): Document the bug.
318         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
319         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
320         Likewise.
321
322         getopt-posix: avoid spurious failure on Solaris
323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
324         an indicator that setting optind=1 is sufficient for reset.
325
326         getopt-posix: avoid spurious failure on FreeBSD
327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
328         in POSIX mode, since the m4 test uses it.
329
330         gnulib-tool: silence warning on BSD sh
331         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
332
333 2010-04-13  Jim Meyering  <meyering@redhat.com>
334
335         doc: users.txt: GNU patch now uses gnulib
336         * users.txt: Add patch.
337
338 2010-04-12  Jim Meyering  <meyering@redhat.com>
339
340         maint.mk: generate more concise timing data for syntax-check rules
341         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
342         " done" from each line that reports a syntax-check test duration.
343
344 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
345
346         git-version-gen: use "git update-index..." rather than "git status"
347         * build-aux/git-version-gen: Use git update-index --refresh, not
348         "git status".  With some versions of git, "git status" would fail
349         to update the index and result in an unwarranted "-dirty" suffix.
350
351 2010-04-11  Jim Meyering  <meyering@redhat.com>
352
353         openat: correct formatting (no semantic change)
354         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
355         Suggested by Bruno Haible.
356
357 2010-04-11  Bruno Haible  <bruno@clisp.org>
358
359         Stricter declaration checking in testdirs.
360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
361         If for_tests is true, augment AM_CPPFLAGS to define
362         GNULIB_STRICT_CHECKING.
363         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
364         GNULIB_STRICT_CHECKING is defined, verify that the function is
365         declared.
366
367 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
368             Bruno Haible  <bruno@clisp.org>
369
370         libunistring: Improve configure output.
371         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
372         Don't say "consider installing GNU libunistring" when checking again
373         with libiconv.
374
375 2010-04-11  Bruno Haible  <bruno@clisp.org>
376
377         libunistring: Correct value of $LTLIBUNISTRING.
378         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
379         correct the value of $LTLIBUNISTRING.
380
381 2010-04-11  Bruno Haible  <bruno@clisp.org>
382
383         havelib: Add static libraries to LIBS in the right order.
384         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
385         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
386
387 2010-04-11  Bruno Haible  <bruno@clisp.org>
388
389         libunistring: Detect libunistring also when it depends on libiconv.
390         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
391         the second AC_LIB_HAVE_LINKFLAGS invocation.
392
393 2010-04-11  James Youngman  <jay@gnu.org>
394
395         close-stream: declare local scalars to be "const"
396         * lib/close-stream.c (close_stream): Make boolean variables const
397         to document the fact that we set but do not change them.
398
399 2010-04-11  Bruno Haible  <bruno@clisp.org>
400
401         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
402
403 2010-04-11  Jim Meyering  <meyering@redhat.com>
404
405         maint.mk: don't include dist-check.mk
406         * top/maint.mk: Remove bogus include directive.
407
408         maint.mk: improve empty-line-at-EOF check
409         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
410         solution, rather than tail+Perl-based one.  The latter would read
411         a few kilobytes from the end of each file, and did not handle empty
412         files properly.
413
414         maint.mk: print the elapsed time for each syntax-check rule
415         * top/maint.mk (sc_m_rules_): Save start time in a file.
416         (sc_z_rules_): New rules: remove temp file and print elapsed time.
417         (local-check): Interpose the .z rules
418
419 2010-04-11  Jim Meyering  <meyering@redhat.com>
420
421         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
422         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
423         empty file with one that ends in an empty line.
424
425 2010-04-10  Bruno Haible  <bruno@clisp.org>
426
427         mkdir: Make it work on mingw64.
428         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
429         * lib/mkdir.c: Update comment.
430         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
431
432 2010-04-10  Bruno Haible  <bruno@clisp.org>
433
434         Don't override improved macro from newer autoconf.
435         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
436         autoconf >= 2.62.
437         Reported by Joel E. Denny <jdenny@clemson.edu>.
438
439 2010-04-10  Jim Meyering  <meyering@redhat.com>
440
441         maint.mk: new syntax-check rule: prohibit empty lines at end of file
442         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
443
444         maint.mk: correct a diagnostic
445         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
446         in diagnostic; now use $prohibit.
447
448 2010-04-10  Bruno Haible  <address@hidden>
449
450         fchownat: Fix a C++ test error on Solaris 8.
451         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
452         the function does not exist.
453
454 2010-04-10  Bruno Haible  <bruno@clisp.org>
455
456         vasnprintf: Add more tests.
457         * tests/test-vasnprintf-posix.c: Include <errno.h>.
458         (test_function): Test converting an invalid wide string.
459
460         vasnprintf: Correct handling of unconvertible wide string arguments.
461         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
462         VASNPRINTF.
463         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
464         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
465         smaller than the expected maximum need for the directive. Set errno to
466         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
467         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
469         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
470         * modules/vasnprintf (Files): Add m4/printf.m4.
471         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
472
473 2010-04-10  Bruno Haible  <bruno@clisp.org>
474
475         vasnprintf: Fix crash in %ls directive.
476         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
477         string is passed as argument to %ls, with no precision and no width.
478         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
479
480 2010-04-10  Bruno Haible  <bruno@clisp.org>
481
482         vasnprintf: Fix multiple test failures on mingw.
483         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
484         _snprintf, or snwprintf, not _snwprintf.
485
486 2010-04-10  Bruno Haible  <bruno@clisp.org>
487
488         write: Fix a C++ test error on mingw.
489         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
490
491 2010-04-10  Bruno Haible  <bruno@clisp.org>
492
493         vasnprintf test: Reduce code duplication.
494         * tests/test-vasnprintf.c (test_function): New function, extracted from
495         test_vasnprintf.
496         (test_vasnprintf, test_asnprintf): Invoke it.
497
498 2010-04-10  Bruno Haible  <bruno@clisp.org>
499
500         strnlen: Fix warning in C++ mode on MacOS X.
501         * lib/string.in.h (strnlen): Use the modern idiom.
502         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
503         defining strnlen as a macro already in <config.h>.
504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
505         REPLACE_STRNLEN.
506         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
507         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
508
509 2010-04-08  James Youngman  <jay@gnu.org>
510
511         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
512         the example.
513
514 2010-04-09  Jim Meyering  <meyering@redhat.com>
515
516         maint.mk: print better diagnostic when there is no $(_hv_file)
517         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
518         announce that when $(_hv_file) (aka help-version) does not exist.
519
520         init.sh: run tr in the "C" locale to avoid multibyte interpretation
521         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
522         not try to interpret its random input bytes.  Jarno Rajahalme reported
523         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
524         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
525         (mktempd_): Likewise, just in case.
526
527         ftruncate: add two years to projected module removal date: 2012
528         * m4/ftruncate.m4: Adjust comments.
529
530         ftruncate: mark module as obsolete; even MinGW provides it, now
531         * modules/ftruncate (Status): Obsolete.
532         (Notice): Say that.
533         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
534         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
535
536 2010-04-08  Bruno Haible  <bruno@clisp.org>
537
538         Fix side effects from tests-related modules.
539         * modules/dprintf-posix (Comment): New section.
540         * modules/fprintf-posix (Comment): Likewise.
541         * modules/obstack-printf-posix (Comment): Likewise.
542         * modules/printf-posix (Comment): Likewise.
543         * modules/snprintf-posix (Comment): Likewise.
544         * modules/sprintf-posix (Comment): Likewise.
545         * modules/vasnprintf-posix (Comment): Likewise.
546         * modules/vasprintf-posix (Comment): Likewise.
547         * modules/vdprintf-posix (Comment): Likewise.
548         * modules/vfprintf-posix (Comment): Likewise.
549         * modules/vprintf-posix (Comment): Likewise.
550         * modules/vsnprintf-posix (Comment): Likewise.
551         * modules/vsprintf-posix (Comment): Likewise.
552         * modules/xprintf-posix (Comment): Likewise.
553         * modules/xvasprintf-posix (Comment): Likewise.
554         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
555         * modules/floorf-tests (Depends-on): Likewise.
556         * modules/round-tests (Depends-on): Likewise.
557         * modules/roundf-tests (Depends-on): Likewise.
558         * modules/trunc-tests (Depends-on): Likewise.
559         * modules/truncf-tests (Depends-on): Likewise.
560         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
561         'fprintf-posix' module is not present.
562         * tests/test-floorf2.c (check): Likewise.
563         * tests/test-trunc2.c (check): Likewise.
564         * tests/test-truncf2.c (check): Likewise.
565         * tests/test-round2.c (equal): Likewise.
566         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
567
568 2010-04-07  Karl Berry  <karl@gnu.org>
569
570         * config/srclist.txt,
571         * config/srclistvars.sh,
572         * config/srclist-update: doc fixes.
573
574 2010-04-07  Jim Meyering  <meyering@redhat.com>
575
576         maint.mk: add a PATH crosschecking syntax-check rule
577         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
578         Useful if you use a test like the one in help-version (coreutils,
579         diffutils, grep, gzip) that ensures $(VERSION) matches what is
580         printed by prog --version.
581
582 2010-04-06  Bruno Haible  <bruno@clisp.org>
583
584         Fix link error on mingw.
585         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
586         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
587
588 2010-04-06  Bruno Haible  <bruno@clisp.org>
589
590         Assume rmdir exists.
591         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
592
593 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
594
595         doc: update users.txt
596         * users.txt: Add gcal.
597
598 2010-04-06  Jim Meyering  <meyering@redhat.com>
599
600         init.sh: simply unset TMPDIR rather than risking env -i
601         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
602         although it probably works fine on all Unix-based systems, some
603         systems (Cygwin?) cannot tolerate a totally cleared environment.
604         Suggestion from Eric Blake.
605
606 2010-04-06  Jim Meyering  <meyering@redhat.com>
607
608         init.sh: portability fix: use env's POSIX-specified -i option not -u
609         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
610         than unportable env -u.  Solaris 5.11's env lacks support for -u.
611
612 2010-04-05  Bruno Haible  <bruno@clisp.org>
613
614         btowc: Work around Cygwin 1.7.2 bug.
615         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
616         does not map NUL to 0.
617         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
618
619 2010-04-05  Bruno Haible  <bruno@clisp.org>
620
621         Make the multithread modules work on Cygwin 1.7.2.
622         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
623         imported symbols can be declared weak, so that it returns "no" on
624         Cygwin 1.7.2.
625
626 2010-04-05  Bruno Haible  <bruno@clisp.org>
627
628         Use the module 'strncat'.
629         * modules/unistr/u8-strncat (Depends-on): Add strncat.
630
631         Tests for module 'strncat'.
632         * modules/strncat-tests: New file.
633         * tests/test-strncat.c: New file.
634
635         New module 'strncat'.
636         * lib/string.in.h (strncat): New declaration.
637         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
638         * m4/strncat.m4: New file, based on m4/memchr.m4.
639         * modules/strncat: New file.
640         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
641         is declared.
642         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
643         REPLACE_STRNCAT.
644         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
645         REPLACE_STRNCAT.
646         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
647         module.
648         * tests/test-string-c++.cc: Check signature of strncat.
649
650 2010-04-05  Jim Meyering  <meyering@redhat.com>
651
652         xstrtoumax-tests: convert to use init.sh
653         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
654         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
655         Use Exit, not exit.
656         Remove uses of $EXEEXT and "./" to run a program in the current dir.
657
658         xstrtoimax-tests: convert to use init.sh
659         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
660         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
661         Use Exit, not exit.
662         Remove uses of $EXEEXT and "./" to run a program in the current dir.
663
664 2010-04-05  Bruno Haible  <bruno@clisp.org>
665
666         sys_socket: Avoid #define replacements in C++ mode.
667         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
668         warning to the function if possible, rather than #defining the symbol
669         to a dysfunctional alias.
670
671 2010-04-05  Bruno Haible  <bruno@clisp.org>
672
673         fseeko: Fix C++ test error on mingw.
674         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
675         gl_FUNC_FSEEKO.
676         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
677         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
678         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
679         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
680
681 2010-04-05  Bruno Haible  <bruno@clisp.org>
682
683         duplocale: Improve test output.
684         * tests/test-duplocale.c (main): Print reason for skipped test.
685
686 2010-04-05  Bruno Haible  <bruno@clisp.org>
687
688         Assume rmdir exists.
689         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
690         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
691
692 2010-04-05  Bruno Haible  <bruno@clisp.org>
693
694         Fix link error on Solaris 8 with cc.
695         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
696
697 2010-04-05  Bruno Haible  <bruno@clisp.org>
698
699         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
700         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
701
702 2010-04-05  Bruno Haible  <bruno@clisp.org>
703
704         vasprintf: Update documentation.
705         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
706
707 2010-04-05  Bruno Haible  <bruno@clisp.org>
708
709         ptsname: Improve test.
710         * tests/test-ptsname.c (main): Also try the various master names of BSD
711         systems.
712
713 2010-04-05  Bruno Haible  <bruno@clisp.org>
714
715         memchr: Avoid a possible C++ test error.
716         * lib/string.in.h (memchr): Provide declaration if function is missing.
717         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
718         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
720         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
721
722 2010-04-05  Bruno Haible  <bruno@clisp.org>
723
724         strtok_r: Improve idiom.
725         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
726         AC_LIBOBJ is used.
727
728 2010-04-05  Bruno Haible  <bruno@clisp.org>
729
730         strdup: Improve idiom.
731         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
732         AC_LIBOBJ is used.
733         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
734         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
735         when AC_LIBOBJ is used.
736
737 2010-04-05  Bruno Haible  <bruno@clisp.org>
738
739         mbsinit, mbrtowc, wcrtomb: Improve idioms.
740         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
741         don't set REPLACE_MBSINIT to 1.
742         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
743         don't set REPLACE_MBRTOWC to 1.
744         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
745         exist, don't set REPLACE_MBSRTOWCS to 1.
746         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
747         exist, don't set REPLACE_MBSNRTOWCS to 1.
748         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
749         don't set REPLACE_WCRTOMB to 1.
750         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
751         exist, don't set REPLACE_WCSRTOMBS to 1.
752         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
753         exist, don't set REPLACE_WCSNRTOMBS to 1.
754
755 2010-04-05  Bruno Haible  <bruno@clisp.org>
756
757         ldexpl: Improve idiom.
758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
759         make sure to set HAVE_DECL_LDEXPL to 0.
760
761 2010-04-05  Jim Meyering  <meyering@redhat.com>
762
763         xstrtol-tests: convert to use init.sh
764         * modules/xstrtol-tests (Files): Add tests/init.sh.
765         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
766         Use Exit, not exit.
767         Remove uses of $EXEEXT and "./" to run a program in the current dir.
768
769         atexit-tests: convert to use init.sh
770         * modules/atexit-tests (Files): Add tests/init.sh.
771         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
772         Use Exit, not exit.
773         Remove uses of $EXEEXT and "./" to run a program in the current dir.
774
775         init.sh: fix typo
776         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
777
778         init.sh: make it easier for a test script to write to the tty, ...
779         when using automake's parallel-tests mode.
780         * tests/init.sh (stderr_fileno_): Define overridable variable.
781         (warn_): New function, to use it.
782         (fail_, skip_, framework_failure_): Use warn_.
783
784 2010-04-04  Bruno Haible  <bruno@clisp.org>
785
786         btowc: Avoid warning.
787         * lib/btowc.c: Include <stdlib.h>.
788         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
789
790 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
791             Bruno Haible  <bruno@clisp.org>
792
793         wchar: Port to NetBSD 1.5.
794         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
795         * lib/wctype.in.h (WEOF): Likewise.
796
797 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
798             Bruno Haible  <bruno@clisp.org>
799
800         Port extended stdio to NetBSD 1.5.
801         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
802         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
803         older.
804
805 2010-04-04  Bruno Haible  <bruno@clisp.org>
806
807         string: Remove unused substitution.
808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
809         HAVE_DECL_STRERROR.
810         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
811
812 2010-04-04  Bruno Haible  <bruno@clisp.org>
813
814         strtod: Avoid a possible C++ test error.
815         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
816         set REPLACE_STRTOD.
817
818 2010-04-04  Bruno Haible  <bruno@clisp.org>
819
820         strerror: Update documentation.
821         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
822
823 2010-04-04  Bruno Haible  <bruno@clisp.org>
824
825         stdio: Fix some C++ test errors on Solaris 8 with GCC.
826         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
827         _GL_CXXALIAS_SYS_CAST.
828
829 2010-04-04  Bruno Haible  <bruno@clisp.org>
830
831         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
832         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
833         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
834         REPLACE_FREXPL to 1.
835         * doc/posix-functions/frexpl.texi: Update documentation.
836
837 2010-04-04  Bruno Haible  <bruno@clisp.org>
838
839         math: Fix some C++ test errors on Solaris 8 and Cygwin.
840         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
841
842 2010-04-04  Bruno Haible  <bruno@clisp.org>
843
844         Implement nanosleep for native Windows.
845         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
846
847 2010-04-04  Bruno Haible  <bruno@clisp.org>
848
849         math: Fix some C++ test errors on Solaris 8.
850         * lib/math.in.h (truncf, trunc): Use simpler idiom.
851
852 2010-04-04  Bruno Haible  <bruno@clisp.org>
853
854         math: Fix some C++ test errors on Cygwin.
855         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
856         truncl): Provide declaration if the system does not have it.
857         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
858         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
859         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
860         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
861         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
862         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
863         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
864         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
865         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
866         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
867         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
868         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
869         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
870         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
871         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
872         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
874         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
875         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
876         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
877         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
878         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
879
880 2010-04-04  Bruno Haible  <bruno@clisp.org>
881
882         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
883         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
884         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
885         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
886         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
887         * m4/isinf.m4 (gl_ISINF): Likewise.
888         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
889
890 2010-04-04  Bruno Haible  <bruno@clisp.org>
891
892         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
893         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
894
895 2010-04-04  Bruno Haible  <bruno@clisp.org>
896
897         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
898         * modules/tmpfile (configure.ac): Update.
899
900         tmpfile: Fix C++ test error on mingw.
901         * lib/stdio.in.h (tmpfile): New declaration.
902         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
903         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
904         * modules/tmpfile (Depends-on): Add stdio.
905         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
906         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
907         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
908         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
909         REPLACE_TMPFILE.
910         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
911
912 2010-04-04  Bruno Haible  <bruno@clisp.org>
913
914         ioctl: Fix C++ test error on mingw.
915         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
916         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
917         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
918
919 2010-04-03  Bruno Haible  <bruno@clisp.org>
920
921         wcwidth: Fix C++ test error on mingw.
922         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
924         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
925
926 2010-04-03  Bruno Haible  <bruno@clisp.org>
927
928         nanosleep: Fix C++ test error on mingw.
929         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
930         * lib/time.in.h (nanosleep): Use modern idiom.
931         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
932         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
933         REPLACE_NANOSLEEP to 1.
934         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
935         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
936
937 2010-04-03  Bruno Haible  <bruno@clisp.org>
938
939         strptime: Fix C++ test error on mingw.
940         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
941         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
942         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
943         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
944         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
945         not REPLACE_STRPTIME.
946         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
947         REPLACE_STRPTIME.
948
949 2010-04-03  Bruno Haible  <bruno@clisp.org>
950
951         timegm: Fix C++ test error on mingw.
952         * lib/time.in.h (timegm): Use modern idiom.
953         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
954         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
955         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
956         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
957
958 2010-04-03  Bruno Haible  <bruno@clisp.org>
959
960         timegm: Assume declaration if function exists.
961         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
962         if it exists. Don't clobber ac_cv_func_timegm.
963
964 2010-04-03  Bruno Haible  <bruno@clisp.org>
965
966         time_r: Fix C++ test error on mingw.
967         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
968         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
969         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
970         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
971         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
972
973 2010-04-03  Bruno Haible  <bruno@clisp.org>
974
975         time_r: Minor updates.
976         * modules/time_r (Description): Mention the provided functions.
977         * lib/time_r.c: Don't include <string.h>.
978         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
979         * doc/posix-functions/localtime_r.texi: Likewise.
980
981 2010-04-03  Bruno Haible  <bruno@clisp.org>
982
983         time: Fix regression introduced on 2010-03-08.
984         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
985         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
986
987 2010-04-03  Jim Meyering  <meyering@redhat.com>
988
989         maint.mk: don't silently disable project-specific syntax-check rules
990         * top/maint.mk (_prohibit_regexp): Define, to help people realize
991         that they need to convert their project-specific syntax-check rules
992         to use the new _sc_search_regexp.
993
994 2010-04-03  Bruno Haible  <bruno@clisp.org>
995
996         fchdir: Fix regression introduced on 2010-03-08.
997         * lib/unistd.in.h (fchdir): Fix declaration.
998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
1000         REPLACE_FCHDIR.
1001         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
1002         REPLACE_FCHDIR.
1003
1004 2010-04-03  Bruno Haible  <bruno@clisp.org>
1005
1006         getpagesize: Fix C++ test error on mingw.
1007         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
1008         system does not declare the function.
1009         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
1010         declared.
1011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1012         HAVE_DECL_GETPAGESIZE.
1013         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
1014
1015 2010-04-03  Bruno Haible  <bruno@clisp.org>
1016
1017         stdio: Make C++ tests work on mingw.
1018         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
1019         does not declare the function.
1020
1021 2010-04-03  Bruno Haible  <bruno@clisp.org>
1022
1023         ftello: Fix C++ test error on mingw.
1024         * lib/stdio.in.h (ftello): Use modern idiom.
1025         * lib/ftello.c (ftello): Renamed from rpl_ftello.
1026         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
1027         is missing and that it needs to be replaced.
1028         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
1029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
1030         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
1031
1032 2010-04-03  Bruno Haible  <bruno@clisp.org>
1033
1034         fseeko: Fix C++ test error on mingw.
1035         * lib/stdio.in.h (fseeko): Use modern idiom.
1036         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
1037         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
1038         is missing and that it needs to be replaced.
1039         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
1040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
1041         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
1042
1043 2010-04-03  Bruno Haible  <bruno@clisp.org>
1044
1045         mkstemp: Fix C++ test error on mingw.
1046         * lib/stdlib.in.h (mkstemp): Use modern idiom.
1047         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
1048         function is missing and that it needs to be replaced.
1049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
1050         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
1051
1052 2010-04-03  Bruno Haible  <bruno@clisp.org>
1053
1054         stpncpy: Fix C++ test error on mingw.
1055         * lib/string.in.h (stpncpy): Use modern idiom.
1056         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
1057         function is missing and that it needs to be replaced.
1058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1059         REPLACE_STPNCPY.
1060         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
1061
1062 2010-04-03  Bruno Haible  <bruno@clisp.org>
1063
1064         sys_stat: Fix C++ test error on mingw.
1065         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
1066         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
1067
1068 2010-04-03  Bruno Haible  <bruno@clisp.org>
1069
1070         pty: Update doc.
1071         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
1072
1073 2010-04-03  Bruno Haible  <bruno@clisp.org>
1074
1075         unistd: Fix C++ test error on mingw.
1076         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
1077
1078 2010-04-03  Bruno Haible  <bruno@clisp.org>
1079
1080         Update doc regarding mingw.
1081         * doc/glibc-functions/openpty.texi: Update regarding mingw.
1082         * doc/glibc-functions/login_tty.texi: Likewise.
1083         * doc/glibc-functions/forkpty.texi: Likewise.
1084
1085 2010-04-03  Bruno Haible  <bruno@clisp.org>
1086
1087         stdlib: Avoid compilation failure of c-strtold on mingw.
1088         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
1089
1090 2010-04-03  Bruno Haible  <bruno@clisp.org>
1091
1092         locale: Make C++ tests work on Cygwin and mingw.
1093         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
1094         cannot provide the function.
1095         Reported by Simon Josefsson.
1096
1097 2010-04-03  Bruno Haible  <bruno@clisp.org>
1098
1099         localename: Port to MacOS X 10.6.
1100         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
1101         memory layout of the locales in MacOS X 10.6 as well.
1102         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
1103
1104 2010-04-02  Bruno Haible  <bruno@clisp.org>
1105
1106         gnulib-tool: Ensure that long-running tests are executed last.
1107         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
1108         running tests after the one for the other tests.
1109
1110 2010-04-02  Bruno Haible  <bruno@clisp.org>
1111
1112         gnulib-tool: Ensure the tests in the main directory are executed first.
1113         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
1114         start with the current directory.
1115
1116 2010-04-02  Bruno Haible  <bruno@clisp.org>
1117
1118         Tests for module 'havelib', moved here from GNU gettext.
1119         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
1120         modifications.
1121         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
1122         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
1123         with modifications.
1124         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
1125         modifications.
1126         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
1127         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
1128         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
1129         with modifications.
1130         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
1131         with modifications.
1132         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
1133         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
1134         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
1135         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
1136         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
1137         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
1138         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
1139         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
1140         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
1141         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
1142         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
1143         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
1144         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
1145         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
1146         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
1147         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
1148         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
1149         with modifications.
1150         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
1151         with modifications.
1152         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
1153         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
1154         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
1155         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
1156         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
1157         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
1158         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
1159         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
1160         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
1161         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
1162         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
1163         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
1164         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
1165         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
1166         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
1167         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
1168         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
1169         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
1170         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
1171         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
1172         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
1173         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
1174         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
1175         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
1176         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
1177         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
1178         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
1179         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
1180         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
1181         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
1182         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
1183         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
1184         * tests/havelib/rpathx/rpathx.c: New file, from
1185         gettext/autoconf-lib-link.
1186         * tests/havelib/rpathx/Makefile.am: New file, from
1187         gettext/autoconf-lib-link.
1188         * tests/havelib/rpathx/configure.ac: New file, from
1189         gettext/autoconf-lib-link with modifications.
1190         * tests/havelib/rpathy/rpathy.c: New file, from
1191         gettext/autoconf-lib-link.
1192         * tests/havelib/rpathy/Makefile.am: New file, from
1193         gettext/autoconf-lib-link.
1194         * tests/havelib/rpathy/configure.ac: New file, from
1195         gettext/autoconf-lib-link with modifications.
1196         * tests/havelib/rpathz/rpathz.c: New file, from
1197         gettext/autoconf-lib-link.
1198         * tests/havelib/rpathz/Makefile.am: New file, from
1199         gettext/autoconf-lib-link.
1200         * tests/havelib/rpathz/configure.ac: New file, from
1201         gettext/autoconf-lib-link with modifications.
1202         * tests/havelib/rpathlx/usex.c: New file, from
1203         gettext/autoconf-lib-link.
1204         * tests/havelib/rpathlx/Makefile.am: New file, from
1205         gettext/autoconf-lib-link.
1206         * tests/havelib/rpathlx/configure.ac: New file, from
1207         gettext/autoconf-lib-link with modifications.
1208         * tests/havelib/rpathly/usey.c: New file, from
1209         gettext/autoconf-lib-link.
1210         * tests/havelib/rpathly/Makefile.am: New file, from
1211         gettext/autoconf-lib-link.
1212         * tests/havelib/rpathly/configure.ac: New file, from
1213         gettext/autoconf-lib-link with modifications.
1214         * tests/havelib/rpathlz/usez.c: New file, from
1215         gettext/autoconf-lib-link.
1216         * tests/havelib/rpathlz/Makefile.am: New file, from
1217         gettext/autoconf-lib-link.
1218         * tests/havelib/rpathlz/configure.ac: New file, from
1219         gettext/autoconf-lib-link with modifications.
1220         * tests/havelib/rpathlyx/usey.c: New file, from
1221         gettext/autoconf-lib-link.
1222         * tests/havelib/rpathlyx/Makefile.am: New file, from
1223         gettext/autoconf-lib-link.
1224         * tests/havelib/rpathlyx/configure.ac: New file, from
1225         gettext/autoconf-lib-link with modifications.
1226         * tests/havelib/rpathlzyx/usez.c: New file, from
1227         gettext/autoconf-lib-link.
1228         * tests/havelib/rpathlzyx/Makefile.am: New file, from
1229         gettext/autoconf-lib-link.
1230         * tests/havelib/rpathlzyx/configure.ac: New file, from
1231         gettext/autoconf-lib-link with modifications.
1232         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
1233         with modifications.
1234
1235 2010-04-02  Bruno Haible  <bruno@clisp.org>
1236
1237         gnulib-tool: Create distributed built sources also for the tests.
1238         * gnulib-tool (func_create_testdir): Also generate distributed built
1239         sources in the tests directory.
1240
1241 2010-04-02  Bruno Haible  <bruno@clisp.org>
1242
1243         gnulib-tool: Obey user's environment variables.
1244         * gnulib-tool (func_create_testdir): When creating built sources,
1245         respect the environment variables for autoconf, automake, etc. given by
1246         the user.
1247
1248 2010-04-02  Bruno Haible  <bruno@clisp.org>
1249
1250         gnulib-tool: Provide the value of --m4-base to modules.
1251         * gnulib-tool (func_import, func_create_testdir): Emit a definition
1252         of gl_m4_base.
1253
1254 2010-04-02  Eric Blake  <eblake@redhat.com>
1255
1256         maint.mk: fix some fallout
1257         * NEWS: Document the incompatible change, and its effect on cfg.mk.
1258         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
1259
1260 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
1261
1262         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
1263         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
1264         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
1265         (sc_cast_of_x_alloc_return_value): Likewise.
1266         (sc_cast_of_alloca_return_value): Likewise.
1267         (sc_space_tab): Likewise.
1268         (sc_prohibit_atoi_atof): Likewise.
1269         (sc_prohibit_magic_number_exit): Likewise.
1270         (sc_error_exit_success): Likewise.
1271         (sc_file_system): Likewise.
1272         (sc_prohibit_have_config_h): Likewise.
1273         (sc_require_config_h): Likewise.
1274         (sc_prohibit_HAVE_MBRTOWC): Likewise.
1275         (sc_obsolete_symbols): Likewise.
1276         (sc_changelog): Likewise.
1277         (sc_program_name): Likewise.
1278         (sc_the_the): Likewise.
1279         (sc_trailing_blank): Likewise.
1280         (sc_two_space_separator_in_usage): Likewise.
1281         (sc_useless_cpp_parens): Likewise.
1282         (sc_GPL_version): Likewise.
1283         (sc_GFDL_version): Likewise.
1284         (sc_texinfo_acronym): Likewise.
1285         (sc_prohibit_cvs_keyword): Likewise.
1286         (sc_prohibit_stat_st_blocks): Likewise.
1287         (sc_prohibit_S_IS_definition): Likewise.
1288         (sc_redundant_const): Likewise.
1289         (sc_makefile_TAB_only_indentation): Likewise.
1290         (sc_m4_quote_check): Likewise.
1291         (sc_makefile_path_separator_check): Likewise.
1292         (sc_copyright_check): Likewise.
1293         (sc_Wundef_boolean): Likewise.
1294         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1295
1296         maint.mk: match 0 or more whitespace-before-function-call '('
1297         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
1298         that have zero or two-and-more spaces between the function name
1299         and the open parenthesis.
1300         (sc_error_message_warn_fatal): Likewise.
1301         (sc_error_message_uppercase): Likewise.
1302         (sc_error_message_period): Likewise.
1303
1304 2010-03-31  Eric Blake  <eblake@redhat.com>
1305
1306         maint.mk: check for [ as well as test
1307         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
1308         Based on a libvirt report by Matthias Bolte.
1309
1310         gnumakefile: don't squelch _version output
1311         * top/GNUmakefile (_version): Create one-shot dependency rather
1312         than using $(shell) when version must be regenerated.
1313         (_autoreconf): Run verbosely, by default.
1314
1315         sys_time: avoid compiler warnings
1316         * lib/sys_time.in.h (includes): Ensure gcc pragma is
1317         unconditional, fixing regression from 2010-03-29.
1318         Reported by Simon Josefsson.
1319
1320 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
1321
1322         maint.mk: s/_header_without_use/_sc_header_without_use/
1323         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
1324         (sc_prohibit_assert_without_use): Use the new name.
1325         (sc_prohibit_close_stream_without_use): Likewise.
1326         (sc_prohibit_getopt_without_use): Likewise.
1327         (sc_prohibit_quotearg_without_use): Likewise.
1328         (sc_prohibit_quote_without_use): Likewise.
1329         (sc_prohibit_long_options_without_use): Likewise.
1330         (sc_prohibit_inttostr_without_use): Likewise.
1331         (sc_prohibit_ignore_value_without_use): Likewise.
1332         (sc_prohibit_error_without_use): Likewise.
1333         (sc_prohibit_xalloc_without_use): Likewise.
1334         (sc_prohibit_hash_without_use): Likewise.
1335         (sc_prohibit_hash_pjw_without_use): Likewise.
1336         (sc_prohibit_safe_read_without_use): Likewise.
1337         (sc_prohibit_argmatch_without_use): Likewise.
1338         (sc_prohibit_canonicalize_without_use): Likewise.
1339         (sc_prohibit_root_dev_ino_without_use): Likewise.
1340         (sc_prohibit_openat_without_use): Likewise.
1341         (sc_prohibit_c_ctype_without_use): Likewise.
1342         (sc_prohibit_signal_without_use): Likewise.
1343         (sc_prohibit_intprops_without_use): Likewise.
1344
1345 2010-03-30  Eric Blake  <eblake@redhat.com>
1346
1347         maint: improve module indicators
1348         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
1349         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
1350         columns, and avoid extra macro expansion.
1351
1352         fdopendir: work around FreeBSD bug
1353         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
1354         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
1355         * modules/dirent (Makefile.am): Substitute it.
1356         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
1357         declaration.
1358         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
1359         fix.
1360         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1361
1362 2010-03-29  Bruno Haible  <bruno@clisp.org>
1363
1364         Emit #pragma system_header after the inclusion guard, not before.
1365         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
1366         guard that spans the entire file, not before. This enables an
1367         optimization in GCC's preprocessor.
1368         * lib/ctype.in.h: Likewise.
1369         * lib/dirent.in.h: Likewise.
1370         * lib/errno.in.h: Likewise.
1371         * lib/float.in.h: Likewise.
1372         * lib/getopt.in.h: Likewise.
1373         * lib/iconv.in.h: Likewise.
1374         * lib/langinfo.in.h: Likewise.
1375         * lib/locale.in.h: Likewise.
1376         * lib/math.in.h: Likewise.
1377         * lib/netdb.in.h: Likewise.
1378         * lib/netinet_in.in.h: Likewise.
1379         * lib/pty.in.h: Likewise.
1380         * lib/sched.in.h: Likewise.
1381         * lib/se-selinux.in.h: Likewise.
1382         * lib/search.in.h: Likewise.
1383         * lib/spawn.in.h: Likewise.
1384         * lib/stdarg.in.h: Likewise.
1385         * lib/stdint.in.h: Likewise.
1386         * lib/string.in.h: Likewise.
1387         * lib/strings.in.h: Likewise.
1388         * lib/sys_file.in.h: Likewise.
1389         * lib/sys_ioctl.in.h: Likewise.
1390         * lib/sys_time.in.h: Likewise.
1391         * lib/sys_times.in.h: Likewise.
1392         * lib/sys_utsname.in.h: Likewise.
1393         * lib/sys_wait.in.h: Likewise.
1394         * lib/sysexits.in.h: Likewise.
1395         * lib/wctype.in.h: Likewise.
1396
1397 2010-03-28  James Youngman  <jay@gnu.org>
1398
1399         save-cwd: don't leak a file descriptor when the caller execs.
1400         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
1401         saved file descriptor.
1402         * modules/save-cwd (Depends-on): Depend on cloexec.
1403
1404 2010-03-29  Bruno Haible  <bruno@clisp.org>
1405
1406         Remove vestiges of fts-lgpl module.
1407         * lib/fts_.h: Assume GNULIB_FTS is 1.
1408         * lib/fts.c: Likewise.
1409         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1410
1411 2010-03-28  Bruno Haible  <bruno@clisp.org>
1412
1413         Fix definition of tests witness macro.
1414         * gnulib-tool (func_import): Fix definition of witness macro.
1415
1416 2010-03-28  Bruno Haible  <bruno@clisp.org>
1417
1418         Fix ioctl's protoype on glibc systems.
1419         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
1420         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
1421         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
1422         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
1423         signature. If not, arrange to replace the ioctl function.
1424         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1425         REPLACE_IOCTL.
1426         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
1427         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
1428         Reported by Ludovic Courtès <ludo@gnu.org>.
1429
1430 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
1431
1432         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
1433         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
1434         made it so grep -r --include=GLOB* ... did not work.
1435
1436 2010-03-26  Jim Meyering  <meyering@redhat.com>
1437             Eric Blake  <eblake@redhat.com>
1438
1439         maint.mk: prohibit use of test's -o and -a operators
1440         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
1441
1442 2010-03-28  Bruno Haible  <bruno@clisp.org>
1443
1444         Remove unused GNULIB_XYZ macro definitions.
1445         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
1446         invocation.
1447
1448 2010-03-28  Bruno Haible  <bruno@clisp.org>
1449
1450         Mark privileged tests modules.
1451         * modules/idpriv-drop-tests (Status): New section.
1452         * modules/idpriv-droptemp-tests (Status): New section.
1453
1454 2010-03-28  Bruno Haible  <bruno@clisp.org>
1455
1456         Split C++ tests into separate tests modules.
1457         * modules/dirent-c++-tests: New file, extracted from
1458         modules/dirent-tests.
1459         * modules/dirent-tests: Depend on it.
1460         * modules/fcntl-h-c++-tests: New file, extracted from
1461         modules/fcntl-h-tests.
1462         * modules/fcntl-h-tests: Depend on it.
1463         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
1464         * modules/glob-tests: Depend on it.
1465         * modules/iconv-h-c++-tests: New file, extracted from
1466         modules/iconv-h-tests.
1467         * modules/iconv-h-tests: Depend on it.
1468         * modules/langinfo-c++-tests: New file, extracted from
1469         modules/langinfo-tests.
1470         * modules/langinfo-tests: Depend on it.
1471         * modules/locale-c++-tests: New file, extracted from
1472         modules/locale-tests.
1473         * modules/locale-tests: Depend on it.
1474         * modules/math-c++-tests: New file, extracted from modules/math-tests.
1475         * modules/math-tests: Depend on it.
1476         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
1477         * modules/pty-tests: Depend on it.
1478         * modules/search-c++-tests: New file, extracted from
1479         modules/search-tests.
1480         * modules/search-tests: Depend on it.
1481         * modules/signal-c++-tests: New file, extracted from
1482         modules/signal-tests.
1483         * modules/signal-tests: Depend on it.
1484         * modules/spawn-c++-tests: New file, extracted from
1485         modules/spawn-tests.
1486         * modules/spawn-tests: Depend on it.
1487         * modules/stdio-c++-tests: New file, extracted from
1488         modules/stdio-tests.
1489         * modules/stdio-tests: Depend on it.
1490         * modules/stdlib-c++-tests: New file, extracted from
1491         modules/stdlib-tests.
1492         * modules/stdlib-tests: Depend on it.
1493         * modules/string-c++-tests: New file, extracted from
1494         modules/string-tests.
1495         * modules/string-tests: Depend on it.
1496         * modules/sys_ioctl-c++-tests: New file, extracted from
1497         modules/sys_ioctl-tests.
1498         * modules/sys_ioctl-tests: Depend on it.
1499         * modules/sys_select-c++-tests: New file, extracted from
1500         modules/sys_select-tests.
1501         * modules/sys_select-tests: Depend on it.
1502         * modules/sys_socket-c++-tests: New file, extracted from
1503         modules/sys_socket-tests.
1504         * modules/sys_socket-tests: Depend on it.
1505         * modules/sys_stat-c++-tests: New file, extracted from
1506         modules/sys_stat-tests.
1507         * modules/sys_stat-tests: Depend on it.
1508         * modules/sys_time-c++-tests: New file, extracted from
1509         modules/sys_time-tests.
1510         * modules/sys_time-tests: Depend on it.
1511         * modules/time-c++-tests: New file, extracted from modules/time-tests.
1512         * modules/time-tests: Depend on it.
1513         * modules/unistd-c++-tests: New file, extracted from
1514         modules/unistd-tests.
1515         * modules/unistd-tests: Depend on it.
1516         * modules/wchar-c++-tests: New file, extracted from
1517         modules/wchar-tests.
1518         * modules/wchar-tests: Depend on it.
1519         * modules/wctype-c++-tests: New file, extracted from
1520         modules/wctype-tests.
1521         * modules/wctype-tests: Depend on it.
1522         Reported by Simon Josefsson.
1523
1524 2010-03-28  Bruno Haible  <bruno@clisp.org>
1525
1526         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
1527         * gnulib-tool (func_exists_module): New function, extracted from
1528         func_verify_module.
1529         (func_verify_module): Use it.
1530         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
1531         'foo' only if 'foo' exists.
1532         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
1533         module.
1534
1535 2010-03-28  Bruno Haible  <bruno@clisp.org>
1536
1537         gnulib-tool: Add support for special categories of tests.
1538         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
1539         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
1540         (func_usage): Document them.
1541         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
1542         inc_unportable_tests, inc_all_tests): New variables.
1543         (func_acceptable): Consider these variables.
1544         (func_modules_transitive_closure): Make it work when the 'Status' field
1545         consists of multiple words.
1546         (func_import): Store and restore the values of inc_cxx_tests,
1547         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
1548         inc_all_tests in gnulib-comp.m4.
1549         (func_create_testdir): Set inc_all_tests to true.
1550         * doc/gnulib.texi (Extra tests modules): New section.
1551         Suggested by Jim Meyering.
1552
1553 2010-03-28  Bruno Haible  <bruno@clisp.org>
1554
1555         ansi-c++-opt: Allow turning off the C++ build by default.
1556         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
1557         gl_CXX_CHOICE_DEFAULT_NO is defined.
1558         Requested by Eric Blake.
1559
1560 2010-03-28  Bruno Haible  <bruno@clisp.org>
1561
1562         unistd: Avoid #define replacements in C++ mode.
1563         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1564         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1565         setsockopt, shutdown, select): In C++, attach a warning to the function
1566         if possible, rather than #defining the symbol to a dysfunctional alias.
1567         Reported by John W. Eaton <jwe@gnu.org>.
1568
1569 2010-03-28  Bruno Haible  <bruno@clisp.org>
1570
1571         Fix link errors on mingw.
1572         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
1573         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
1574         $(LIBSOCKET).
1575         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
1576         $(LIBSOCKET).
1577
1578 2010-03-28  Bruno Haible  <bruno@clisp.org>
1579             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1580
1581         lib-ignore: Determine different options for different compilers.
1582         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
1583         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
1584         Add comments.
1585         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
1586         * NEWS: Mention the change.
1587
1588 2010-03-27  Bruno Haible  <bruno@clisp.org>
1589
1590         Remove unused GNULIB_XYZ macro definitions.
1591         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1592         * modules/fseek (configure.ac): Likewise.
1593         * modules/ioctl (configure.ac): Likewise.
1594         * modules/open (configure.ac): Likewise.
1595         * modules/stdlib-safer (configure.ac): Likewise.
1596
1597 2010-03-27  Bruno Haible  <bruno@clisp.org>
1598
1599         Add a remark about certain modules.
1600         * modules/malloc (Comment): New section.
1601         * modules/realloc (Comment): Likewise.
1602         * modules/sigpipe (Comment): Likewise.
1603
1604 2010-03-27  Bruno Haible  <bruno@clisp.org>
1605
1606         Resolve conflict between the two kinds of module indicators.
1607         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
1608         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
1609         * modules/canonicalize (configure.ac): Invoke
1610         gl_MODULE_INDICATOR_FOR_TESTS.
1611         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
1612         GNULIB_XYZ.
1613         * tests/test-dirent-c++.cc: Likewise.
1614         * tests/test-dirent-safer.c: Likewise.
1615         * tests/test-dup2.c: Likewise.
1616         * tests/test-fchdir.c: Likewise.
1617         * tests/test-fcntl-h-c++.cc: Likewise.
1618         * tests/test-getopt.c: Likewise.
1619         * tests/test-getopt.h: Likewise.
1620         * tests/test-langinfo-c++.cc: Likewise.
1621         * tests/test-locale-c++.cc: Likewise.
1622         * tests/test-math-c++.cc: Likewise.
1623         * tests/test-pty-c++.cc: Likewise.
1624         * tests/test-search-c++.cc: Likewise.
1625         * tests/test-signal-c++.cc: Likewise.
1626         * tests/test-spawn-c++.cc: Likewise.
1627         * tests/test-stdio-c++.cc: Likewise.
1628         * tests/test-stdlib-c++.cc: Likewise.
1629         * tests/test-string-c++.cc: Likewise.
1630         * tests/test-sys_ioctl-c++.cc: Likewise.
1631         * tests/test-sys_select-c++.cc: Likewise.
1632         * tests/test-sys_socket-c++.cc: Likewise.
1633         * tests/test-sys_stat-c++.cc: Likewise.
1634         * tests/test-sys_time-c++.cc: Likewise.
1635         * tests/test-time-c++.cc: Likewise.
1636         * tests/test-unistd-c++.cc: Likewise.
1637         * tests/test-wchar-c++.cc: Likewise.
1638         * tests/uninorm/test-u8-nfc.c: Likewise.
1639         * tests/uninorm/test-u8-nfd.c: Likewise.
1640         * tests/uninorm/test-u8-nfkc.c: Likewise.
1641         * tests/uninorm/test-u8-nfkd.c: Likewise.
1642         * tests/uninorm/test-u16-nfc.c: Likewise.
1643         * tests/uninorm/test-u16-nfd.c: Likewise.
1644         * tests/uninorm/test-u16-nfkc.c: Likewise.
1645         * tests/uninorm/test-u16-nfkd.c: Likewise.
1646         * tests/uninorm/test-u32-nfc.c: Likewise.
1647         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1648         * tests/uninorm/test-u32-nfd.c: Likewise.
1649         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1650         * tests/uninorm/test-u32-nfkc.c: Likewise.
1651         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1652         * tests/uninorm/test-u32-nfkd.c: Likewise.
1653         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1654         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1655
1656 2010-03-27  Bruno Haible  <bruno@clisp.org>
1657
1658         Distinguish two kinds of module indicators.
1659         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1660         gl_MODULE_INDICATOR.
1661         (gl_MODULE_INDICATOR): New macro.
1662         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1663         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1664         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1665         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1666         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1667         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1668         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1669         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1670         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1671         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1672         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1673         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1674         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1675         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1676         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1677         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1678         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1679         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1680         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1681         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1682         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1683         * modules/cloexec (configure.ac): Likewise.
1684         * modules/getopt-gnu (configure.ac): Likewise.
1685         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1686         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1687         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1688         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1689
1690 2010-03-27  Bruno Haible  <bruno@clisp.org>
1691
1692         New module description field 'Comment'.
1693         * gnulib-tool: New option --extract-comment.
1694         (func_usage): Document it.
1695         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1696         (func_get_comment): New function.
1697         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1698
1699 2010-03-27  Bruno Haible  <bruno@clisp.org>
1700
1701         Addendum to 2010-02-07 commit.
1702         * gnulib-tool (func_usage): Document --extract-applicability option.
1703
1704 2010-03-27  Bruno Haible  <bruno@clisp.org>
1705
1706         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1707         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1708         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1709         rather than link errors.
1710
1711 2010-03-27  Bruno Haible  <bruno@clisp.org>
1712
1713         Avoid side effects from tests-related modules on the compilation of lib.
1714         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1715         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1716         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1717         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1718         macro.
1719         (func_import): Define a witness macro. Assign it a value that depends
1720         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1721         tests-related modules.
1722         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1723         Reported by Jim Meyering.
1724
1725 2010-03-27  Bruno Haible  <bruno@clisp.org>
1726
1727         Factorize common .m4 code.
1728         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1729         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1730         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1731         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1732         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1733         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1734         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1735         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1736         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1737         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1738         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1739         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1740         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1741         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1742         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1743         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1744         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1745         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1747         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1748         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1749         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1750         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1751         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1752         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1753         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1754         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1755         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1756         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1757         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1758         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1759         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1760
1761 2010-03-27  Bruno Haible  <bruno@clisp.org>
1762
1763         Fix a compilation error on Cygwin with g++ >= 4.3.
1764         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1765         if it is undefined or if we alias it to chmod.
1766         (lstat): Don't warn about the use of this function if it is undefined
1767         or if we alias it to stat.
1768         Reported by Simon Josefsson.
1769
1770 2010-03-27  Bruno Haible  <bruno@clisp.org>
1771
1772         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1773         * modules/getlogin (configure.ac): Update.
1774
1775         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1776         * modules/getlogin_r (configure.ac): Update.
1777
1778         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1780         * modules/inet_ntop (configure.ac): Update.
1781
1782         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1783         * modules/inet_pton (configure.ac): Update.
1784
1785         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1786         * modules/mbslen (configure.ac): Update.
1787
1788         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1789         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1790         * modules/forkpty (configure.ac): Update.
1791         * modules/openpty (configure.ac): Update.
1792
1793 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1794
1795         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1796         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1797
1798 2010-03-25  Eric Blake  <eblake@redhat.com>
1799
1800         maint: use pragma consistently across replacement headers
1801         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1802         * lib/dirent.in.h (system_header): Likewise.
1803         * lib/errno.in.h (system_header): Likewise.
1804         * lib/float.in.h (system_header): Likewise.
1805         * lib/getopt.in.h (system_header): Likewise.
1806         * lib/iconv.in.h (system_header): Likewise.
1807         * lib/inttypes.in.h (system_header): Likewise.
1808         * lib/langinfo.in.h (system_header): Likewise.
1809         * lib/locale.in.h (system_header): Likewise.
1810         * lib/math.in.h (system_header): Likewise.
1811         * lib/netdb.in.h (system_header): Likewise.
1812         * lib/netinet_in.in.h (system_header): Likewise.
1813         * lib/pty.in.h (system_header): Likewise.
1814         * lib/sched.in.h (system_header): Likewise.
1815         * lib/se-selinux.in.h (system_header): Likewise.
1816         * lib/search.in.h (system_header): Likewise.
1817         * lib/spawn.in.h (system_header): Likewise.
1818         * lib/stdarg.in.h (system_header): Likewise.
1819         * lib/stdint.in.h (system_header): Likewise.
1820         * lib/string.in.h (system_header): Likewise.
1821         * lib/strings.in.h (system_header): Likewise.
1822         * lib/sys_file.in.h (system_header): Likewise.
1823         * lib/sys_ioctl.in.h (system_header): Likewise.
1824         * lib/sys_socket.in.h (system_header): Likewise.
1825         * lib/sys_times.in.h (system_header): Likewise.
1826         * lib/sys_utsname.in.h (system_header): Likewise.
1827         * lib/sys_wait.in.h (system_header): Likewise.
1828         * lib/sysexits.in.h (system_header): Likewise.
1829         * lib/unistd.in.h (system_header): Likewise.
1830         * lib/wctype.in.h (system_header): Likewise.
1831
1832         arpa/inet: fix mingw compilation warning
1833         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1834         Reported by Matthew Bolte.
1835
1836 2010-03-25  Bruno Haible  <bruno@clisp.org>
1837
1838         Avoid collision between gnulib wrapper and libintl wrapper.
1839         * lib/printf.c (printf): Don't define if a printf wrapper is already
1840         defined in intl/printf.c.
1841         Reported by Michel Boaventura <michel@michelboaventura.com>.
1842
1843 2010-03-25  Bruno Haible  <bruno@clisp.org>
1844
1845         Use ANSI C.
1846         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1847
1848 2010-03-25  Bruno Haible  <bruno@clisp.org>
1849
1850         Minor formatting changes.
1851         * lib/acosl.c: Insert space before function argument list.
1852         * lib/argz.c: Likewise.
1853         * lib/asinl.c: Likewise.
1854         * lib/expl.c: Likewise.
1855         * lib/gen-uni-tables.c: Likewise.
1856         * lib/gettext.h: Likewise.
1857         * lib/glthread/lock.h: Likewise.
1858         * lib/tanl.c: Likewise.
1859         * lib/uniname/uniname.c: Likewise.
1860         * tests/test-idpriv-drop.c: Likewise.
1861         * tests/test-idpriv-droptemp.c: Likewise.
1862         * tests/test-lock.c: Likewise.
1863         * tests/test-tls.c: Likewise.
1864         * lib/argp-help.c: Insert space before function-like macro argument
1865         list.
1866         * lib/memcmp.c: Likewise.
1867         * tests/test-base64.c: Likewise.
1868         * lib/localename.c: Insert space before sizeof's argument list.
1869         * lib/safe-alloc.h: Likewise.
1870         * lib/file-set.h: Insert space before macro argument list.
1871         * tests/test-argp.c: Likewise.
1872         * lib/argp-namefrob.h: Insert space before function parameter list.
1873         * lib/getaddrinfo.c: Likewise.
1874         * lib/netdb.in.h: Likewise.
1875         * lib/parse-duration.h: Likewise.
1876         * lib/parse-duration.c: Likewise.
1877         * lib/poll.c: Likewise.
1878         * lib/select.c: Likewise.
1879         * lib/trim.h: Likewise.
1880         * tests/test-usleep.c: Likewise.
1881         * lib/ldexpl.c: Insert space before function parameter list and before
1882         function argument list.
1883         * lib/logl.c: Likewise.
1884         * lib/sqrtl.c: Likewise.
1885         * lib/trim.c: Likewise.
1886         * lib/cosl.c: Use GNU style indentation. Insert space before function
1887         argument list.
1888         * lib/sinl.c: Likewise.
1889         * lib/tsearch.c: Insert space after 'for'.
1890         Reported by Jim Meyering.
1891
1892 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1893
1894         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1895         config header before grepping, as it's not present before
1896         autoreconf/configure are run.  Reported by Simon Josefsson.
1897
1898 2010-03-23  Bruno Haible  <bruno@clisp.org>
1899
1900         pt_chown: Make it work with automake < 1.11.
1901         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1902         Reported by Simon Josefsson.
1903
1904 2010-03-23  Bruno Haible  <bruno@clisp.org>
1905
1906         pt_chown: Don't depend on GPLed modules.
1907         * lib/pt_chown.c: Don't include idpriv.h.
1908         (main): Don't drop privileges.
1909         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1910         Reported by Simon Josefsson.
1911
1912 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1913
1914         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1915         suggestions from karl@freefriends.org (Karl Berry).
1916
1917 2010-03-22  Eric Blake  <eblake@redhat.com>
1918
1919         gethostname: further tweaks
1920         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1921         are overriding gethostname.
1922         Suggested by Bruno Haible.
1923
1924 2010-03-21  Bruno Haible  <bruno@clisp.org>
1925
1926         Fix comments.
1927         * lib/forkpty.c (rpl_forkpty): Fix comment.
1928         * lib/openpty.c (rpl_openpty): Likewise.
1929         Reported by Eric Blake.
1930
1931 2010-03-22  Eric Blake  <eblake@redhat.com>
1932
1933         gethostname: fix build on mingw
1934         * lib/unistd.in.h (includes): Work around fact that mingw
1935         <winsock2.h> re-includes <unistd.h>, by avoiding any
1936         redeclarations if we are being included by <winsock2.h>.
1937         Reported by Matthias Bolte.
1938
1939 2010-03-21  Bruno Haible  <bruno@clisp.org>
1940
1941         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1942         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1943         modifications.
1944         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1945         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1946         provide the replacement.
1947         * modules/forkpty (Depends-on): Add openpty, login_tty.
1948         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1949         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1950         * doc/glibc-functions/forkpty.texi: More supported platforms.
1951         * config/srclist.txt: Add forkpty.c (commented).
1952
1953 2010-03-21  Bruno Haible  <bruno@clisp.org>
1954
1955         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1956         (Makefile.am): Verify that PTY_LIB is defined.
1957
1958         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1959
1960 2010-03-21  Bruno Haible  <bruno@clisp.org>
1961
1962         Tests for module 'login_tty'.
1963         * modules/login_tty-tests: New file.
1964         * tests/test-login_tty.c: New file.
1965
1966         New module 'login_tty'.
1967         * lib/login_tty.c: New file.
1968         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1969         * modules/login_tty: New file.
1970         * doc/glibc-functions/login_tty.texi: Mention the new module.
1971
1972 2010-03-21  Bruno Haible  <bruno@clisp.org>
1973
1974         login_tty: Documentation.
1975         * doc/glibc-functions/login_tty.texi: New file.
1976         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1977
1978 2010-03-21  Bruno Haible  <bruno@clisp.org>
1979
1980         pty: Consistent macro naming.
1981         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1982         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1983         * modules/pty (configure.ac): Update.
1984
1985 2010-03-21  Bruno Haible  <bruno@clisp.org>
1986
1987         Tests for openpty: Make stricter.
1988         * tests/test-openpty.c (main): Add test of canonical processing and
1989         erase.
1990         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1991
1992         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1993         * lib/openpty.c (openpty): New replacement function.
1994         * lib/pty.in.h: Include <termios.h>.
1995         (openpty): Update declaration. Add comments.
1996         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1997         is not declared, arrange to provide the replacement. Check for _getpty
1998         and posix_openpt.
1999         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
2000         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
2001         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
2002         * modules/pty-tests (test_pty_c___LDADD): New variable.
2003         * doc/glibc-functions/openpty.texi: More supported platforms.
2004
2005 2010-03-21  Bruno Haible  <bruno@clisp.org>
2006
2007         setenv: Tweaks.
2008         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
2009         the test program.
2010         * doc/posix-functions/setenv.texi: Update platforms list.
2011
2012 2010-03-21  Bruno Haible  <bruno@clisp.org>
2013
2014         New module 'unlockpt'.
2015         * lib/unlockpt.c: New file, from glibc with modifications.
2016         * m4/unlockpt.m4: New file.
2017         * modules/unlockpt: New file.
2018         * lib/stdlib.in.h (unlockpt): New declaration.
2019         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
2020         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
2021         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
2022         HAVE_UNLOCKPT.
2023         * doc/posix-functions/unlockpt.texi: Mention the new module.
2024         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
2025         * config/srclist.txt: Add unlockpt.c (commented).
2026
2027 2010-03-21  Jim Meyering  <meyering@redhat.com>
2028
2029         maint.mk: prohibit inclusion of "intprops.h" without use
2030         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
2031
2032 2010-03-21  Bruno Haible  <bruno@clisp.org>
2033
2034         New module 'grantpt'.
2035         * lib/grantpt.c: New file, from glibc with modifications.
2036         * m4/grantpt.m4: New file.
2037         * modules/grantpt: New file.
2038         * lib/stdlib.in.h (grantpt): New declaration.
2039         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
2040         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
2041         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
2042         HAVE_GRANTPT.
2043         * doc/posix-functions/grantpt.texi: Mention the new module.
2044         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
2045         * config/srclist.txt: Add grantpt.c (commented).
2046
2047 2010-03-21  Bruno Haible  <bruno@clisp.org>
2048
2049         New module 'pt_chown'.
2050         * lib/pt_chown.c: New file, from glibc with modifications.
2051         * lib/pty-private.h: New file, from glibc with modifications.
2052         * modules/pt_chown: New file.
2053         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
2054
2055 2010-03-21  Bruno Haible  <bruno@clisp.org>
2056
2057         Tests for module 'ptsname'.
2058         * modules/ptsname-tests: New file.
2059         * tests/test-ptsname.c: New file.
2060
2061         New module 'ptsname'.
2062         * lib/ptsname.c: New file, from glibc with modifications.
2063         * m4/ptsname.m4: New file.
2064         * modules/ptsname: New file.
2065         * lib/stdlib.in.h (ptsname): New declaration.
2066         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
2067         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
2068         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
2069         HAVE_PTSNAME.
2070         * doc/posix-functions/ptsname.texi: Mention the new module.
2071         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
2072         * config/srclist.txt: Add ptsname.c (commented).
2073
2074 2010-03-21  Bruno Haible  <bruno@clisp.org>
2075
2076         Tests for module 'ttyname_r'.
2077         * modules/ttyname_r-tests: New file.
2078         * tests/test-ttyname_r.c: New file.
2079
2080         New module 'ttyname_r'.
2081         * lib/ttyname_r.c: New file.
2082         * m4/ttyname_r.m4: New file.
2083         * modules/ttyname_r: New file.
2084         * lib/unistd.in.h (ttyname_r): New declaration.
2085         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
2086         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
2087         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
2088         HAVE_TTYNAME_R.
2089         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
2090         * doc/posix-functions/ttyname_r.texi: Mention the new module.
2091
2092 2010-03-20  Bruno Haible  <bruno@clisp.org>
2093
2094         signal: Undefine macro definitions in C++ mode.
2095         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
2096         sigfillset): Undefine macro definitions from the system header in C++
2097         mode.
2098         Reported by John W. Eaton <jwe@gnu.org>.
2099
2100 2010-03-20  Bruno Haible  <bruno@clisp.org>
2101
2102         Ensure no #include statements inside extern "C" { ... }.
2103         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
2104         contain #include statements.
2105         * lib/time.in.h: Likewise.
2106
2107 2010-03-20  Bruno Haible  <bruno@clisp.org>
2108
2109         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
2110         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
2111         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
2112         Reported by John W. Eaton <jwe@gnu.org>.
2113
2114 2010-03-20  Bruno Haible  <bruno@clisp.org>
2115
2116         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
2117         Reported by Jim Meyering.
2118
2119 2010-03-20  Bruno Haible  <bruno@clisp.org>
2120
2121         pipe: Set errno upon failure.
2122         * lib/pipe.h: Specify that when -1 is returned, errno is set.
2123         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
2124         errno value in error message.
2125
2126 2010-03-20  Bruno Haible  <bruno@clisp.org>
2127             Jim Meyering  <meyering@redhat.com>
2128
2129         lchown: Avoid "unused variable" warning.
2130         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
2131
2132 2010-03-20  Bruno Haible  <bruno@clisp.org>
2133
2134         Work around unlink() bug on MacOS X 10.5.6.
2135         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
2136         attempting to unlink a parent directory.
2137         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
2138         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
2139         activate for the replacement function.
2140         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
2141
2142 2010-03-20  Bruno Haible  <bruno@clisp.org>
2143
2144         Fix link errors on Solaris 8.
2145         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
2146         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
2147
2148 2010-03-19  Jim Meyering  <meyering@redhat.com>
2149
2150         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
2151         The _LIBC implementation of build_range_exp correctly honors the
2152         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
2153         However, the non-_LIBC implementation would ignore that syntax-bit
2154         flag and return REG_ERANGE unconditionally.
2155         This change makes it honor that flag.
2156         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
2157         Make two pointer parameters "const".
2158         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
2159         (parse_bracket_exp): Update caller.
2160
2161         regex.m4: correct the reversed range endpoint ([b-a]) test
2162         * m4/regex.m4: When requiring that [b-a] evoke failure,
2163         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
2164         test pass once again for x86-based systems.
2165
2166 2010-03-19  Bruno Haible  <bruno@clisp.org>
2167
2168         scandir: Fix link error on Solaris 8.
2169         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
2170         macros.
2171
2172 2010-03-19  Bruno Haible  <bruno@clisp.org>
2173
2174         getusershell: Fix documentation.
2175         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
2176         module.
2177         * doc/glibc-functions/setusershell.texi: Likewise.
2178
2179         getusershell: Provide declaration, missing on Solaris 9.
2180         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
2181         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
2182         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
2183         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
2184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2185         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
2186         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
2187         HAVE_GETUSERSHELL.
2188         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
2189
2190 2010-03-19  Bruno Haible  <bruno@clisp.org>
2191
2192         wctype: Provide iswblank function.
2193         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
2194         exists and is fine.
2195         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
2196         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
2197         * tests/test-wctype.c (main): Re-enable the iswblank tests.
2198         * doc/posix-functions/iswblank.texi: Update.
2199
2200 2010-03-19  Bruno Haible  <bruno@clisp.org>
2201
2202         Tests of module 'pty' in C++ mode.
2203         * modules/pty-tests: New file.
2204         * tests/test-pty-c++.cc: New file.
2205         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2206
2207 2010-03-19  Eric Blake  <eblake@redhat.com>
2208
2209         logb: fix documentation
2210         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
2211         1.5 declaration bug.
2212
2213         forkpty, openpty: prefer glibc's const-safe prototype
2214         * lib/forkpty.c (rpl_forkpty): New file.
2215         * lib/openpty.c (rpl_openpty): Likewise.
2216         * modules/forkpty (Files): Distribute it.
2217         * modules/openpty (Files): Likewise.
2218         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
2219         check...
2220         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
2221         replacement for for non-const BSD signature.
2222         * modules/pty (Makefile.am): Substitute witnesses.
2223         * lib/pty.in.h (forkpty, openpty): Declare replacements.
2224         * tests/test-forkpty.c: Update signature check.
2225         * tests/test-openpty.c: Likewise.
2226         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
2227         * doc/glibc-functions/openpty.texi (openpty): Likewise.
2228
2229         forkpty, openpty: split functions into new modules
2230         * modules/pty (Makefile.am): Substitute new witnesses.
2231         (Libraries): Move library detection...
2232         * modules/forkpty: ...into new module.
2233         * modules/openpty: Another new module.
2234         * modules/pty-tests: Rename and split...
2235         * modules/forkpty-tests: ...to this...
2236         * modules/openpty-tests: ...and this.
2237         * tests/test-pty.c: Rename and split...
2238         * tests/test-forkpty.c: ...to this...
2239         * tests/test-openpty.c: ...and this.
2240         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
2241         (gl_PTY): Split library searching...
2242         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
2243         (gl_FORKPTY, gl_OPENPTY): New macros.
2244         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
2245         * NEWS: Mention the split.
2246         * MODULES.html.sh (Misc): Document the modules.
2247         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
2248         * doc/glibc-functions/openpty.texi (openpty): Likewise.
2249
2250         pty: improve replacement header
2251         * lib/pty.in.h: New file.
2252         * modules/pty (Files): Ship it.
2253         (Makefile.am): Always build replacement.
2254         * m4/pty.m4: Rename...
2255         * m4/pty_h.m4: ...to this.
2256         (gl_PTY): Modernize setting of witness macros; update check of
2257         forkpty to take proper advantage of cache.
2258         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
2259
2260         getopt: avoid compiler warning
2261         * lib/getopt.c (attribute_hidden): Remove unused macro.
2262
2263 2010-03-18  Bruno Haible  <bruno@clisp.org>
2264
2265         Fix link errors on Solaris 8.
2266         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
2267         * modules/search-tests (test_search_c___LDADD): Likewise.
2268         * modules/signal-tests (test_signal_c___LDADD): Likewise.
2269         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
2270         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
2271         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
2272         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
2273         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
2274         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
2275
2276 2010-03-18  Bruno Haible  <bruno@clisp.org>
2277
2278         Fix bug introduced on 2010-03-14.
2279         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
2280         (gl_SPAWN_H): Require it.
2281         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
2282         Reported by Simon Josefsson.
2283
2284 2010-03-18  Bruno Haible  <bruno@clisp.org>
2285
2286         Fix typo introduced on 2009-12-31.
2287         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
2288         posix_spawn_file_actions_adddup2.
2289
2290 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
2291         and Eric Blake  <eblake@redhat.com>
2292
2293         test-vc-list-files-git: make more robust
2294         * tests/test-vc-list-files-git.sh: Unset problematic environment
2295         variables.  Chain commands together.
2296
2297 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
2298
2299         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
2300         `AC_CHECK_DECL' invocation.
2301
2302 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
2303
2304         * lib/inttostr.c (inttostr): Make sure the invocation of verify
2305         appears before executable statements. Suggested by Petr Sumbera
2306         <Petr.Sumbera@Sun.COM>.
2307
2308 2010-03-14  Bruno Haible  <bruno@clisp.org>
2309
2310         * tests/test-flock.c (test_exclusive): Comment out a test that causes
2311         portability problems. Instead use a simpler test.
2312         (main): Check that invalid arguments are rejected only on Linux.
2313
2314 2010-03-14  Bruno Haible  <bruno@clisp.org>
2315
2316         Fix bug introduced on 2009-12-31.
2317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2318         gl_PREREQ_SYS_H_WINSOCK2 always.
2319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
2320         SYS_SOCKET_H variable.
2321         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
2322         Update comments.
2323         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
2324         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2325         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2326         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2327         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2328
2329 2010-03-14  Bruno Haible  <bruno@clisp.org>
2330
2331         Fix values returned by sinl, cosl.
2332         * lib/trigl.h: Add specification comments.
2333         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
2334         that combines the values from the precomputed table with the values of
2335         the Chebyshev polynomials.
2336
2337 2010-03-14  Bruno Haible  <bruno@clisp.org>
2338
2339         Fix compilation error when modules 'posix_spawn[p]' are not used.
2340         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
2341         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
2342
2343 2010-03-14  Bruno Haible  <bruno@clisp.org>
2344
2345         Fix compilation error on mingw when module 'time_r' is not used.
2346         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
2347         is 1.
2348         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
2349         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2350         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
2351         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
2352
2353 2010-03-14  Bruno Haible  <bruno@clisp.org>
2354
2355         Fix compilation error with Sun C.
2356         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
2357         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
2358         instead of GCC specific ULONG_LONG_MAX.
2359         * lib/xstrtoll.c: Likewise.
2360         * lib/xstrtoull.c: Likewise.
2361
2362 2010-03-13  Bruno Haible  <bruno@clisp.org>
2363
2364         Allow the user to disable C++ code and tests.
2365         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
2366         (gl_PROG_ANSI_CXX): Require it.
2367
2368 2010-03-13  Bruno Haible  <bruno@clisp.org>
2369
2370         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
2371         cases.
2372
2373 2010-03-13  Bruno Haible  <bruno@clisp.org>
2374
2375         Test that gnulib does not break the standard C++ headers.
2376         * tests/test-locale-c++2.cc: New file.
2377         * modules/locale-tests (Files): Add it.
2378         (Makefile.am): Compile it for test-locale-c++.
2379         * tests/test-math-c++2.cc: New file.
2380         * modules/math-tests (Files): Add it.
2381         (Makefile.am): Compile it for test-math-c++.
2382         * tests/test-signal-c++2.cc: New file.
2383         * modules/signal-tests (Files): Add it.
2384         (Makefile.am): Compile it for test-signal-c++.
2385         * tests/test-stdio-c++2.cc: New file.
2386         * modules/stdio-tests (Files): Add it.
2387         (Makefile.am): Compile it for test-stdio-c++.
2388         * tests/test-stdlib-c++2.cc: New file.
2389         * modules/stdlib-tests (Files): Add it.
2390         (Makefile.am): Compile it for test-stdlib-c++.
2391         * tests/test-string-c++2.cc: New file.
2392         * modules/string-tests (Files): Add it.
2393         (Makefile.am): Compile it for test-string-c++.
2394         * tests/test-time-c++2.cc: New file.
2395         * modules/time-tests (Files): Add it.
2396         (Makefile.am): Compile it for test-time-c++.
2397         Reported by John W. Eaton <jwe@gnu.org>.
2398
2399 2010-03-13  Bruno Haible  <bruno@clisp.org>
2400
2401         * gnulib-tool (func_usage): Clarify which options are available for
2402         --create-testdir and --create-megatestdir.
2403
2404 2010-03-13  Bruno Haible  <bruno@clisp.org>
2405
2406         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
2407         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
2408         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
2409         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2410         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
2411         when appropriate.
2412         Reported by Jim Meyering.
2413
2414 2010-03-12  Simon Josefsson  <simon@josefsson.org>
2415
2416         * gnulib-tool (func_import): Explain origin of code.
2417
2418 2010-03-12  Bruno Haible  <bruno@clisp.org>
2419
2420         Fix problem with automake's definition of CXXLINK.
2421         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
2422         Reported by Simon Josefsson and Ludovic Courtès.
2423
2424 2010-03-12  Bruno Haible  <bruno@clisp.org>
2425
2426         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
2427         stable releases.
2428
2429 2010-03-11  Bruno Haible  <bruno@clisp.org>
2430
2431         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
2432         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
2433         whether the system provides one variant or multiple variants of the
2434         function.
2435         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
2436         C++ compilers.
2437         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
2438         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
2439         Reported by Jim Meyering.
2440
2441 2010-03-09  Simon Josefsson  <simon@josefsson.org>
2442
2443         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
2444
2445 2010-03-08  Bruno Haible  <bruno@clisp.org>
2446
2447         gnulib-tool: Add support for --libtool in --create-testdir.
2448         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
2449         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
2450
2451 2010-03-08  Eric Blake  <eblake@redhat.com>
2452
2453         gnulib-tool.texi: mention possibility of git submodule
2454         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
2455         submodules.
2456         * doc/.gitignore: Ignore another generated file.
2457
2458 2010-03-08  Karl Berry  <karl@gnu.org>
2459
2460         * doc/gnulib-tool.texi (VCS Issues): Mention third option
2461         of committing gnulib files while skipping others.
2462
2463 2010-03-07  Bruno Haible  <bruno@clisp.org>
2464
2465         Tests of module 'wctype' in C++ mode.
2466         * tests/test-wctype-c++.cc: New file.
2467         * modules/wctype-tests (Files): Add it and tests/signature.h.
2468         (Depends-on): Add ansi-c++-opt.
2469         (Makefile.am): Arrange to compile and run test-wctype-c++.
2470
2471         Tests of module 'wchar' in C++ mode.
2472         * tests/test-wchar-c++.cc: New file.
2473         * modules/wchar-tests (Files): Add it and tests/signature.h.
2474         (Depends-on): Add ansi-c++-opt.
2475         (Makefile.am): Arrange to compile and run test-wchar-c++.
2476         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
2477         gl_MODULE_INDICATOR.
2478
2479         Tests of module 'unistd' in C++ mode.
2480         * tests/test-unistd-c++.cc: New file.
2481         * modules/unistd-tests (Files): Add it and tests/signature.h.
2482         (Depends-on): Add ansi-c++-opt.
2483         (Makefile.am): Arrange to compile and run test-unistd-c++.
2484         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
2485         gl_MODULE_INDICATOR.
2486
2487         Tests of module 'time' in C++ mode.
2488         * tests/test-time-c++.cc: New file.
2489         * modules/time-tests (Files): Add it and tests/signature.h.
2490         (Depends-on): Add ansi-c++-opt.
2491         (Makefile.am): Arrange to compile and run test-time-c++.
2492         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2493
2494         Tests of module 'sys_time' in C++ mode.
2495         * tests/test-sys_time-c++.cc: New file.
2496         * modules/sys_time-tests (Files): Add it and tests/signature.h.
2497         (Depends-on): Add ansi-c++-opt.
2498         (Makefile.am): Arrange to compile and run test-sys_time-c++.
2499         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
2500         gl_MODULE_INDICATOR.
2501
2502         Tests of module 'sys_stat' in C++ mode.
2503         * tests/test-sys_stat-c++.cc: New file.
2504         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
2505         (Depends-on): Add ansi-c++-opt.
2506         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
2507         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
2508         gl_MODULE_INDICATOR.
2509
2510         Tests of module 'sys_socket' in C++ mode.
2511         * tests/test-sys_socket-c++.cc: New file.
2512         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
2513         (Depends-on): Add ansi-c++-opt.
2514         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
2515         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
2516         gl_MODULE_INDICATOR.
2517
2518         Tests of module 'sys_select' in C++ mode.
2519         * tests/test-sys_select-c++.cc: New file.
2520         * modules/sys_select-tests (Files): Add it and tests/signature.h.
2521         (Depends-on): Add ansi-c++-opt.
2522         (Makefile.am): Arrange to compile and run test-sys_select-c++.
2523         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
2524         gl_MODULE_INDICATOR.
2525
2526         Tests of module 'sys_ioctl' in C++ mode.
2527         * tests/test-sys_ioctl-c++.cc: New file.
2528         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
2529         (Depends-on): Add ansi-c++-opt.
2530         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
2531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
2532         gl_MODULE_INDICATOR.
2533
2534         Tests of module 'string' in C++ mode.
2535         * tests/test-string-c++.cc: New file.
2536         * modules/string-tests (Files): Add it and tests/signature.h.
2537         (Depends-on): Add ansi-c++-opt.
2538         (Makefile.am): Arrange to compile and run test-string-c++.
2539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
2540         gl_MODULE_INDICATOR.
2541
2542         Tests of module 'stdlib' in C++ mode.
2543         * tests/test-stdlib-c++.cc: New file.
2544         * modules/stdlib-tests (Files): Add it and tests/signature.h.
2545         (Depends-on): Add ansi-c++-opt.
2546         (Makefile.am): Arrange to compile and run test-stdlib-c++.
2547         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
2548         gl_MODULE_INDICATOR.
2549
2550         Tests of module 'stdio' in C++ mode.
2551         * tests/test-stdio-c++.cc: New file.
2552         * modules/stdio-tests (Files): Add it and tests/signature.h.
2553         (Depends-on): Add ansi-c++-opt.
2554         (Makefile.am): Arrange to compile and run test-stdio-c++.
2555         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
2556         gl_MODULE_INDICATOR.
2557
2558         Tests of module 'spawn' in C++ mode.
2559         * tests/test-spawn-c++.cc: New file.
2560         * modules/spawn-tests (Files): Add it and tests/signature.h.
2561         (Depends-on): Add ansi-c++-opt.
2562         (Makefile.am): Arrange to compile and run test-spawn-c++.
2563         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
2564         gl_MODULE_INDICATOR.
2565
2566         Tests of module 'signal' in C++ mode.
2567         * tests/test-signal-c++.cc: New file.
2568         * modules/signal-tests (Files): Add it and tests/signature.h.
2569         (Depends-on): Add ansi-c++-opt.
2570         (Makefile.am): Arrange to compile and run test-signal-c++.
2571         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
2572         gl_MODULE_INDICATOR.
2573
2574         Tests of module 'search' in C++ mode.
2575         * tests/test-search-c++.cc: New file.
2576         * modules/search-tests (Files): Add it and tests/signature.h.
2577         (Depends-on): Add ansi-c++-opt.
2578         (Makefile.am): Arrange to compile and run test-search-c++.
2579         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
2580         gl_MODULE_INDICATOR.
2581
2582         Tests of module 'math' in C++ mode.
2583         * tests/test-math-c++.cc: New file.
2584         * modules/math-tests (Files): Add it and tests/signature.h.
2585         (Depends-on): Add ansi-c++-opt.
2586         (Makefile.am): Arrange to compile and run test-math-c++.
2587         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2588
2589         Tests of module 'locale' in C++ mode.
2590         * tests/test-locale-c++.cc: New file.
2591         * modules/locale-tests (Files): Add it and tests/signature.h.
2592         (Depends-on): Add ansi-c++-opt.
2593         (Makefile.am): Arrange to compile and run test-locale-c++.
2594         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
2595         gl_MODULE_INDICATOR.
2596
2597         Tests of module 'langinfo' in C++ mode.
2598         * tests/test-langinfo-c++.cc: New file.
2599         * modules/langinfo-tests (Files): Add it and tests/signature.h.
2600         (Depends-on): Add ansi-c++-opt.
2601         (Makefile.am): Arrange to compile and run test-langinfo-c++.
2602         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
2603         gl_MODULE_INDICATOR.
2604
2605         Tests of module 'iconv-h' in C++ mode.
2606         * tests/test-iconv-h-c++.cc: New file.
2607         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
2608         (Depends-on): Add ansi-c++-opt.
2609         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
2610
2611         Tests of module 'glob' in C++ mode.
2612         * tests/test-glob-c++.cc: New file.
2613         * modules/glob-tests (Files): Add it.
2614         (Depends-on): Add ansi-c++-opt.
2615         (Makefile.am): Arrange to compile and run test-glob-c++.
2616
2617         Tests of module 'fcntl-h' in C++ mode.
2618         * tests/test-fcntl-h-c++.cc: New file.
2619         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2620         (Depends-on): Add ansi-c++-opt.
2621         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2622         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2623         gl_MODULE_INDICATOR.
2624
2625         Tests of module 'dirent' in C++ mode.
2626         * tests/test-dirent-c++.cc: New file.
2627         * modules/dirent-tests (Files): Add it and tests/signature.h.
2628         (Depends-on): Add ansi-c++-opt.
2629         (Makefile.am): Arrange to compile and run test-dirent-c++.
2630         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2631         gl_MODULE_INDICATOR.
2632
2633         New module 'ansi-c++-opt'.
2634         * modules/ansi-c++-opt: New file.
2635         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2636
2637         Document C++ namespace mode.
2638         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2639
2640         wctype: Avoid #define replacements in C++ mode.
2641         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2642         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2643         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2644         In C++, define a namespaced alias symbol.
2645         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2646         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2647         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2648         rule.
2649
2650         wchar: Avoid #define replacements in C++ mode.
2651         * lib/wchar.in.h: Include c++defs.h.
2652         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2653         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2654         symbol.
2655         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2656         * modules/wchar (Depends-on): Add c++defs.
2657         (Makefile.am): Update wchar.h rule.
2658
2659         unistd: Avoid #define replacements in C++ mode.
2660         * lib/unistd.in.h: Include c++defs.h.
2661         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2662         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2663         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2664         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2665         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2666         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2667         symbol.
2668         (environ): Update.
2669         * modules/unistd (Depends-on): Add c++defs.
2670         (Makefile.am): Update unistd.h rule.
2671
2672         time: Avoid #define replacements in C++ mode.
2673         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2674         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2675         define a namespaced alias symbol.
2676         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2677         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2678         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2679         * modules/time (Depends-on): Add c++defs, warn-on-use.
2680         (Makefile.am): Update time.h rule.
2681         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2682         * modules/nanosleep (configure.ac): Likewise.
2683         * modules/strptime (configure.ac): Likewise.
2684         * modules/timegm (configure.ac): Likewise.
2685
2686         sys_time: Avoid #define replacements in C++ mode.
2687         * lib/sys_time.in.h: Include c++defs.h.
2688         (gettimeofday): In C++, define a namespaced alias symbol.
2689         * modules/sys_time (Depends-on): Add c++defs.
2690         (Makefile.am): Update sys/time.h rule.
2691
2692         sys_stat: Avoid #define replacements in C++ mode.
2693         * lib/sys_stat.in.h: Include c++defs.h.
2694         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2695         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2696         namespaced alias symbol.
2697         In C++, define a namespaced alias symbol.
2698         * modules/sys_stat (Depends-on): Add c++defs.
2699         (Makefile.am): Update sys/stat.h rule.
2700
2701         sys_socket: Avoid #define replacements in C++ mode.
2702         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2703         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2704         definitions also when the system has a <sys/socket.h>.
2705         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2706         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2707         In C++, define a namespaced alias symbol.
2708         * modules/sys_socket (Depends-on): Add c++defs.
2709         (Makefile.am): Update sys/socket.h rule.
2710
2711         sys_select: Avoid #define replacements in C++ mode.
2712         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2713         definitions also when the system has a <sys/select.h>.
2714         (select): In C++, define a namespaced alias symbol.
2715         * modules/sys_select (Depends-on): Add c++defs.
2716         (Makefile.am): Update sys/select.h rule.
2717
2718         sys_ioctl: Avoid #define replacements in C++ mode.
2719         * lib/sys_ioctl.in.h: Include c++defs.h.
2720         (ioctl): In C++, define a namespaced alias symbol.
2721         * modules/sys_ioctl (Depends-on): Add c++defs.
2722         (Makefile.am): Update sys/ioctl.h rule.
2723
2724         string: Avoid #define replacements in C++ mode.
2725         * lib/string.in.h: Include c++defs.h.
2726         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2727         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2728         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2729         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2730         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2731         * modules/string (Depends-on): Add c++defs.
2732         (Makefile.am): Update string.h rule.
2733
2734         stdlib: Avoid #define replacements in C++ mode.
2735         * lib/stdlib.in.h: Include c++defs.h.
2736         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2737         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2738         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2739         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2740         symbol.
2741         * modules/stdlib (Depends-on): Add c++defs.
2742         (Makefile.am): Update stdlib.h rule.
2743
2744         stdio: Avoid #define replacements in C++ mode.
2745         * lib/stdio.in.h: Include c++defs.h.
2746         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2747         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2748         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2749         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2750         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2751         namespaced alias symbol.
2752         * modules/stdio (Depends-on): Add c++defs.
2753         (Makefile.am): Update stdio.h rule.
2754
2755         spawn: Avoid #define replacements in C++ mode.
2756         * lib/spawn.in.h: Include c++defs.h.
2757         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2758         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2759         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2760         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2761         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2762         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2763         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2764         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2765         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2766         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2767         In C++, define a namespaced alias symbol.
2768         * modules/spawn (Depends-on): Add c++defs.
2769         (Makefile.am): Update spawn.h rule.
2770
2771         signal: Avoid #define replacements in C++ mode.
2772         * lib/signal.in.h: Include c++defs.h.
2773         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2774         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2775         namespaced alias symbol.
2776         * modules/signal (Depends-on): Add c++defs.
2777         (Makefile.am): Update signal.h rule.
2778
2779         search: Avoid #define replacements in C++ mode.
2780         * lib/search.in.h: Include c++defs.h.
2781         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2782         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2783         symbol.
2784         * modules/search (Depends-on): Add c++defs.
2785         (Makefile.am): Update search.h rule.
2786
2787         math: Avoid #define replacements in C++ mode.
2788         * lib/math.in.h: Include c++defs.h.
2789         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2790         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2791         trunc, truncl): In C++, define a namespaced alias symbol.
2792         * modules/math (Depends-on): Add c++defs.
2793         (Makefile.am): Update math.h rule.
2794
2795         locale: Avoid #define replacements in C++ mode.
2796         * lib/locale.in.h: Include c++defs.h.
2797         (duplocale): In C++, define a namespaced alias symbol.
2798         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2799         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2800         * modules/locale (Depends-on): Add c++defs.
2801         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2802
2803         langinfo: Avoid #define replacements in C++ mode.
2804         * lib/langinfo.in.h: Include c++defs.h.
2805         (nl_langinfo): In C++, define a namespaced alias symbol.
2806         * modules/langinfo (Depends-on): Add c++defs.
2807         (Makefile.am): Update langinfo.h rule.
2808
2809         iconv-h: Avoid #define replacements in C++ mode.
2810         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2811         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2812         symbol.
2813         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2814         whenever iconv is present.
2815         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2816         (Makefile.am): Update iconv.h rule.
2817
2818         glob: Avoid #define replacements in C++ mode.
2819         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2820         (_gl_glob_errfunc_fn): New type.
2821         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2822         symbol.
2823         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2824         (Makefile.am): Update glob.h rule.
2825
2826         fcntl-h: Avoid #define replacements in C++ mode.
2827         * lib/fcntl.in.h: Include c++defs.h.
2828         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2829         * modules/fcntl-h (Depends-on): Add c++defs.
2830         (Makefile.am): Update fcntl.h rule.
2831
2832         dirent: Avoid #define replacements in C++ mode.
2833         * lib/dirent.in.h: Include c++defs.h.
2834         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2835         namespaced alias symbol.
2836         (dirfd): Update declaration.
2837         * modules/dirent (Depends-on): Add c++defs.
2838         (Makefile.am): Update dirent.h rule.
2839
2840         ctype: Make it usable in C++ code.
2841         * lib/ctype.in.h: Include c++defs.h.
2842         (isblank): Declare as extern "C".
2843         * modules/ctype (Depends-on): Add c++defs.
2844         (Makefile.am): Update ctype.h rule.
2845
2846         New module 'c++defs'.
2847         * modules/c++defs: New file.
2848         * build-aux/c++defs.h: New file.
2849         Reported by John W. Eaton <jwe@gnu.org>.
2850
2851 2010-03-07  Bruno Haible  <bruno@clisp.org>
2852
2853         logb: Provide missing declaration for Cygwin.
2854         * lib/math.in.h (logb): New declaration.
2855         * m4/logb.m4: New file.
2856         * modules/logb (Files): Add m4/logb.m4.
2857         (Depends-on): Add math.
2858         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2859         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2861         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2862         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2863
2864 2010-03-07  Bruno Haible  <bruno@clisp.org>
2865
2866         Fix test-cond link error.
2867         * tests/test-cond.c: Include <stdio.h>.
2868
2869 2010-03-07  Bruno Haible  <bruno@clisp.org>
2870
2871         Fix test-dirent-safer link error.
2872         * modules/dirent-safer-tests (Makefile.am): Define
2873         test_dirent_safer_LDADD.
2874
2875 2010-03-07  Bruno Haible  <bruno@clisp.org>
2876
2877         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2878         among default module list.
2879
2880 2010-03-07  Bruno Haible  <bruno@clisp.org>
2881
2882         Fix link error on platforms with GNU libiconv.
2883         * modules/unistr/u8-strcoll-tests (Makefile): Define
2884         test_u8_strcoll_LDADD.
2885         * modules/unistr/u16-strcoll-tests (Makefile): Define
2886         test_u16_strcoll_LDADD.
2887         * modules/unistr/u32-strcoll-tests (Makefile): Define
2888         test_u32_strcoll_LDADD.
2889
2890 2010-03-07  Bruno Haible  <bruno@clisp.org>
2891
2892         Use POSIX declarations for socket functions.
2893         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2894         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2895         rpl_sendto): Change declaration to match POSIX.
2896         * lib/connect.c (rpl_connect): Likewise.
2897         * lib/accept.c (rpl_accept): Likewise.
2898         * lib/bind.c (rpl_bind): Likewise.
2899         * lib/getpeername.c (rpl_getpeername): Likewise.
2900         * lib/getsockname.c (rpl_getsockname): Likewise.
2901         * lib/recv.c (rpl_recv): Likewise.
2902         * lib/send.c (rpl_send): Likewise.
2903         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2904         * lib/sendto.c (rpl_sendto): Likewise.
2905
2906 2010-03-06  Bruno Haible  <bruno@clisp.org>
2907
2908         Clarify access, euidaccess, faccessat.
2909         * doc/posix-functions/faccessat.texi: Mention security problem under
2910         "Other problems", not "Portability problems".
2911         * doc/posix-functions/access.texi: Likewise. Mention a related security
2912         problem.
2913         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2914         * lib/euidaccess.c: Add comments about platforms.
2915         * lib/unistd.in.h (access, euidaccess): Add warnings.
2916
2917 2010-03-07  Bruno Haible  <bruno@clisp.org>
2918
2919         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2920         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2921         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2922         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2923         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2924         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2925         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2926         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2927         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2929         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2930         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2931         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2932         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2933         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2934         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2935         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2936         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2937         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2938         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2939         Likewise.
2940         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2941         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2942         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2943         Likewise.
2944         * tests/test-spawn.c (main): Make it work when
2945         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2946
2947 2010-03-07  Bruno Haible  <bruno@clisp.org>
2948
2949         Fix incorrect Makefile.am generation in German locale.
2950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2951         Execute sed command with character range in C locale.
2952
2953 2010-03-06  Bruno Haible  <bruno@clisp.org>
2954
2955         Tests for module 'iconv-h'.
2956         * modules/iconv-h-tests: New file.
2957         * tests/test-iconv-h.c: New file.
2958
2959         New module 'iconv-h'.
2960         * modules/iconv-h: New file.
2961         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2962         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2963         (configure.ac): Remove gl_ICONV_H.
2964         (Makefile.am): Remove rule for iconv.h.
2965
2966 2010-03-06  Bruno Haible  <bruno@clisp.org>
2967
2968         More consistent naming of *.m4 files.
2969         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2970         * modules/wctype (Files): Update.
2971
2972         More consistent naming of *.m4 files.
2973         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2974         * modules/wchar (Files): Update.
2975
2976 2010-03-06  Jim Meyering  <meyering@redhat.com>
2977
2978         euidaccess: relax license to LGPLv2+
2979         * modules/euidaccess (License): Relax to LGPLv2+.
2980
2981 2010-03-06  Bruno Haible  <bruno@clisp.org>
2982
2983         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2984         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2985         (Makefile.am): Augment lib_SOURCES instead.
2986
2987 2010-03-04  Jim Meyering  <meyering@redhat.com>
2988
2989         utime: remove obsolete module
2990         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2991         unnecessary for years, and has been marked as obsolete for 10 months.
2992         * modules/utime: Remove file.
2993         * lib/utime.c: Remove file.
2994         * m4/utime.m4: Remove file.
2995         * m4/utimes-null.m4: Remove file.
2996         * doc/posix-functions/utime.texi (utime): Remove reference to
2997         the module.  Move the sole "fixed by gnulib" item into the
2998         "problems not fixed by Gnulib" list.
2999         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
3000
3001 2010-03-05  Simon Josefsson  <simon@josefsson.org>
3002
3003         * modules/exit (License): Relax license to LGPLv2+.
3004         (Status): Mark as obsolete.
3005         * NEWS: Mention deprecated 'exit' module.
3006         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
3007         of now obsolete 'exit'.
3008
3009 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3010
3011         fts-lgpl: remove unused module
3012         * modules/fts-lgpl: Remove.
3013         * MODULES.html.sh (func_all_modules): Adjust.
3014         * check-module (find_included_lib_files): Adjust.
3015         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
3016
3017 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
3018
3019         copy-acl: enhance Solaris ACL error handling
3020         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
3021         * lib/set-mode-acl.c (qset_acl): Likewise.
3022
3023 2010-03-02  Bruno Haible  <bruno@clisp.org>
3024
3025         spawn: Don't override the system defined values on FreeBSD 8.
3026         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
3027         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
3028         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
3029         if HAVE_POSIX_SPAWN is 1.
3030         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
3031
3032 2010-03-01  Bruno Haible  <bruno@clisp.org>
3033
3034         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
3035         regarding Automake.
3036
3037 2010-02-25  Bruno Haible  <bruno@clisp.org>
3038
3039         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
3040         * gnulib-tool: Define 'echo' as a function only before the ksh alias
3041         setting, not afterwards.
3042         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
3043
3044 2010-02-24  Eric Blake  <eblake@redhat.com>
3045
3046         bootstrap, git-version-gen: use timestamp
3047         * build-aux/git-version-gen (scriptversion): Force UTC.
3048         * build-aux/bootstrap (scriptversion): New variable.
3049
3050         bootstrap: allow older git
3051         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
3052         older than 1.6.4.  Requested by the libvirt project.
3053
3054 2010-02-23  Eric Blake  <eblake@redhat.com>
3055
3056         warn-on-use: work with old autoconf
3057         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
3058         AS_VAR semantics of autoconf 2.60.
3059         Reported by Bruno Haible.
3060
3061         bootstrap: improve some comments
3062         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
3063         clarification comments.
3064
3065         gettimeofday: provide correct function
3066         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
3067         when replacement is declared, otherwise provide gettimeofday.
3068         Reported by Michael Goffioul.
3069
3070 2010-02-23  Jim Meyering  <meyering@redhat.com>
3071
3072         lib-ignore: relax license to "unlimited", not LGPLv2+
3073         * modules/lib-ignore (License): Relax to "unlimited".
3074
3075 2010-02-23  Jim Meyering  <meyering@redhat.com>
3076
3077         lib-ignore: relax license to LGPLv2+
3078         * modules/lib-ignore (License): Relax to LGPLv2+.
3079
3080 2010-02-22  Eric Blake  <eblake@redhat.com>
3081
3082         lseek: avoid bash 3.2 broken pipe bug
3083         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
3084         warning from bash 3.2.
3085         Reported by Ben Pfaff, with analysis from Bruno Haible.
3086
3087         bootstrap: support non-FSF copyright holder
3088         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
3089         bootstrap.conf override of COPYRIGHT_HOLDER.
3090         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
3091
3092         bootstrap: interoperate with gettext 0.14.1
3093         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
3094
3095         bootstrap: allow for alternate submodule location
3096         * build-aux/bootstrap (gnulib_path): New variable; use instead of
3097         hardcoding submodule location.
3098         (gnulib_mk): Allow direct use of Makefile.am.
3099
3100         bootstrap: use GNULIB_SRCDIR to reduce disk usage
3101         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
3102         rather than reconfiguring where the submodule points.
3103
3104         gettimeofday: restore support for platforms that lack function
3105         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
3106         replacement if function is missing.
3107         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
3108         * modules/sys_time (Makefile.am): Substitute it.
3109         * lib/sys_time.in.h (gettimeofday): Check it.
3110         Reported by Michael Goffioul.
3111
3112 2010-02-21  Bruno Haible  <bruno@clisp.org>
3113
3114         * lib/stdio.in.h (obstack_printf): Fix typo.
3115
3116 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
3117
3118         vc-list-files: use bzr ls's -R option
3119         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
3120         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
3121
3122 2010-02-21  Jim Meyering  <meyering@redhat.com>
3123
3124         init.sh: fix EXEEXT shims to work also for names like test-prog
3125         * tests/init.sh: Re-exec a better shell, when needed.
3126         If the current shell lacks support for posix $(...), an init.sh-using
3127         test will now try to find a shell that supports that.  If EXEEXT is
3128         nonempty, we also require support for hyphen-in-alias-name and shell
3129         substitutions like ${var#glob}.  Failure to find such a shell results
3130         in a skipped test.
3131
3132 2010-02-21  Bruno Haible  <bruno@clisp.org>
3133
3134         Really work around around "broken pipe" error message from bash 3.2.
3135         * gnulib-tool (func_reset_sigpipe): Remove function.
3136         (echo): In bash 3.2, define to a function that uses printf.
3137         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
3138
3139 2010-02-20  Bruno Haible  <bruno@clisp.org>
3140
3141         Restore support for automake 1.9.6 with autoconf 2.61.
3142         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
3143         Reported by James Youngman <jay@gnu.org>.
3144
3145 2010-02-20  Bruno Haible  <bruno@clisp.org>
3146
3147         Improve *printf warning condition.
3148         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
3149         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
3150         and the function is overridden due to SIGPIPE emulation.
3151
3152 2010-02-20  Bruno Haible  <bruno@clisp.org>
3153
3154         * lib/stdio.in.h: Tweak comments.
3155
3156 2010-02-19  Bruno Haible  <bruno@clisp.org>
3157
3158         Make it easier to find modules. New gnulib-tool option '--find'.
3159         * gnulib-tool: New option --find.
3160         (func_usage): Document it.
3161         (func_sanitize_modulelist): New function, extracted from
3162         func_all_modules.
3163         (func_all_modules): Invoke it.
3164         * doc/gnulib-tool.texi (Which modules?): New node.
3165
3166 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
3167
3168         * lib/sys_select.in.h: Provide select replacement even if
3169         sys/select.h exists on a system, for Interix.
3170
3171 2010-02-18  Jim Meyering  <meyering@redhat.com>
3172
3173         init.sh: don't use $(...) just yet
3174         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
3175         to accommodate e.g., Solaris' /bin/sh.
3176
3177 2010-02-17  Bruno Haible  <bruno@clisp.org>
3178
3179         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
3180         Reported by Ludovic Courtès <ludo@gnu.org>.
3181
3182 2010-02-16  Simon Josefsson  <simon@josefsson.org>
3183
3184         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
3185         linking with -lintl.
3186
3187 2010-02-17  Simon Josefsson  <simon@josefsson.org>
3188
3189         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
3190         if not provided by the system's netdb.h.  Reported by
3191         ludo@gnu.org (Ludovic Courtès).
3192
3193 2010-02-15  Jim Meyering  <meyering@redhat.com>
3194
3195         init.sh: improve portability and efficiency
3196         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
3197         "dummy" in a for loop.
3198         Use '!', not '^' to select the complement of a character set used
3199         in a "case" statement.
3200         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
3201         Suggestions from Eric Blake.
3202
3203         init.sh: automatically accommodate programs with the .exe suffix
3204         Automatically arrange for an invocation of "prog" to execute the
3205         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
3206         may use the simpler "prog", yet still work when built on a system
3207         that requires specifying the added suffix.
3208         Do this by constructing a function named "prog" that invokes
3209         "prog.exe" for each .exe file in selected directories.
3210         * tests/init.sh (find_exe_basenames_): New function.
3211         (create_exe_shim_functions_): New function.
3212         (path_prepend_): Use it.
3213
3214         maint.mk: mark syntax-check sc_*.m rules as .PHONY
3215         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
3216         "make -t syntax-check" doesn't create a ton of sc_*.m files.
3217
3218 2010-02-14  Jim Meyering  <meyering@redhat.com>
3219
3220         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
3221         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
3222         (sc_prohibit_hash_pjw_without_use): New rule.
3223
3224         maint.mk: allow the default upload destination dir to be overridden
3225         * top/maint.mk (upload_dest_dir_): Define with a default that
3226         preserves the status quo.
3227         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
3228         Reported by Peter Simons.
3229
3230         maint.mk: prohibit inclusion of "hash.h" without_use
3231         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
3232
3233 2010-02-10  Jim Meyering  <meyering@redhat.com>
3234
3235         maint.mk: prohibit inclusion of "ignore-value.h" without_use
3236         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
3237
3238 2010-02-09  Eric Blake  <ebb9@byu.net>
3239         and Bruno Haible  <bruno@clisp.org>
3240
3241         obstack-printf-posix: ensure declaration
3242         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
3243         extracted from gl_FUNC_OBSTACK_PRINTF.
3244         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
3245         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3246         Likewise.
3247         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
3248         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
3249         0.
3250
3251 2010-02-08  Bruno Haible  <bruno@clisp.org>
3252
3253         gnulib-tool: Fix typo in 2010-02-07 commit.
3254         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
3255         Reported by Eric Blake.
3256
3257 2010-02-07  Bruno Haible  <bruno@clisp.org>
3258
3259         gnulib-tool: Fix up caching patches.
3260         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
3261         option --no-cache. Use associative arrays when supported by the shell.
3262         (sed_comments): New variable.
3263         (modcache): Renamed from do_cache.
3264         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
3265         abbreviate unnecessarily.
3266         (have_associative): New variable.
3267         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
3268         way also for ksh and zsh.
3269         (func_init_sed_convert_to_cache_statements): New function, extracted
3270         from func_cache_lookup_module. Add support for associative arrays.
3271         Don't set the c_MODULE_cached variable here. Ignore all lines before
3272         the first field header. Remove only the final newline, not all trailing
3273         newlines. Support empty fields correctly. Limit the use of 'eval' to
3274         assignments.
3275         (func_get_description, func_get_status, func_get_notice,
3276         func_get_applicability, func_get_filelist, func_get_dependencies,
3277         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
3278         func_get_automake_snippet, func_get_include_directive,
3279         func_get_link_directive, func_get_license, func_get_maintainer):
3280         Update documentation. List the unoptimized code first. Add support for
3281         associative arrays. Limit the use of 'eval' to assignments.
3282         (func_get_applicability): Undo stylistic pessimisations.
3283         (func_get_automake_snippet, func_get_include_directive): Reduce code
3284         duplication.
3285         (func_modules_transitive_closure, func_modules_add_dummy,
3286         func_modules_notice, func_modules_to_filelist, func_add_file,
3287         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
3288         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
3289         func_create_testdir, func_create_megatestdir): Update documentation.
3290
3291 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3292
3293         * gnulib-tool (func_cache_lookup_module): Store the module name
3294         belonging to the cache variable; error out if two different
3295         module names map to the same cache variable name.
3296
3297 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3298
3299         gnulib-tool: Make caching optional.
3300         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
3301         Update matching short versions of --no-changelog.
3302         (func_usage): Update.
3303         (sed_extract_cache_prog): Renamed from ...
3304         (sed_extract_prog): ... this; revert to old extraction script.
3305         (func_get_description, func_get_status)
3306         (func_get_notice, func_get_applicability, func_get_filelist)
3307         (func_get_dependencies, func_get_autoconf_early_snippet)
3308         (func_get_autoconf_snippet, func_get_automake_snippet)
3309         (func_get_include_directive, func_get_link_directive)
3310         (func_get_license, func_get_maintainer): If $do_cache is false,
3311         use old, non-caching extraction scripts.
3312         Suggestion by Bruno Haible.
3313
3314 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3315
3316         gnulib-tool: cache module metainformation.
3317         * gnulib-tool (sed_extract_prog): Match newline before each
3318         header, and rewrite header to a shell variable suffix.
3319         (func_cache_var, func_cache_lookup_module): New functions,
3320         to turn a module name into a cache variable prefix, and to
3321         look up and cache module metainformation.
3322         (func_get_description, func_get_status)
3323         (func_get_notice, func_get_applicability, func_get_filelist)
3324         (func_get_dependencies, func_get_autoconf_early_snippet)
3325         (func_get_autoconf_snippet, func_get_automake_snippet)
3326         (func_get_include_directive, func_get_link_directive)
3327         (func_get_license, func_get_maintainer): Use
3328         func_cache_lookup_module.
3329
3330 2010-02-07  Bruno Haible  <bruno@clisp.org>
3331
3332         fnctl: Fix missing dependency.
3333         * modules/fcntl (Depends-on): Add getdtablesize.
3334         Reported by John W. Eaton <jwe@gnu.org>.
3335
3336 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
3337
3338         Argp: fix recognition of short alias options.
3339
3340         * lib/argp-parse.c (convert_options): Fix improper use of
3341         `|' between character values.
3342         * tests/test-argp.c (group1_option): New alias option
3343         --read (-r).
3344         (group1_parser): Special handling for 'r'.
3345         (test15): New test case.
3346         (test_fun): Add test15.
3347         * tests/test-argp-2.sh: Update expected --help and --usage
3348         outputs.
3349
3350 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
3351
3352         * tests/test-argp.c: Fix indentation.
3353
3354 2010-02-04  Eric Blake  <ebb9@byu.net>
3355
3356         gettimeofday: expose type of second argument
3357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
3358         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
3359         * tests/test-gettimeofday.c: Use it to silence warning.
3360         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
3361         the issue.
3362
3363 2010-02-03  Jim Meyering  <meyering@redhat.com>
3364
3365         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
3366         * lib/regcomp.c (TYPE_SIGNED): Define.
3367         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
3368
3369         regcomp.c: avoid a new -Wshadow warning
3370         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
3371
3372 2010-02-01  Jim Meyering  <meyering@redhat.com>
3373
3374         removing useless parentheses in cpp #define directives
3375         For motivation, see commit c0221df4, "define STREQ(a,b)
3376         consistently, removing useless parentheses"
3377         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
3378         * lib/mountlist.c (MNT_IGNORE): Likewise.
3379         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
3380
3381 2010-02-01  Eric Blake  <ebb9@byu.net>
3382
3383         sys_time: use link-warning
3384         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
3385         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
3386         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
3387         * modules/sys_time (Depends-on): Add warn-on-use.
3388         (Makefile.am): Always build replacement.
3389         (configure.ac): Update substitutions.
3390         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
3391         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
3392         bother with SYS_TIME_H.
3393         * modules/gettimeofday (configure.ac): Declare indicator.
3394         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
3395         in use.
3396
3397         closein-tests: silence compiler warning
3398         * tests/test-closein.c (main): Ignore fread result.
3399         * modules/closein-tests (Depends-on): Add ignore-value.
3400
3401         tests: silence warning about system return
3402         * tests/test-areadlink-with-size.c (main): Ignore system result.
3403         * tests/test-areadlink.c (main): Likewise.
3404         * tests/test-areadlinkat-with-size.c (main): Likewise.
3405         * tests/test-areadlinkat.c (main): Likewise.
3406         * tests/test-canonicalize-lgpl.c (main): Likewise.
3407         * tests/test-canonicalize.c (main): Likewise.
3408         * tests/test-chown.c (main): Likewise.
3409         * tests/test-fchownat.c (main): Likewise.
3410         * tests/test-fdutimensat.c (main): Likewise.
3411         * tests/test-fstatat.c (main): Likewise.
3412         * tests/test-futimens.c (main): Likewise.
3413         * tests/test-lchown.c (main): Likewise.
3414         * tests/test-link.c (main): Likewise.
3415         * tests/test-linkat.c (main): Likewise.
3416         * tests/test-lstat.c (main): Likewise.
3417         * tests/test-mkdir.c (main): Likewise.
3418         * tests/test-mkdirat.c (main): Likewise.
3419         * tests/test-mkfifo.c (main): Likewise.
3420         * tests/test-mkfifoat.c (main): Likewise.
3421         * tests/test-mknod.c (main): Likewise.
3422         * tests/test-readlink.c (main): Likewise.
3423         * tests/test-remove.c (main): Likewise.
3424         * tests/test-rename.c (main): Likewise.
3425         * tests/test-renameat.c (main): Likewise.
3426         * tests/test-rmdir.c (main): Likewise.
3427         * tests/test-symlink.c (main): Likewise.
3428         * tests/test-symlinkat.c (main): Likewise.
3429         * tests/test-unlink.c (main): Likewise.
3430         * tests/test-unlinkat.c (main): Likewise.
3431         * tests/test-utimens.c (main): Likewise.
3432         * tests/test-utimensat.c (main): Likewise.
3433         * modules/areadlink-tests (Depends-on): Add ignore-value.
3434         * modules/areadlink-with-size-tests (Depends-on): Likewise.
3435         * modules/areadlinkat-tests (Depends-on): Likewise.
3436         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
3437         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3438         * modules/canonicalize-tests (Depends-on): Likewise.
3439         * modules/chown-tests (Depends-on): Likewise.
3440         * modules/fdutimensat-tests (Depends-on): Likewise.
3441         * modules/futimens-tests (Depends-on): Likewise.
3442         * modules/lchown-tests (Depends-on): Likewise.
3443         * modules/link-tests (Depends-on): Likewise.
3444         * modules/linkat-tests (Depends-on): Likewise.
3445         * modules/lstat-tests (Depends-on): Likewise.
3446         * modules/mkdir-tests (Depends-on): Likewise.
3447         * modules/mkfifo-tests (Depends-on): Likewise.
3448         * modules/mkfifoat-tests (Depends-on): Likewise.
3449         * modules/mknod-tests (Depends-on): Likewise.
3450         * modules/openat-tests (Depends-on): Likewise.
3451         * modules/readlink-tests (Depends-on): Likewise.
3452         * modules/remove-tests (Depends-on): Likewise.
3453         * modules/rename-tests (Depends-on): Likewise.
3454         * modules/renameat-tests (Depends-on): Likewise.
3455         * modules/rmdir-tests (Depends-on): Likewise.
3456         * modules/symlink-tests (Depends-on): Likewise.
3457         * modules/symlinkat-tests (Depends-on): Likewise.
3458         * modules/unlink-tests (Depends-on): Likewise.
3459         * modules/utimens-tests (Depends-on): Likewise.
3460         * modules/utimensat-tests (Depends-on): Likewise.
3461
3462 2010-01-31  Bruno Haible  <bruno@clisp.org>
3463
3464         Perform the same test for many <math.h> functions.
3465         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
3466         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
3467         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
3468         of gl_MATHFUNC.
3469         * modules/acos (configure.ac): Likewise.
3470         * modules/asin (configure.ac): Likewise.
3471         * modules/atan (configure.ac): Likewise.
3472         * modules/atan2 (configure.ac): Likewise.
3473         * modules/cbrt (configure.ac): Likewise.
3474         * modules/copysign (configure.ac): Likewise.
3475         * modules/cos (configure.ac): Likewise.
3476         * modules/cosh (configure.ac): Likewise.
3477         * modules/erf (configure.ac): Likewise.
3478         * modules/erfc (configure.ac): Likewise.
3479         * modules/exp (configure.ac): Likewise.
3480         * modules/fmod (configure.ac): Likewise.
3481         * modules/hypot (configure.ac): Likewise.
3482         * modules/j0 (configure.ac): Likewise.
3483         * modules/j1 (configure.ac): Likewise.
3484         * modules/jn (configure.ac): Likewise.
3485         * modules/lgamma (configure.ac): Likewise.
3486         * modules/log (configure.ac): Likewise.
3487         * modules/log10 (configure.ac): Likewise.
3488         * modules/log1p (configure.ac): Likewise.
3489         * modules/pow (configure.ac): Likewise.
3490         * modules/remainder (configure.ac): Likewise.
3491         * modules/sin (configure.ac): Likewise.
3492         * modules/sinh (configure.ac): Likewise.
3493         * modules/tan (configure.ac): Likewise.
3494         * modules/tanh (configure.ac): Likewise.
3495         * modules/y0 (configure.ac): Likewise.
3496         * modules/y1 (configure.ac): Likewise.
3497         * modules/yn (configure.ac): Likewise.
3498         Suggested by Paolo Bonzini.
3499
3500 2010-01-31  Bruno Haible  <bruno@clisp.org>
3501
3502         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
3503
3504 2010-01-31  Bruno Haible  <bruno@clisp.org>
3505
3506         Work around getdelim() bug on FreeBSD 8.0.
3507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
3508         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
3509         not work.
3510         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
3511         is 1.
3512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
3513         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
3514         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
3515         a non-zero size.
3516         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
3517
3518 2010-01-31  Bruno Haible  <bruno@clisp.org>
3519
3520         Work around getline() bug on FreeBSD 8.0.
3521         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
3522         and a non-zero size.
3523         * tests/test-getline.c (main): Likewise.
3524         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
3525         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
3526
3527 2010-01-28  Eric Blake  <ebb9@byu.net>
3528
3529         regex: fix build failure
3530         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
3531         platforms.
3532
3533 2010-01-28  Jim Meyering  <meyering@redhat.com>
3534
3535         regex: do not ignore memory allocation failure
3536         * lib/regex_internal.c (create_cd_newstate): Detect
3537         re_node_set_init_copy failure.   Extracted from glibc commit
3538         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3539
3540         regex: sync more white-space changes from libc
3541         * lib/regex_internal.c: White-space only changes.
3542         * lib/regexec.c: Likewise.
3543
3544         regex: add many uses of __attribute_warn_unused_result__
3545         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
3546         * lib/regexec.c: Likewise.
3547         Extracted from a messy glibc commit.
3548
3549         regcomp.c: spelling and merge-artifact from glibc
3550         * lib/regcomp.c: Merge remainder of glibc's
3551         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3552
3553         regcomp.c: sync white-space changes from glibc
3554         * lib/regcomp.c: Merge to accommodate white space
3555         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3556
3557         regcomp.c: do not ignore internal return values
3558         * lib/regcomp.c: Do not ignore internal return values.
3559         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
3560         but without its white-space changes and spelling fixes.
3561
3562         regex_internal.h: define __attribute_warn_unused_result__
3563         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
3564
3565         maint: add a syntax-check rule to check for vulnerable Makefile.in
3566         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
3567
3568 2010-01-27  Jim Meyering  <meyering@redhat.com>
3569
3570         ncftpput-ftp: clean up spaces
3571         * build-aux/ncftpput-ftp: Make Copyright line consistent.
3572         Remove trailing blanks.
3573
3574 2010-01-27  Simon Josefsson  <simon@josefsson.org>
3575
3576         * build-aux/git-version-gen: Fix copyright statement.
3577         * build-aux/gnupload: Likewise.
3578         * tests/test-arcfour.c: Likewise.
3579         * tests/test-arctwo.c: Likewise.
3580         * tests/test-count-one-bits.c: Likewise.
3581         * tests/test-crc.c: Likewise.
3582         * tests/test-des.c: Likewise.
3583         * tests/test-gc-arcfour.c: Likewise.
3584         * tests/test-gc-arctwo.c: Likewise.
3585         * tests/test-gc-des.c: Likewise.
3586         * tests/test-gc-hmac-md5.c: Likewise.
3587         * tests/test-gc-hmac-sha1.c: Likewise.
3588         * tests/test-gc-md2.c: Likewise.
3589         * tests/test-gc-md4.c: Likewise.
3590         * tests/test-gc-md5.c: Likewise.
3591         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3592         * tests/test-gc-rijndael.c: Likewise.
3593         * tests/test-gc-sha1.c: Likewise.
3594         * tests/test-gc.c: Likewise.
3595         * tests/test-gethostname.c: Likewise.
3596         * tests/test-gettimeofday.c: Likewise.
3597         * tests/test-hash.c: Likewise.
3598         * tests/test-hmac-md5.c: Likewise.
3599         * tests/test-hmac-sha1.c: Likewise.
3600         * tests/test-md2.c: Likewise.
3601         * tests/test-md4.c: Likewise.
3602         * tests/test-md5.c: Likewise.
3603         * tests/test-memchr.c: Likewise.
3604         * tests/test-memchr2.c: Likewise.
3605         * tests/test-memcmp.c: Likewise.
3606         * tests/test-memmem.c: Likewise.
3607         * tests/test-memrchr.c: Likewise.
3608         * tests/test-rawmemchr.c: Likewise.
3609         * tests/test-read-file.c: Likewise.
3610         * tests/test-rijndael.c: Likewise.
3611         * tests/test-sockets.c: Likewise.
3612         * tests/test-strchrnul.c: Likewise.
3613         * tests/test-strstr.c: Likewise.
3614         * tests/test-strtod.c: Likewise.
3615         * build-aux/ncftpput-ftp: Likewise.
3616
3617 2010-01-26  Eric Blake  <ebb9@byu.net>
3618
3619         ignore-value: update recommended header name
3620         * modules/ignore-value (Include): Only use <> for headers that
3621         exist in glibc.
3622
3623 2010-01-26  Jim Meyering  <meyering@redhat.com>
3624
3625         test-userspec.c: avoid compiler warnings
3626         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3627         and "initialization discards qualifiers..." warnings.
3628         Put the first "uid" in its own scope, and make char* members "const".
3629
3630 2010-01-25  Bruno Haible  <bruno@clisp.org>
3631
3632         gnulib-tool: Make warning diagnostics consistent.
3633         * gnulib-tool (func_warning): New function.
3634         Use it everywhere where gnulib-tool produces output to stderr and it is
3635         not a fatal error.
3636
3637 2010-01-25  Bruno Haible  <bruno@clisp.org>
3638
3639         Fix test dependencies.
3640         * modules/xstrtol-tests (Depends-on): Add inttypes.
3641         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3642
3643 2010-01-25 Pádraig Brady <P@draigBrady.com>
3644
3645         syntax-check: detect incorrect boolean macro values in config.h
3646         * modules/maintainer-makefile (configure.ac): Parameterize the location
3647         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3648         The logic is from Eric Blake and the location indicated by Jim Meyering.
3649         Note the more natural CONFIG_HEADER name is prohibited by automake
3650         for backwards compatibility reasons.
3651         * top/maint.mk (sc_Wundef_boolean): New rule.
3652
3653 2010-01-25  Jim Meyering  <meyering@redhat.com>
3654
3655         bootstrap: detect MacOS 10.6's shasum, too
3656         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3657         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3658
3659 2010-01-23  Jim Meyering  <meyering@redhat.com>
3660
3661         xstrtoll: new module
3662         * modules/xstrtoll: New file.
3663         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3664         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3665         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3666         ./configure fails if you use this module and lack "long long".
3667         * modules/xstrtoll-tests: New module.
3668         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3669         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3670         new init.sh-based test framework.
3671
3672 2010-01-24  Bruno Haible  <bruno@clisp.org>
3673
3674         Tests for module 'yn'.
3675         * modules/yn-tests: New file.
3676         * tests/test-yn.c: New file.
3677
3678         Tests for module 'y1'.
3679         * modules/y1-tests: New file.
3680         * tests/test-y1.c: New file.
3681
3682         Tests for module 'y0'.
3683         * modules/y0-tests: New file.
3684         * tests/test-y0.c: New file.
3685
3686         Tests for module 'tanh'.
3687         * modules/tanh-tests: New file.
3688         * tests/test-tanh.c: New file.
3689
3690         Tests for module 'tan'.
3691         * modules/tan-tests: New file.
3692         * tests/test-tan.c: New file.
3693
3694         Tests for module 'sqrt'.
3695         * modules/sqrt-tests: New file.
3696         * tests/test-sqrt.c: New file.
3697
3698         Tests for module 'sinh'.
3699         * modules/sinh-tests: New file.
3700         * tests/test-sinh.c: New file.
3701
3702         Tests for module 'sin'.
3703         * modules/sin-tests: New file.
3704         * tests/test-sin.c: New file.
3705
3706         Tests for module 'rint'.
3707         * modules/rint-tests: New file.
3708         * tests/test-rint.c: New file.
3709
3710         Tests for module 'remainder'.
3711         * modules/remainder-tests: New file.
3712         * tests/test-remainder.c: New file.
3713
3714         Tests for module 'pow'.
3715         * modules/pow-tests: New file.
3716         * tests/test-pow.c: New file.
3717
3718         Tests for module 'nextafter'.
3719         * modules/nextafter-tests: New file.
3720         * tests/test-nextafter.c: New file.
3721
3722         Tests for module 'modf'.
3723         * modules/modf-tests: New file.
3724         * tests/test-modf.c: New file.
3725
3726         Tests for module 'logb'.
3727         * modules/logb-tests: New file.
3728         * tests/test-logb.c: New file.
3729
3730         Tests for module 'log1p'.
3731         * modules/log1p-tests: New file.
3732         * tests/test-log1p.c: New file.
3733
3734         Tests for module 'log10'.
3735         * modules/log10-tests: New file.
3736         * tests/test-log10.c: New file.
3737
3738         Tests for module 'log'.
3739         * modules/log-tests: New file.
3740         * tests/test-log.c: New file.
3741
3742         Tests for module 'lgamma'.
3743         * modules/lgamma-tests: New file.
3744         * tests/test-lgamma.c: New file.
3745
3746         Tests for module 'ldexp'.
3747         * modules/ldexp-tests: New file.
3748         * tests/test-ldexp.c: New file.
3749
3750         Tests for module 'jn'.
3751         * modules/jn-tests: New file.
3752         * tests/test-jn.c: New file.
3753
3754         Tests for module 'j1'.
3755         * modules/j1-tests: New file.
3756         * tests/test-j1.c: New file.
3757
3758         Tests for module 'j0'.
3759         * modules/j0-tests: New file.
3760         * tests/test-j0.c: New file.
3761
3762         Tests for module 'hypot'.
3763         * modules/hypot-tests: New file.
3764         * tests/test-hypot.c: New file.
3765
3766         Tests for module 'fmod'.
3767         * modules/fmod-tests: New file.
3768         * tests/test-fmod.c: New file.
3769
3770         Tests for module 'fabs'.
3771         * modules/fabs-tests: New file.
3772         * tests/test-fabs.c: New file.
3773
3774         Tests for module 'exp'.
3775         * modules/exp-tests: New file.
3776         * tests/test-exp.c: New file.
3777
3778         Tests for module 'erfc'.
3779         * modules/erfc-tests: New file.
3780         * tests/test-erfc.c: New file.
3781
3782         Tests for module 'erf'.
3783         * modules/erf-tests: New file.
3784         * tests/test-erf.c: New file.
3785
3786         Tests for module 'cosh'.
3787         * modules/cosh-tests: New file.
3788         * tests/test-cosh.c: New file.
3789
3790         Tests for module 'cos'.
3791         * modules/cos-tests: New file.
3792         * tests/test-cos.c: New file.
3793
3794         Tests for module 'copysign'.
3795         * modules/copysign-tests: New file.
3796         * tests/test-copysign.c: New file.
3797
3798         Tests for module 'cbrt'.
3799         * modules/cbrt-tests: New file.
3800         * tests/test-cbrt.c: New file.
3801
3802         Tests for module 'atan2'.
3803         * modules/atan2-tests: New file.
3804         * tests/test-atan2.c: New file.
3805
3806         Tests for module 'atan'.
3807         * modules/atan-tests: New file.
3808         * tests/test-atan.c: New file.
3809
3810         Tests for module 'asin'.
3811         * modules/asin-tests: New file.
3812         * tests/test-asin.c: New file.
3813
3814         Tests for module 'acos'.
3815         * modules/acos-tests: New file.
3816         * tests/test-acos.c: New file.
3817
3818 2010-01-24  Bruno Haible  <bruno@clisp.org>
3819
3820         Fix tests for common <math.h> functions.
3821         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3822         code snippet that references the function pointer, rather than merely
3823         calling the function. Substitute the FUNC_LIBM variable.
3824         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3825         * modules/acos (configure.ac): Likewise.
3826         * modules/asin (configure.ac): Likewise.
3827         * modules/atan (configure.ac): Likewise.
3828         * modules/atan2 (configure.ac): Likewise.
3829         * modules/cbrt (configure.ac): Likewise.
3830         * modules/copysign (configure.ac): Likewise.
3831         * modules/cos (configure.ac): Likewise.
3832         * modules/cosh (configure.ac): Likewise.
3833         * modules/erf (configure.ac): Likewise.
3834         * modules/erfc (configure.ac): Likewise.
3835         * modules/exp (configure.ac): Likewise.
3836         * modules/fabs (configure.ac): Likewise.
3837         * modules/fmod (configure.ac): Likewise.
3838         * modules/hypot (configure.ac): Likewise.
3839         * modules/j0 (configure.ac): Likewise.
3840         * modules/j1 (configure.ac): Likewise.
3841         * modules/jn (configure.ac): Likewise.
3842         * modules/ldexp (configure.ac): Likewise.
3843         * modules/lgamma (configure.ac): Likewise.
3844         * modules/log (configure.ac): Likewise.
3845         * modules/log10 (configure.ac): Likewise.
3846         * modules/log1p (configure.ac): Likewise.
3847         * modules/logb (configure.ac): Likewise.
3848         * modules/modf (configure.ac): Likewise.
3849         * modules/nextafter (configure.ac): Likewise.
3850         * modules/pow (configure.ac): Likewise.
3851         * modules/remainder (configure.ac): Likewise.
3852         * modules/rint (configure.ac): Likewise.
3853         * modules/sin (configure.ac): Likewise.
3854         * modules/sinh (configure.ac): Likewise.
3855         * modules/tan (configure.ac): Likewise.
3856         * modules/tanh (configure.ac): Likewise.
3857         * modules/y0 (configure.ac): Likewise.
3858         * modules/y1 (configure.ac): Likewise.
3859         * modules/yn (configure.ac): Likewise.
3860
3861 2010-01-24  Bruno Haible  <bruno@clisp.org>
3862
3863         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3864         * tests/test-acosl.c (x): New variable.
3865         (main): Store argument in x and fetch it from x.
3866         * tests/test-asinl.c (x): New variable.
3867         (main): Store argument in x and fetch it from x.
3868         * tests/test-atanl.c (x): New variable.
3869         (main): Store argument in x and fetch it from x.
3870         * tests/test-cosl.c (x): New variable.
3871         (main): Store argument in x and fetch it from x.
3872         * tests/test-expl.c (x): New variable.
3873         (main): Store argument in x and fetch it from x.
3874         * tests/test-logl.c (x): New variable.
3875         (main): Store argument in x and fetch it from x.
3876         * tests/test-sinl.c (x): New variable.
3877         (main): Store argument in x and fetch it from x.
3878         * tests/test-sqrtl.c (x): New variable.
3879         (main): Store argument in x and fetch it from x.
3880         * tests/test-tanl.c (x): New variable.
3881         (main): Store argument in x and fetch it from x.
3882
3883 2010-01-24  Bruno Haible  <bruno@clisp.org>
3884
3885         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3886         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3887         assignments to the initial TESTS_ENVIRONMENT.
3888         * doc/gnulib.texi (Unit test modules): Document it.
3889         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3890         TESTS_ENVIRONMENT.
3891         * modules/btowc-tests (Makefile.am): Likewise.
3892         * modules/c-stack-tests (Makefile.am): Likewise.
3893         * modules/c-strcase-tests (Makefile.am): Likewise.
3894         * modules/copy-file-tests (Makefile.am): Likewise.
3895         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3896         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3897         * modules/mbrtowc-tests (Makefile.am): Likewise.
3898         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3899         * modules/mbscasestr-tests (Makefile.am): Likewise.
3900         * modules/mbschr-tests (Makefile.am): Likewise.
3901         * modules/mbscspn-tests (Makefile.am): Likewise.
3902         * modules/mbsinit-tests (Makefile.am): Likewise.
3903         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3904         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3905         * modules/mbspbrk-tests (Makefile.am): Likewise.
3906         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3907         * modules/mbsrchr-tests (Makefile.am): Likewise.
3908         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3909         * modules/mbsspn-tests (Makefile.am): Likewise.
3910         * modules/mbsstr-tests (Makefile.am): Likewise.
3911         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3912         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3913         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3914         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3915         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3916         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3917         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3918         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3919         * modules/wcrtomb-tests (Makefile.am): Likewise.
3920         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3921         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3922         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3923         assignments from TESTS_ENVIRONMENT.
3924         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3925         augmentation.
3926         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3927         * modules/atexit-tests (Makefile.am): Likewise.
3928         * modules/binary-io-tests (Makefile.am): Likewise.
3929         * modules/closein-tests (Makefile.am): Likewise.
3930         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3931         * modules/exclude-tests (Makefile.am): Likewise.
3932         * modules/fflush-tests (Makefile.am): Likewise.
3933         * modules/fpending-tests (Makefile.am): Likewise.
3934         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3935         * modules/freadahead-tests (Makefile.am): Likewise.
3936         * modules/freadptr-tests (Makefile.am): Likewise.
3937         * modules/freadseek-tests (Makefile.am): Likewise.
3938         * modules/fseek-tests (Makefile.am): Likewise.
3939         * modules/fseeko-tests (Makefile.am): Likewise.
3940         * modules/ftell-tests (Makefile.am): Likewise.
3941         * modules/ftello-tests (Makefile.am): Likewise.
3942         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3943         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3944         * modules/lseek-tests (Makefile.am): Likewise.
3945         * modules/parse-duration-tests (Makefile.am): Likewise.
3946         * modules/perror-tests (Makefile.am): Likewise.
3947         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3948         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3949         * modules/pipe-tests (Makefile.am): Likewise.
3950         * modules/pread-tests (Makefile.am): Likewise.
3951         * modules/printf-posix-tests (Makefile.am): Likewise.
3952         * modules/select-tests (Makefile.am): Likewise.
3953         * modules/sigpipe-tests (Makefile.am): Likewise.
3954         * modules/tsearch-tests (Makefile.am): Likewise.
3955         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3956         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3957         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3958         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3959         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3960         * modules/version-etc-tests (Makefile.am): Likewise.
3961         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3962         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3963         * modules/xalloc-die-tests (Makefile.am): Likewise.
3964         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3965         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3966         * modules/xstrtol-tests (Makefile.am): Likewise.
3967         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3968         * modules/yesno-tests (Makefile.am): Likewise.
3969         Suggested by Jim Meyering.
3970
3971 2010-01-24  Bruno Haible  <bruno@clisp.org>
3972
3973         More documentation.
3974         * doc/gnulib.texi (Writing modules): New chapter.
3975         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3976         the new chapter.
3977
3978 2010-01-24  Jim Meyering  <meyering@redhat.com>
3979
3980         maint.mk: do not prepend "./" after filtering
3981         * top/maint.mk (_prepend_srcdir_prefix): New variable
3982         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3983         "./" when $(srcdir) is ".".
3984
3985         define STREQ(a,b) consistently, removing useless parentheses
3986         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3987         since the only risk is that "a" or "b" contains an unparenthesized
3988         comma, but if either did that, STREQ would have 3 or more arguments.
3989         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3990         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3991         * lib/hash-triple.c (STREQ): Likewise.
3992         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3993         * lib/getugroups.c (STREQ): Likewise.
3994
3995 2010-01-23  Jim Meyering  <meyering@redhat.com>
3996
3997         maint.mk: fix syntax-check in a non-srcdir build directory
3998         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3999         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
4000
4001 2010-01-22  Jim Meyering  <meyering@redhat.com>
4002
4003         userspec: add unit tests
4004         * tests/test-userspec.c: New file.
4005         * modules/userspec-tests: Likewise.
4006
4007 2010-01-21  Jim Meyering  <meyering@redhat.com>
4008
4009         maint.mk: handle source file names containing "." robustly
4010         * top/maint.mk (_dot_escaped_srcdir): Define.
4011         (VC_LIST): Use it in LHS of sed substitution.
4012
4013 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
4014
4015         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
4016         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
4017         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
4018         from a non-srcdir build.
4019
4020 2010-01-20  Eric Blake  <ebb9@byu.net>
4021
4022         warn-on-use: use instead of link-warning
4023         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
4024         * modules/unistd (Depends-on, Makefile.am): Likewise.
4025         * modules/arpa_inet (Depends-on): Replace link-warning with
4026         warn-on-use.
4027         (Makefile.am): Update rules accordingly.
4028         * modules/ctype (Depends-on, Makefile.am): Likewise.
4029         * modules/dirent (Depends-on, Makefile.am): Likewise.
4030         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
4031         * modules/inttypes (Depends-on, Makefile.am): Likewise.
4032         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4033         * modules/locale (Depends-on, Makefile.am): Likewise.
4034         * modules/math (Depends-on, Makefile.am): Likewise.
4035         * modules/search (Depends-on, Makefile.am): Likewise.
4036         * modules/signal (Depends-on, Makefile.am): Likewise.
4037         * modules/spawn (Depends-on, Makefile.am): Likewise.
4038         * modules/stdlib (Depends-on, Makefile.am): Likewise.
4039         * modules/string (Depends-on, Makefile.am): Likewise.
4040         * modules/strings (Depends-on, Makefile.am): Likewise.
4041         * modules/sys_file (Depends-on, Makefile.am): Likewise.
4042         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
4043         * modules/sys_select (Depends-on, Makefile.am): Likewise.
4044         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
4045         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
4046         * modules/sys_times (Depends-on, Makefile.am): Likewise.
4047         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4048         * modules/wchar (Depends-on, Makefile.am): Likewise.
4049         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
4050         should be poisoned.
4051         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
4052         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
4053         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
4054         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4055         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4056         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
4057         * m4/math_h.m4 (gl_MATH_H): Likewise.
4058         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4059         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4060         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4061         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4062         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4063         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
4064         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4065         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
4066         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4067         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4068         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4070         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4071         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4072         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4073         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4074         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
4075         GL_LINK_WARNING.
4076         * lib/ctype.in.h: Likewise.
4077         * lib/dirent.in.h: Likewise.
4078         * lib/fcntl.in.h: Likewise.
4079         * lib/inttypes.in.h: Likewise.
4080         * lib/langinfo.in.h: Likewise.
4081         * lib/locale.in.h: Likewise.
4082         * lib/math.in.h: Likewise.
4083         * lib/search.in.h: Likewise.
4084         * lib/signal.in.h: Likewise.
4085         * lib/spawn.in.h: Likewise.
4086         * lib/stdio.in.h: Likewise.
4087         * lib/stdlib.in.h: Likewise.
4088         * lib/string.in.h: Likewise.
4089         * lib/strings.in.h: Likewise.
4090         * lib/sys_file.in.h: Likewise.
4091         * lib/sys_ioctl.in.h: Likewise.
4092         * lib/sys_select.in.h: Likewise.
4093         * lib/sys_socket.in.h: Likewise.
4094         * lib/sys_stat.in.h: Likewise.
4095         * lib/sys_times.in.h: Likewise.
4096         * lib/sys_utsname.in.h: Likewise.
4097         * lib/unistd.in.h: Likewise.
4098         * lib/wchar.in.h: Likewise.
4099
4100 2010-01-20  Bruno Haible  <bruno@clisp.org>
4101
4102         Avoid duplicate -lm.
4103         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
4104         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
4105         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
4106         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
4107         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
4108         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
4109         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
4110         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
4111         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
4112         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
4113         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
4114         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4115         Reported by Paolo Bonzini.
4116
4117 2010-01-19  Bruno Haible  <bruno@clisp.org>
4118
4119         langinfo, nl_langinfo: Relicense under LGPLv2+.
4120         * modules/langinfo (License): Change to LGPLv2+.
4121         * modules/nl_langinfo (License): Likewise.
4122         Patch by David Lutterkort <lutter@redhat.com>.
4123
4124 2010-01-19  Bruno Haible  <bruno@clisp.org>
4125
4126         Avoid compilation error with cc on OSF/1 5.1.
4127         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
4128         statement, not before.
4129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4130
4131 2010-01-18  Bruno Haible  <bruno@clisp.org>
4132
4133         Avoid a link error due to the __printf__ symbol.
4134         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
4135         and 2.6.x.
4136         (__format__, __printf__): Remove definitions.
4137         * lib/argp-fmtstream.h: Likewise.
4138         * lib/argp.h: Likewise.
4139         * lib/error.h: Likewise.
4140         * lib/vasnprintf.h: Likewise.
4141         * lib/xprintf.h: Likewise.
4142         * lib/xvasprintf.h: Likewise.
4143         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4144
4145 2010-01-18  Bruno Haible  <bruno@clisp.org>
4146
4147         Tests for module 'tanl'.
4148         * modules/tanl-tests: New file.
4149         * tests/test-tanl.c: New file.
4150
4151         Tests for module 'sqrtl'.
4152         * modules/sqrtl-tests: New file.
4153         * tests/test-sqrtl.c: New file.
4154
4155         Tests for module 'sinl'.
4156         * modules/sinl-tests: New file.
4157         * tests/test-sinl.c: New file.
4158
4159         Tests for module 'logl'.
4160         * modules/logl-tests: New file.
4161         * tests/test-logl.c: New file.
4162
4163         Tests for module 'expl'.
4164         * modules/expl-tests: New file.
4165         * tests/test-expl.c: New file.
4166
4167         Tests for module 'cosl'.
4168         * modules/cosl-tests: New file.
4169         * tests/test-cosl.c: New file.
4170
4171         Tests for module 'atanl'.
4172         * modules/atanl-tests: New file.
4173         * tests/test-atanl.c: New file.
4174
4175         Tests for module 'asinl'.
4176         * modules/asinl-tests: New file.
4177         * tests/test-asinl.c: New file.
4178
4179         Tests for module 'acosl'.
4180         * modules/acosl-tests: New file.
4181         * tests/test-acosl.c: New file.
4182
4183         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
4184         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4185         tanl): Use the standard gnulib idiom.
4186         * lib/cosl.c: Don't include trigl.c and sincosl.c.
4187         * lib/sinl.c: Likewise.
4188         * lib/tanl.c: Don't include trigl.c.
4189         (kernel_tanl): Make static.
4190         * lib/sincosl.c: Include trigl.h first.
4191         * lib/trigl.c: Likewise.
4192         * m4/acosl.m4: New file.
4193         * m4/asinl.m4: New file.
4194         * m4/atanl.m4: New file.
4195         * m4/cosl.m4: New file.
4196         * m4/expl.m4: New file.
4197         * m4/logl.m4: New file.
4198         * m4/sinl.m4: New file.
4199         * m4/sqrtl.m4: New file.
4200         * m4/tanl.m4: New file.
4201         * m4/mathl.m4: Remove file.
4202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
4203         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
4204         Don't initialize GNULIB_MATHL.
4205         * modules/acosl: New file.
4206         * modules/asinl: New file.
4207         * modules/atanl: New file.
4208         * modules/cosl: New file.
4209         * modules/expl: New file.
4210         * modules/logl: New file.
4211         * modules/sinl: New file.
4212         * modules/sqrtl: New file.
4213         * modules/tanl: New file.
4214         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
4215         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
4216         substitute GNULIB_MATHL.
4217         * modules/mathl: Rewritten.
4218         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
4219         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
4220         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
4221         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
4222         * doc/posix-functions/expl.texi: Mention the 'expl' module.
4223         * doc/posix-functions/logl.texi: Mention the 'logl' module.
4224         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
4225         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
4226         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
4227
4228 2010-01-18  Bruno Haible  <bruno@clisp.org>
4229
4230         sqrt: Make gl_FUNC_SQRT requirable.
4231         * m4/sqrt.m4: New file.
4232         * modules/sqrt (Files): Add it.
4233         (configure.ac): Invoke gl_FUNC_SQRT.
4234
4235 2010-01-18  Bruno Haible  <bruno@clisp.org>
4236
4237         New modules for common <math.h> functions.
4238         * m4/mathfunc.m4: New file.
4239         * modules/acos: New file.
4240         * modules/asin: New file.
4241         * modules/atan: New file.
4242         * modules/atan2: New file.
4243         * modules/cbrt: New file.
4244         * modules/copysign: New file.
4245         * modules/cos: New file.
4246         * modules/cosh: New file.
4247         * modules/erf: New file.
4248         * modules/erfc: New file.
4249         * modules/exp: New file.
4250         * modules/fabs: New file.
4251         * modules/fmod: New file.
4252         * modules/hypot: New file.
4253         * modules/j0: New file.
4254         * modules/j1: New file.
4255         * modules/jn: New file.
4256         * modules/ldexp: New file.
4257         * modules/lgamma: New file.
4258         * modules/log: New file.
4259         * modules/log10: New file.
4260         * modules/log1p: New file.
4261         * modules/logb: New file.
4262         * modules/modf: New file.
4263         * modules/nextafter: New file.
4264         * modules/pow: New file.
4265         * modules/remainder: New file.
4266         * modules/rint: New file.
4267         * modules/sin: New file.
4268         * modules/sinh: New file.
4269         * modules/sqrt: New file.
4270         * modules/tan: New file.
4271         * modules/tanh: New file.
4272         * modules/y0: New file.
4273         * modules/y1: New file.
4274         * modules/yn: New file.
4275         * doc/posix-functions/acos.texi: Mention the 'acos' module.
4276         * doc/posix-functions/asin.texi: Mention the 'asin' module.
4277         * doc/posix-functions/atan.texi: Mention the 'atan' module.
4278         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
4279         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
4280         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
4281         * doc/posix-functions/cos.texi: Mention the 'cos' module.
4282         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
4283         * doc/posix-functions/erf.texi: Mention the 'erf' module.
4284         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
4285         * doc/posix-functions/exp.texi: Mention the 'exp' module.
4286         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
4287         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
4288         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
4289         * doc/posix-functions/j0.texi: Mention the 'j0' module.
4290         * doc/posix-functions/j1.texi: Mention the 'j1' module.
4291         * doc/posix-functions/jn.texi: Mention the 'jn' module.
4292         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
4293         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
4294         * doc/posix-functions/log.texi: Mention the 'log' module.
4295         * doc/posix-functions/log10.texi: Mention the 'log10' module.
4296         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
4297         * doc/posix-functions/logb.texi: Mention the 'logb' module.
4298         * doc/posix-functions/modf.texi: Mention the 'modf' module.
4299         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
4300         * doc/posix-functions/pow.texi: Mention the 'pow' module.
4301         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
4302         * doc/posix-functions/rint.texi: Mention the 'rint' module.
4303         * doc/posix-functions/sin.texi: Mention the 'sin' module.
4304         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
4305         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
4306         * doc/posix-functions/tan.texi: Mention the 'tan' module.
4307         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
4308         * doc/posix-functions/y0.texi: Mention the 'y0' module.
4309         * doc/posix-functions/y1.texi: Mention the 'y1' module.
4310         * doc/posix-functions/yn.texi: Mention the 'yn' module.
4311
4312 2010-01-18  Jim Meyering  <meyering@redhat.com>
4313
4314         ignore-value: relax license to LGPLv2+
4315         * modules/ignore-value (License): Relax to LGPLv2+.
4316
4317         getdate: don't leak when TZ contains two or more '"'s
4318         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
4319         double quote in TZ after the first one.
4320
4321         readtokens: do not leak internal token_lengths buffer
4322         * lib/readtokens.c (readtokens): Free the local, lengths,
4323         when the supplied "token_lengths" parameter is NULL.
4324
4325 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4326
4327         Fix a couple of missing LIBTHREAD link failures on AIX.
4328         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
4329         $(LIBTHREAD).
4330         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
4331
4332         Link test-poll against INET_PTON_LIB.
4333         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
4334         for inet_pton on Solaris 10.
4335
4336 2010-01-17  Bruno Haible  <bruno@clisp.org>
4337
4338         unistdio/*-sprintf: Fix typo in module description.
4339         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
4340         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
4341         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
4342         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
4343         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
4344         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
4345         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
4346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4347
4348 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4349
4350         gnulib-tool: fix filelist for AIX, HP-UX ksh.
4351         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
4352         variables in shell case patterns, for AIX and HP-UX ksh.
4353
4354         Split large sed scripts, for HP-UX sed.
4355         * modules/stdio: Split sed scripts around 50 sed commands,
4356         to avoid HP-UX limit of 99 commands, in the near future.
4357         * modules/string: Likewise.
4358         * modules/unistd: Likewise.
4359
4360         gnulib-tool: avoid writing in the current directory.
4361         * gnulib-tool (func_emit_lib_Makefile_am)
4362         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
4363         not in the current directory, so concurrent gnulib-tool
4364         instances do not interfere.
4365
4366 2010-01-16  Jim Meyering  <meyering@redhat.com>
4367
4368         doc: update users.txt
4369         * users.txt: Add grep.
4370         (diffutils, gzip): Update URLs.
4371
4372 2010-01-12  Bruno Haible  <bruno@clisp.org>
4373
4374         posix_spawn: Avoid test failure on Cygwin.
4375         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
4376         characters.
4377         Reported by Simon Josefsson.
4378
4379 2010-01-12  Bruno Haible  <bruno@clisp.org>
4380
4381         * tests/test-cond.c (main): When skipping the test, show the reason.
4382
4383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4384
4385         * lib/striconv.c (str_cd_iconv): Avoid if before free.
4386
4387 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4388
4389         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
4390         VC_LIST_ALWAYS_EXCLUDE_REGEX.
4391
4392 2010-01-12  Eric Blake  <ebb9@byu.net>
4393
4394         build: guarantee AS_VAR_IF
4395         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
4396         (gl_AS_VAR_IF): Move...
4397         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
4398         Reported by Simon Josefsson.
4399
4400 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4401
4402         * lib/stdio.in.h: Fix typo.
4403
4404 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4405
4406         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
4407         libgpg-error.
4408
4409 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4410
4411         * tests/test-xalloc-die.sh: Use $EXEEXT.
4412
4413 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4414             Bruno Haible  <bruno@clisp.org>
4415
4416         getlogin, getlogin_r: Avoid test failure.
4417         * tests/test-getlogin.c: Include <stdio.h>.
4418         (main): Skip the test when the function fails because stdin is not a
4419         tty.
4420         * tests/test-getlogin_r.c: Include <stdio.h>.
4421         (main): Skip the test when the function fails because stdin is not a
4422         tty.
4423
4424 2010-01-11  Eric Blake  <ebb9@byu.net>
4425
4426         tests: avoid more large file warnings
4427         * tests/test-fflush.c: Avoid warning about ftell use.
4428         * tests/test-fseek.c: Avoid warning about fseek use.
4429
4430 2010-01-10  Bruno Haible  <bruno@clisp.org>
4431
4432         nproc: Work better on Linux when /proc and /sys are not mounted.
4433         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
4434         as lower bound when, on glibc/Linux systems,
4435         sysconf (_SC_NPROCESSORS_CONF) returns 1.
4436         Suggested by Pádraig Brady <P@draigbrady.com>.
4437         Reported by Dmitry V. Levin <ldv@altlinux.org>.
4438
4439         nproc: Refactor.
4440         * lib/nproc.c (num_processors_via_affinity_mask): New function,
4441         extracted from num_processors.
4442         (num_processors): Call it.
4443
4444 2010-01-11  Jim Meyering  <meyering@redhat.com>
4445
4446         utimecmp: avoid new warning from upcoming gcc-4.5.0
4447         * lib/utimecmp.c (BILLION): Define using #define rather than an
4448         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
4449
4450 2010-01-11  Eric Blake  <ebb9@byu.net>
4451
4452         math: add portability warnings for classification macros
4453         * modules/math (Depends-on): Add warn-on-use.
4454         (Makefile.am): Provide new substitutions.
4455         * m4/math_h.m4 (gl_MATH_H): Require inline.
4456         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
4457         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
4458         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
4459         implement warnings.
4460
4461         unistd: warn on use of environ without module
4462         * modules/unistd (Depends-on): Add warn-on-use.
4463         (Makefile.am): Provide new substitutions.
4464         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
4465         * lib/unistd.in.h (environ): Wrap with a warning helper function.
4466
4467         stdio: warn on suspicious uses
4468         * modules/stdio (Depends-on): Add warn-on-use.
4469         (Makefile.am): Provide new substitutions.
4470         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
4471         fseeko.
4472         * lib/stdio.in.h (gets): Always warn on use.
4473         (fseek, ftell): Adjust when warnings are issued, and honor
4474         _GL_NO_LARGE_FILES as a way to silence the warning.
4475         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
4476         any warning about large file offsets.
4477         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
4478         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
4479         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
4480         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
4481         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
4482         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
4483         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
4484         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
4485
4486         warn-on-use: new module
4487         * modules/warn-on-use: New file.
4488         * build-aux/warn-on-use.h: Likewise.
4489         * m4/warn-on-use.m4: Likewise.
4490         * MODULES.html.sh (Support for building): Mention it.
4491
4492 2010-01-10  Bruno Haible  <bruno@clisp.org>
4493
4494         Tests for module 'unistr/u32-strdup'.
4495         * modules/unistr/u32-strdup-tests: New file.
4496         * tests/unistr/test-u32-strdup.c: New file.
4497
4498         Tests for module 'unistr/u16-strdup'.
4499         * modules/unistr/u16-strdup-tests: New file.
4500         * tests/unistr/test-u16-strdup.c: New file.
4501
4502         Tests for module 'unistr/u8-strdup'.
4503         * modules/unistr/u8-strdup-tests: New file.
4504         * tests/unistr/test-u8-strdup.c: New file.
4505         * tests/unistr/test-strdup.h: New file.
4506
4507         Tests for module 'unistr/u32-strncmp'.
4508         * modules/unistr/u32-strncmp-tests: New file.
4509         * tests/unistr/test-u32-strncmp.c: New file.
4510
4511         Tests for module 'unistr/u16-strncmp'.
4512         * modules/unistr/u16-strncmp-tests: New file.
4513         * tests/unistr/test-u16-strncmp.c: New file.
4514
4515         Tests for module 'unistr/u8-strncmp'.
4516         * modules/unistr/u8-strncmp-tests: New file.
4517         * tests/unistr/test-u8-strncmp.c: New file.
4518         * tests/unistr/test-strncmp.h: New file.
4519
4520         Tests for module 'unistr/u32-strcoll'.
4521         * modules/unistr/u32-strcoll-tests: New file.
4522         * tests/unistr/test-u32-strcoll.c: New file.
4523
4524         Tests for module 'unistr/u16-strcoll'.
4525         * modules/unistr/u16-strcoll-tests: New file.
4526         * tests/unistr/test-u16-strcoll.c: New file.
4527
4528         Tests for module 'unistr/u8-strcoll'.
4529         * modules/unistr/u8-strcoll-tests: New file.
4530         * tests/unistr/test-u8-strcoll.c: New file.
4531
4532         Tests for module 'unistr/u32-strcmp'.
4533         * modules/unistr/u32-strcmp-tests: New file.
4534         * tests/unistr/test-u32-strcmp.c: New file.
4535         * tests/unistr/test-u32-strcmp.h: New file.
4536
4537         Tests for module 'unistr/u16-strcmp'.
4538         * modules/unistr/u16-strcmp-tests: New file.
4539         * tests/unistr/test-u16-strcmp.c: New file.
4540         * tests/unistr/test-u16-strcmp.h: New file.
4541
4542         Tests for module 'unistr/u8-strcmp'.
4543         * modules/unistr/u8-strcmp-tests: New file.
4544         * tests/unistr/test-u8-strcmp.c: New file.
4545         * tests/unistr/test-u8-strcmp.h: New file.
4546         * tests/unistr/test-strcmp.h: New file.
4547
4548         Tests for module 'unistr/u32-strncat'.
4549         * modules/unistr/u32-strncat-tests: New file.
4550         * tests/unistr/test-u32-strncat.c: New file.
4551
4552         Tests for module 'unistr/u16-strncat'.
4553         * modules/unistr/u16-strncat-tests: New file.
4554         * tests/unistr/test-u16-strncat.c: New file.
4555
4556         Tests for module 'unistr/u8-strncat'.
4557         * modules/unistr/u8-strncat-tests: New file.
4558         * tests/unistr/test-u8-strncat.c: New file.
4559         * tests/unistr/test-strncat.h: New file.
4560
4561         Tests for module 'unistr/u32-strcat'.
4562         * modules/unistr/u32-strcat-tests: New file.
4563         * tests/unistr/test-u32-strcat.c: New file.
4564
4565         Tests for module 'unistr/u16-strcat'.
4566         * modules/unistr/u16-strcat-tests: New file.
4567         * tests/unistr/test-u16-strcat.c: New file.
4568
4569         Tests for module 'unistr/u8-strcat'.
4570         * modules/unistr/u8-strcat-tests: New file.
4571         * tests/unistr/test-u8-strcat.c: New file.
4572         * tests/unistr/test-strcat.h: New file.
4573
4574         Tests for module 'unistr/u32-stpncpy'.
4575         * modules/unistr/u32-stpncpy-tests: New file.
4576         * tests/unistr/test-u32-stpncpy.c: New file.
4577
4578         Tests for module 'unistr/u16-stpncpy'.
4579         * modules/unistr/u16-stpncpy-tests: New file.
4580         * tests/unistr/test-u16-stpncpy.c: New file.
4581
4582         Tests for module 'unistr/u8-stpncpy'.
4583         * modules/unistr/u8-stpncpy-tests: New file.
4584         * tests/unistr/test-u8-stpncpy.c: New file.
4585         * tests/unistr/test-stpncpy.h: New file.
4586
4587         Tests for module 'unistr/u32-strncpy'.
4588         * modules/unistr/u32-strncpy-tests: New file.
4589         * tests/unistr/test-u32-strncpy.c: New file.
4590
4591         Tests for module 'unistr/u16-strncpy'.
4592         * modules/unistr/u16-strncpy-tests: New file.
4593         * tests/unistr/test-u16-strncpy.c: New file.
4594
4595         Tests for module 'unistr/u8-strncpy'.
4596         * modules/unistr/u8-strncpy-tests: New file.
4597         * tests/unistr/test-u8-strncpy.c: New file.
4598         * tests/unistr/test-strncpy.h: New file.
4599
4600         Tests for module 'unistr/u32-stpcpy'.
4601         * modules/unistr/u32-stpcpy-tests: New file.
4602         * tests/unistr/test-u32-stpcpy.c: New file.
4603
4604         Tests for module 'unistr/u16-stpcpy'.
4605         * modules/unistr/u16-stpcpy-tests: New file.
4606         * tests/unistr/test-u16-stpcpy.c: New file.
4607
4608         Tests for module 'unistr/u8-stpcpy'.
4609         * modules/unistr/u8-stpcpy-tests: New file.
4610         * tests/unistr/test-u8-stpcpy.c: New file.
4611         * tests/unistr/test-stpcpy.h: New file.
4612
4613         Tests for module 'unistr/u32-strcpy'.
4614         * modules/unistr/u32-strcpy-tests: New file.
4615         * tests/unistr/test-u32-strcpy.c: New file.
4616
4617         Tests for module 'unistr/u16-strcpy'.
4618         * modules/unistr/u16-strcpy-tests: New file.
4619         * tests/unistr/test-u16-strcpy.c: New file.
4620
4621         Tests for module 'unistr/u8-strcpy'.
4622         * modules/unistr/u8-strcpy-tests: New file.
4623         * tests/unistr/test-u8-strcpy.c: New file.
4624         * tests/unistr/test-strcpy.h: New file.
4625
4626         Tests for module 'unistr/u32-strnlen'.
4627         * modules/unistr/u32-strnlen-tests: New file.
4628         * tests/unistr/test-u32-strnlen.c: New file.
4629
4630         Tests for module 'unistr/u16-strnlen'.
4631         * modules/unistr/u16-strnlen-tests: New file.
4632         * tests/unistr/test-u16-strnlen.c: New file.
4633
4634         Tests for module 'unistr/u8-strnlen'.
4635         * modules/unistr/u8-strnlen-tests: New file.
4636         * tests/unistr/test-u8-strnlen.c: New file.
4637         * tests/unistr/test-strnlen.h: New file.
4638
4639         Tests for module 'unistr/u32-strlen'.
4640         * modules/unistr/u32-strlen-tests: New file.
4641         * tests/unistr/test-u32-strlen.c: New file.
4642
4643         Tests for module 'unistr/u16-strlen'.
4644         * modules/unistr/u16-strlen-tests: New file.
4645         * tests/unistr/test-u16-strlen.c: New file.
4646
4647         Tests for module 'unistr/u8-strlen'.
4648         * modules/unistr/u8-strlen-tests: New file.
4649         * tests/unistr/test-u8-strlen.c: New file.
4650
4651         Tests for module 'unistr/u32-prev'.
4652         * modules/unistr/u32-prev-tests: New file.
4653         * tests/unistr/test-u32-prev.c: New file.
4654
4655         Tests for module 'unistr/u16-prev'.
4656         * modules/unistr/u16-prev-tests: New file.
4657         * tests/unistr/test-u16-prev.c: New file.
4658
4659         Tests for module 'unistr/u8-prev'.
4660         * modules/unistr/u8-prev-tests: New file.
4661         * tests/unistr/test-u8-prev.c: New file.
4662
4663         Tests for module 'unistr/u32-next'.
4664         * modules/unistr/u32-next-tests: New file.
4665         * tests/unistr/test-u32-next.c: New file.
4666
4667         Tests for module 'unistr/u16-next'.
4668         * modules/unistr/u16-next-tests: New file.
4669         * tests/unistr/test-u16-next.c: New file.
4670
4671         Tests for module 'unistr/u8-next'.
4672         * modules/unistr/u8-next-tests: New file.
4673         * tests/unistr/test-u8-next.c: New file.
4674
4675         Tests for module 'unistr/u32-strmbtouc'.
4676         * modules/unistr/u32-strmbtouc-tests: New file.
4677         * tests/unistr/test-u32-strmbtouc.c: New file.
4678
4679         Tests for module 'unistr/u16-strmbtouc'.
4680         * modules/unistr/u16-strmbtouc-tests: New file.
4681         * tests/unistr/test-u16-strmbtouc.c: New file.
4682
4683         Tests for module 'unistr/u8-strmbtouc'.
4684         * modules/unistr/u8-strmbtouc-tests: New file.
4685         * tests/unistr/test-u8-strmbtouc.c: New file.
4686
4687         Tests for module 'unistr/u32-strmblen'.
4688         * modules/unistr/u32-strmblen-tests: New file.
4689         * tests/unistr/test-u32-strmblen.c: New file.
4690
4691         Tests for module 'unistr/u16-strmblen'.
4692         * modules/unistr/u16-strmblen-tests: New file.
4693         * tests/unistr/test-u16-strmblen.c: New file.
4694
4695         Tests for module 'unistr/u8-strmblen'.
4696         * modules/unistr/u8-strmblen-tests: New file.
4697         * tests/unistr/test-u8-strmblen.c: New file.
4698
4699         Tests for module 'unistr/u32-cpy-alloc'.
4700         * modules/unistr/u32-cpy-alloc-tests: New file.
4701         * tests/unistr/test-u32-cpy-alloc.c: New file.
4702
4703         Tests for module 'unistr/u16-cpy-alloc'.
4704         * modules/unistr/u16-cpy-alloc-tests: New file.
4705         * tests/unistr/test-u16-cpy-alloc.c: New file.
4706
4707         Tests for module 'unistr/u8-cpy-alloc'.
4708         * modules/unistr/u8-cpy-alloc-tests: New file.
4709         * tests/unistr/test-u8-cpy-alloc.c: New file.
4710         * tests/unistr/test-cpy-alloc.h: New file.
4711
4712         Tests for module 'unistr/u32-mbsnlen'.
4713         * modules/unistr/u32-mbsnlen-tests: New file.
4714         * tests/unistr/test-u32-mbsnlen.c: New file.
4715
4716         Tests for module 'unistr/u16-mbsnlen'.
4717         * modules/unistr/u16-mbsnlen-tests: New file.
4718         * tests/unistr/test-u16-mbsnlen.c: New file.
4719
4720         Tests for module 'unistr/u8-mbsnlen'.
4721         * modules/unistr/u8-mbsnlen-tests: New file.
4722         * tests/unistr/test-u8-mbsnlen.c: New file.
4723
4724         Tests for module 'unistr/u32-chr'.
4725         * modules/unistr/u32-chr-tests: New file.
4726         * tests/unistr/test-u32-chr.c: New file.
4727
4728         Tests for module 'unistr/u16-chr'.
4729         * modules/unistr/u16-chr-tests: New file.
4730         * tests/unistr/test-u16-chr.c: New file.
4731
4732         Tests for module 'unistr/u8-chr'.
4733         * modules/unistr/u8-chr-tests: New file.
4734         * tests/unistr/test-u8-chr.c: New file.
4735         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4736
4737         Tests for module 'unistr/u32-cmp2'.
4738         * modules/unistr/u32-cmp2-tests: New file.
4739         * tests/unistr/test-u32-cmp2.c: New file.
4740
4741         Tests for module 'unistr/u16-cmp2'.
4742         * modules/unistr/u16-cmp2-tests: New file.
4743         * tests/unistr/test-u16-cmp2.c: New file.
4744
4745         Tests for module 'unistr/u8-cmp2'.
4746         * modules/unistr/u8-cmp2-tests: New file.
4747         * tests/unistr/test-u8-cmp2.c: New file.
4748         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4749
4750         Tests for module 'unistr/u32-cmp'.
4751         * modules/unistr/u32-cmp-tests: New file.
4752         * tests/unistr/test-u32-cmp.c: New file.
4753
4754         Tests for module 'unistr/u16-cmp'.
4755         * modules/unistr/u16-cmp-tests: New file.
4756         * tests/unistr/test-u16-cmp.c: New file.
4757
4758         Tests for module 'unistr/u8-cmp'.
4759         * modules/unistr/u8-cmp-tests: New file.
4760         * tests/unistr/test-u8-cmp.c: New file.
4761         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4762
4763         Tests for module 'unistr/u32-set'.
4764         * modules/unistr/u32-set-tests: New file.
4765         * tests/unistr/test-u32-set.c: New file.
4766
4767         Tests for module 'unistr/u16-set'.
4768         * modules/unistr/u16-set-tests: New file.
4769         * tests/unistr/test-u16-set.c: New file.
4770
4771         Tests for module 'unistr/u8-set'.
4772         * modules/unistr/u8-set-tests: New file.
4773         * tests/unistr/test-u8-set.c: New file.
4774         * tests/unistr/test-set.h: New file.
4775
4776         Tests for module 'unistr/u32-move'.
4777         * modules/unistr/u32-move-tests: New file.
4778         * tests/unistr/test-u32-move.c: New file.
4779
4780         Tests for module 'unistr/u16-move'.
4781         * modules/unistr/u16-move-tests: New file.
4782         * tests/unistr/test-u16-move.c: New file.
4783
4784         Tests for module 'unistr/u8-move'.
4785         * modules/unistr/u8-move-tests: New file.
4786         * tests/unistr/test-u8-move.c: New file.
4787         * tests/unistr/test-move.h: New file.
4788
4789         Tests for module 'unistr/u32-cpy'.
4790         * modules/unistr/u32-cpy-tests: New file.
4791         * tests/unistr/test-u32-cpy.c: New file.
4792
4793         Tests for module 'unistr/u16-cpy'.
4794         * modules/unistr/u16-cpy-tests: New file.
4795         * tests/unistr/test-u16-cpy.c: New file.
4796
4797         Tests for module 'unistr/u8-cpy'.
4798         * modules/unistr/u8-cpy-tests: New file.
4799         * tests/unistr/test-u8-cpy.c: New file.
4800         * tests/unistr/test-cpy.h: New file.
4801
4802 2010-01-09  Bruno Haible  <bruno@clisp.org>
4803
4804         Tests for module 'unistr/u32-uctomb'.
4805         * modules/unistr/u32-uctomb-tests: New file.
4806         * tests/unistr/test-u32-uctomb.c: New file.
4807
4808         Tests for module 'unistr/u16-uctomb'.
4809         * modules/unistr/u16-uctomb-tests: New file.
4810         * tests/unistr/test-u16-uctomb.c: New file.
4811
4812         Tests for module 'unistr/u8-uctomb'.
4813         * modules/unistr/u8-uctomb-tests: New file.
4814         * tests/unistr/test-u8-uctomb.c: New file.
4815
4816         Tests for module 'unistr/u32-mbtoucr'.
4817         * modules/unistr/u32-mbtoucr-tests: New file.
4818         * tests/unistr/test-u32-mbtoucr.c: New file.
4819
4820         Tests for module 'unistr/u16-mbtoucr'.
4821         * modules/unistr/u16-mbtoucr-tests: New file.
4822         * tests/unistr/test-u16-mbtoucr.c: New file.
4823
4824         Tests for module 'unistr/u8-mbtoucr'.
4825         * modules/unistr/u8-mbtoucr-tests: New file.
4826         * tests/unistr/test-u8-mbtoucr.c: New file.
4827
4828         Tests for module 'unistr/u32-mbtouc'.
4829         * modules/unistr/u32-mbtouc-tests: New file.
4830         * tests/unistr/test-u32-mbtouc.c: New file.
4831
4832         Tests for module 'unistr/u16-mbtouc'.
4833         * modules/unistr/u16-mbtouc-tests: New file.
4834         * tests/unistr/test-u16-mbtouc.c: New file.
4835
4836         Tests for module 'unistr/u8-mbtouc'.
4837         * modules/unistr/u8-mbtouc-tests: New file.
4838         * tests/unistr/test-u8-mbtouc.c: New file.
4839
4840         Tests for module 'unistr/u32-mbtouc-unsafe'.
4841         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4842         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4843         * tests/unistr/test-u32-mbtouc.h: New file.
4844
4845         Tests for module 'unistr/u16-mbtouc-unsafe'.
4846         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4847         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4848         * tests/unistr/test-u16-mbtouc.h: New file.
4849
4850         Tests for module 'unistr/u8-mbtouc-unsafe'.
4851         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4852         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4853         * tests/unistr/test-u8-mbtouc.h: New file.
4854
4855         Tests for module 'unistr/u32-mblen'.
4856         * modules/unistr/u32-mblen-tests: New file.
4857         * tests/unistr/test-u32-mblen.c: New file.
4858
4859         Tests for module 'unistr/u16-mblen'.
4860         * modules/unistr/u16-mblen-tests: New file.
4861         * tests/unistr/test-u16-mblen.c: New file.
4862
4863         Tests for module 'unistr/u8-mblen'.
4864         * modules/unistr/u8-mblen-tests: New file.
4865         * tests/unistr/test-u8-mblen.c: New file.
4866
4867         Tests for module 'unistr/u32-to-u16'.
4868         * modules/unistr/u32-to-u16-tests: New file.
4869         * tests/unistr/test-u32-to-u16.c: New file.
4870
4871         Tests for module 'unistr/u32-to-u8'.
4872         * modules/unistr/u32-to-u8-tests: New file.
4873         * tests/unistr/test-u32-to-u8.c: New file.
4874
4875         Tests for module 'unistr/u16-to-u32'.
4876         * modules/unistr/u16-to-u32-tests: New file.
4877         * tests/unistr/test-u16-to-u32.c: New file.
4878
4879         Tests for module 'unistr/u16-to-u8'.
4880         * modules/unistr/u16-to-u8-tests: New file.
4881         * tests/unistr/test-u16-to-u8.c: New file.
4882
4883         Tests for module 'unistr/u8-to-u32'.
4884         * modules/unistr/u8-to-u32-tests: New file.
4885         * tests/unistr/test-u8-to-u32.c: New file.
4886
4887         Tests for module 'unistr/u8-to-u16'.
4888         * modules/unistr/u8-to-u16-tests: New file.
4889         * tests/unistr/test-u8-to-u16.c: New file.
4890
4891         Tests for module 'unistr/u32-check'.
4892         * modules/unistr/u32-check-tests: New file.
4893         * tests/unistr/test-u32-check.c: New file.
4894
4895         Tests for module 'unistr/u16-check'.
4896         * modules/unistr/u16-check-tests: New file.
4897         * tests/unistr/test-u16-check.c: New file.
4898
4899         Tests for module 'unistr/u8-check'.
4900         * modules/unistr/u8-check-tests: New file.
4901         * tests/unistr/test-u8-check.c: New file.
4902
4903         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4904         (category_equals): New function.
4905         (main): Add more tests.
4906         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4907
4908         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4909
4910 2010-01-10  Bruno Haible  <bruno@clisp.org>
4911
4912         unistr/u*-strcoll: Try harder to distinguish different strings.
4913         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4914         compare s1 and s2 to see if they are different.
4915
4916 2010-01-10  Bruno Haible  <bruno@clisp.org>
4917
4918         unistr/u*-stpncpy: Fix the return value.
4919         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4920         description of the return value consistent with stpncpy in glibc.
4921         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4922         written non-NUL unit.
4923
4924 2010-01-10  Bruno Haible  <bruno@clisp.org>
4925
4926         unistr/u*-next: Add missing dependencies.
4927         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4928         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4929         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4930
4931 2010-01-10  Bruno Haible  <bruno@clisp.org>
4932
4933         unistr/u8-mbsnlen: Fix return value for incomplete character.
4934         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4935         u8_mblen.
4936         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4937         Remove unistr/u8-mblen.
4938         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4939         u16_mblen.
4940         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4941         Remove unistr/u16-mblen.
4942
4943 2010-01-10  Bruno Haible  <bruno@clisp.org>
4944
4945         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4946         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4947         Reported by Brian Gough <bjg@gnu.org> and
4948         Chris Clayton <chris2553@googlemail.com> via
4949         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4950
4951 2010-01-09  Bruno Haible  <bruno@clisp.org>
4952
4953         unistr/u16-to-u32: Reject invalid input.
4954         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4955         u16_mbtouc.
4956         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4957         Remove unistr/u16-mbtouc.
4958
4959         unistr/u16-to-u8: Reject invalid input.
4960         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4961         u16_mbtouc.
4962         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4963         Remove unistr/u16-mbtouc.
4964
4965         unistr/u8-to-u32: Reject invalid input.
4966         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4967         u8_mbtouc.
4968         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4969         Remove unistr/u8-mbtouc.
4970
4971         unistr/u8-to-u16: Reject invalid input.
4972         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4973         u8_mbtouc.
4974         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4975         Remove unistr/u8-mbtouc.
4976
4977 2010-01-09  Bruno Haible  <bruno@clisp.org>
4978
4979         Tests for module 'getlogin'.
4980         * modules/getlogin-tests: New file.
4981         * tests/test-getlogin.c: New file.
4982
4983         New module 'getlogin'.
4984         * lib/unistd.in.h (getlogin): New declaration.
4985         * lib/getlogin.c: New file.
4986         * m4/getlogin.m4: New file.
4987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4988         HAVE_GETLOGIN.
4989         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4990         HAVE_GETLOGIN.
4991         * modules/getlogin: New file.
4992         * doc/posix-functions/getlogin.texi: Mention the new module.
4993         Reported by John W. Eaton <jwe@gnu.org>.
4994
4995 2010-01-09  Bruno Haible  <bruno@clisp.org>
4996
4997         getlogin_r: Support for native Windows.
4998         * lib/getlogin_r.c: Include <windows.h>
4999         (getlogin_r): Implement for native Windows.
5000         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
5001         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
5002         via John W. Eaton <jwe@gnu.org>.
5003
5004 2010-01-09  Bruno Haible  <bruno@clisp.org>
5005
5006         getlogin_r: Small fixes.
5007         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
5008         succeeds.
5009         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
5010         before testing whether getlogin_r is declared. No need to set
5011         HAVE_DECL_GETLOGIN_R to 1.
5012         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
5013
5014 2010-01-09  Bruno Haible  <bruno@clisp.org>
5015
5016         * lib/unistd.in.h (getlogin_r): Add comment.
5017
5018 2010-01-09  Bruno Haible  <bruno@clisp.org>
5019
5020         Tests for module 'getlogin_r'.
5021         * modules/getlogin_r-tests: New file.
5022         * tests/test-getlogin_r.c: New file.
5023
5024 2010-01-09  Jim Meyering  <meyering@redhat.com>
5025
5026         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
5027         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
5028         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
5029
5030 2010-01-08  Simon Josefsson  <simon@josefsson.org>
5031
5032         * lib/dup2.c (rpl_dup2): Improve comment.
5033
5034 2010-01-08  Eric Blake  <ebb9@byu.net>
5035
5036         maint.mk: allow packages to add makefile @@ exceptions
5037         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
5038         (sc_makefile_check): Rename...
5039         (sc_makefile_at_at_check): ...to this, and use hook.
5040
5041         dup2: work around mingw bug
5042         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
5043         Reported by Simon Josefsson.
5044
5045 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
5046
5047         glob: Fix C++ compilation.
5048         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
5049         C++.
5050
5051 2010-01-07  Bruno Haible  <bruno@clisp.org>
5052
5053         Fix indentation of wctype.in.h, broken since 2007-01-06.
5054         * lib/wctype.in.h: Fix indentation of preprocessor directives.
5055
5056 2010-01-07  Bruno Haible  <bruno@clisp.org>
5057
5058         mbslen: Avoid collision with system function.
5059         * lib/string.in.h [MirBSD]: Include <wchar.h>.
5060         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
5061         * m4/mbslen.m4: New file.
5062         * modules/mbslen (Files): Add it.
5063         (configure.ac): Invoke gl_MBSLEN.
5064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
5065         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
5066         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
5067         via Ian Beckwith <ianb@erislabs.net>.
5068
5069 2010-01-07  Bruno Haible  <bruno@clisp.org>
5070
5071         dirent: Document the last fix.
5072         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
5073
5074 2010-01-07  Bruno Haible  <bruno@clisp.org>
5075
5076         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
5077         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
5078         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
5079         va_list are defined.
5080         * doc/posix-headers/stdio.texi: Document the bug of missing types.
5081         Reported by Eric Blake.
5082
5083 2010-01-07  Bruno Haible  <bruno@clisp.org>
5084
5085         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
5086         * modules/xlist (Depends-on): Add 'list',
5087         * modules/xoset (Depends-on): Add 'oset'.
5088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5089
5090 2010-01-07  Bruno Haible  <bruno@clisp.org>
5091
5092         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
5093         * doc/posix-functions/strncasecmp.texi: Likewise.
5094
5095 2010-01-07  Bruno Haible  <bruno@clisp.org>
5096
5097         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
5098
5099 2010-01-07  John W. Eaton  <jwe@octave.org>
5100
5101         wctype: allow C++ use
5102         * lib/wctype.in.h: Add extern "C" block for C++.
5103
5104 2010-01-06  Eric Blake  <ebb9@byu.net>
5105
5106         maint.mk: detect incorrect GFDL usage
5107         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
5108
5109 2010-01-06  Jim Meyering  <meyering@redhat.com>
5110         and Eric Blake  <ebb9@byu.net>
5111
5112         maint.mk: ignore multi-line copyright in NEWS
5113         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
5114
5115 2010-01-06  Eric Blake  <ebb9@byu.net>
5116
5117         select: add missing dependency
5118         * modules/select-tests (Depends-on): Move sockets dependency...
5119         * modules/select (Depends-on): ...here.
5120         Reported by Ian Beckwith.
5121
5122         doc: regenerate INSTALL
5123         * doc/INSTALL: Reflect recent autoconf update.
5124         * doc/INSTALL.ISO: Likewise.
5125         * doc/INSTALL.UTF-8: Likewise.
5126
5127         pread: fix compilation on glibc
5128         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
5129         Reported by Ralf Wildenhues.
5130
5131         dirent: fix test failure
5132         * lib/dirent.in.h (includes): Guarantee ino_t.
5133         Reported by Ralf Wildenhues.
5134
5135 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
5136
5137         linkat, renameat: avoid bad free
5138         * lib/at-func2.c (at_func2): Fix typo.
5139         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
5140
5141 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5142
5143         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
5144         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
5145         to avoid failure of symlink test later.
5146
5147 2010-01-06  Eric Blake  <ebb9@byu.net>
5148
5149         stdio, unistd: guarantee ssize_t
5150         * lib/unistd.in.h (includes): Ensure that types required by POSIX
5151         2008 are exposed when needed.
5152         * lib/stdio.in.h (includes): Likewise.
5153         Reported by Ralf Wildenhues.
5154
5155 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
5156
5157         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
5158         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
5159         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
5160
5161 2010-01-06  Jim Meyering  <meyering@redhat.com>
5162
5163         readtokens: this module *does* require xalloc.h
5164         It uses only functions that were omitted by the old syntax-check rule.
5165         * lib/readtokens.c: Include "xalloc.h" once again.
5166         * modules/readtokens (Depends-on): Add xalloc.
5167         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
5168
5169 2010-01-05  Eric Blake  <ebb9@byu.net>
5170
5171         maint: support 'make announcement' from a VPATH build
5172         * top/maint.mk (announcement): Look for correct NEWS file.
5173
5174 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
5175
5176         utimens (fdutimens): ignore a negative FD, per contract
5177         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
5178         when we have a valid file descriptor.  Otherwise, using a brand
5179         new glibc (with just-patched futimens that now fails with EBADF)
5180         would cause this function to fail with ENOSYS.
5181         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
5182         See also http://bugzilla.redhat.com/552320.
5183
5184 2010-01-05  Eric Blake  <ebb9@byu.net>
5185
5186         strcase: document what it provides
5187         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
5188         gnulib module.
5189         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
5190         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
5191
5192 2010-01-05  Jim Meyering  <meyering@redhat.com>
5193
5194         maint: remove useless inclusions of "xalloc.h"
5195         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
5196         * lib/readtokens.c: Likewise.
5197         * lib/same.c: Likewise.
5198         * modules/getloadavg (Depends-on): Remove xalloc.
5199         * modules/readtokens: Likewise.
5200         * modules/same: Likewise.
5201
5202         maint.mk: include 4 more function names in alloca.h-checking regexp
5203         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
5204         regexp.  Before, we would give a false-positive (saying alloca.h
5205         is included unnecessarily) when the only uses involved omitted symbols.
5206
5207         xalloc.h: use consistent formatting
5208         * lib/xalloc.h: Move declarations to start in the first column.
5209
5210 2010-01-05  Eric Blake  <ebb9@byu.net>
5211
5212         mkdir: avoid xalloc
5213         * lib/mkdir.c (includes): Drop unused header.
5214         Reported by John W. Eaton.
5215
5216 2010-01-04  Jim Meyering  <meyering@redhat.com>
5217
5218         nl_langinfo: avoid configure-time syntax error
5219         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
5220         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
5221         the empty string.  Don't let that provoke a shell syntax error.
5222
5223         regcomp, regexec, fnmatch: avoid array bounds read error
5224         * lib/regcomp.c (build_equiv_class): From glibc:
5225         Use only the low 24 bits of a findidx return value as an index
5226         into the weights array.  Patch by Ulrich Drepper:
5227         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
5228         * lib/regexec.c (check_node_accept_bytes): Likewise.
5229         * lib/fnmatch_loop.c (FCT): Likewise.
5230
5231         regcomp: skip collseq lookup when there are no rules
5232         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
5233         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
5234
5235         regcomp: recognize ill-formed { } expressions
5236         * lib/regcomp.c (parse_dup_op): From glibc:
5237         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
5238
5239         regcomp: fix typo in comment
5240         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
5241         s/satisfy/satisfies/.
5242
5243         regcomp: sync from glibc: remove dead store
5244         * lib/regcomp.c (duplicate_node_closure): Remove useless
5245         search_duplicated_node call and dead store.
5246
5247         regcomp: sync from glibc; always use nl_langinfo
5248         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
5249         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
5250         * modules/regex (Depends-on): Add nl_langinfo.
5251
5252 2010-01-04  Eric Blake  <ebb9@byu.net>
5253
5254         fdopendir: fix configure test
5255         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
5256
5257 2010-01-01  Bruno Haible  <bruno@clisp.org>
5258
5259         wchar: Remove unused configure check.
5260         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
5261
5262 2010-01-01  Eric Blake  <ebb9@byu.net>
5263
5264         headers: make check of system header explicit
5265         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
5266         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
5267         ourselves.
5268         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
5271         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
5272         internals.
5273         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
5274         missing.
5275         Suggested by Bruno Haible.
5276
5277 2010-01-01  Jim Meyering  <meyering@redhat.com>
5278
5279         ChangeLog: tweak to eliminate unnecessary copyright line
5280         * ChangeLog: Remove a copyright line that was mistakenly updated
5281         by today's update-copyright run.  Reported by Eric Blake.
5282
5283         test-update-copyright: don't let envvar setting cause test failure
5284         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5285
5286 2010-01-01  Bruno Haible  <bruno@clisp.org>
5287
5288         localename: Avoid gcc warning.
5289         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
5290         function if it is not used.
5291
5292 2010-01-01  Jim Meyering  <meyering@redhat.com>
5293
5294         update nearly all FSF copyright year lists to include 2010
5295         Use the same procedure as for 2009, outlined in
5296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
5297
5298         version-etc: set COPYRIGHT_YEAR to 2010
5299         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
5300
5301 2009-12-31  Eric Blake  <ebb9@byu.net>
5302
5303         doc: correct availability of cygwin 1.5.x getopt
5304         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
5305         variables.
5306         * doc/posix-functions/opterr.texi (opterr): Likewise.
5307         * doc/posix-functions/optind.texi (optind): Likewise.
5308         * doc/posix-functions/optopt.texi (optopt): Likewise.
5309         * doc/posix-functions/tzname.texi (tzname): Likewise.
5310
5311         openat: update maintainer
5312         * modules/openat (Maintainer): Add myself.
5313
5314         utimens: avoid shadowing warning
5315         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
5316         buffers into one, to avoid shadowing, as well as avoiding a
5317         redundant stat.
5318         Reported by Jim Meyering.
5319
5320         test-dup2: avoid compiler warning
5321         * tests/test-dup2.c (is_inheritable): Only define if used.
5322
5323 2010-01-01  Bruno Haible  <bruno@clisp.org>
5324
5325         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
5326         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
5327         defined, use wctomb instead of wcrtomb.
5328
5329 2010-01-01  Bruno Haible  <bruno@clisp.org>
5330
5331         iconv: Reject native Solaris iconv.
5332         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
5333         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
5334
5335 2009-12-31  Bruno Haible  <bruno@clisp.org>
5336
5337         * tests/test-signal.c (main): Remove test of 'SIG'.
5338
5339 2009-12-31  Bruno Haible  <bruno@clisp.org>
5340
5341         spawn: Fix incomplete fix.
5342         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
5343         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
5344         warnings for GNULIB_POSIXCHECK again.
5345         Reported by Eric Blake.
5346
5347 2009-12-31  Bruno Haible  <bruno@clisp.org>
5348
5349         Avoid namespace pollution on glibc systems.
5350         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
5351         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
5352         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
5353         glibc systems.
5354
5355 2009-12-31  Bruno Haible  <bruno@clisp.org>
5356
5357         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
5358         (gl_REPLACE_WCHAR_H): Turn into a no-op.
5359         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
5360         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5361         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5362         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5363         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5364
5365 2009-12-31  Bruno Haible  <bruno@clisp.org>
5366
5367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5368         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
5369         afterwards.
5370
5371 2009-12-31  Bruno Haible  <bruno@clisp.org>
5372
5373         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
5374         SYS_UTSNAME_H.
5375
5376 2009-12-31  Bruno Haible  <bruno@clisp.org>
5377
5378         spawn: Fix misapplied patch.
5379         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
5380         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
5381         warnings for GNULIB_POSIXCHECK.
5382
5383 2009-12-31  Bruno Haible  <bruno@clisp.org>
5384
5385         times: Update after sys_times changed.
5386         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
5387         * modules/times (Files): Add it.
5388         (configure.ac): Invoke gl_FUNC_TIMES.
5389
5390 2009-12-31  Bruno Haible  <bruno@clisp.org>
5391
5392         Use AC_C_INLINE where necessary.
5393         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
5394         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
5395         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
5396         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
5397         * m4/mbfile.m4 (gl_MBFILE): Likewise.
5398         * m4/mbiter.m4 (gl_MBITER): Likewise.
5399         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5400         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5401         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
5402         * modules/u64 (configure.ac): Likewise.
5403
5404 2009-12-31  Bruno Haible  <bruno@clisp.org>
5405
5406         Use AC_C_INLINE instead of module 'inline' where possible.
5407         * modules/inline (Description): Clarify purpose.
5408         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
5409         * modules/count-one-bits (Depends-on): Remove inline.
5410         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
5411         * modules/openat (Depends-on): Remove inline.
5412         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
5413         instead of depending on module 'inline'.
5414         * modules/filevercmp (Depends-on, configure.ac): Likewise.
5415         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
5416         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
5417         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
5418         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
5419         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
5420         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
5421         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
5422         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
5423         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
5424         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
5425         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
5426         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
5427         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
5428         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
5429         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
5430         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
5431         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
5432         Likewise.
5433         * modules/unictype/property-ascii-hex-digit (Depends-on,
5434         configure.ac): Likewise.
5435         * modules/unictype/property-bidi-arabic-digit (Depends-on,
5436         configure.ac): Likewise.
5437         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
5438         configure.ac): Likewise.
5439         * modules/unictype/property-bidi-block-separator (Depends-on,
5440         configure.ac): Likewise.
5441         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
5442         configure.ac): Likewise.
5443         * modules/unictype/property-bidi-common-separator (Depends-on,
5444         configure.ac): Likewise.
5445         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
5446         Likewise.
5447         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
5448         configure.ac): Likewise.
5449         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
5450         configure.ac): Likewise.
5451         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
5452         configure.ac): Likewise.
5453         * modules/unictype/property-bidi-european-digit (Depends-on,
5454         configure.ac): Likewise.
5455         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
5456         configure.ac): Likewise.
5457         * modules/unictype/property-bidi-left-to-right (Depends-on,
5458         configure.ac): Likewise.
5459         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
5460         configure.ac): Likewise.
5461         * modules/unictype/property-bidi-other-neutral (Depends-on,
5462         configure.ac): Likewise.
5463         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
5464         Likewise.
5465         * modules/unictype/property-bidi-segment-separator (Depends-on,
5466         configure.ac): Likewise.
5467         * modules/unictype/property-bidi-whitespace (Depends-on,
5468         configure.ac): Likewise.
5469         * modules/unictype/property-combining (Depends-on, configure.ac):
5470         Likewise.
5471         * modules/unictype/property-composite (Depends-on, configure.ac):
5472         Likewise.
5473         * modules/unictype/property-currency-symbol (Depends-on,
5474         configure.ac): Likewise.
5475         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
5476         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
5477         Likewise.
5478         * modules/unictype/property-default-ignorable-code-point (Depends-on,
5479         configure.ac): Likewise.
5480         * modules/unictype/property-deprecated (Depends-on, configure.ac):
5481         Likewise.
5482         * modules/unictype/property-diacritic (Depends-on, configure.ac):
5483         Likewise.
5484         * modules/unictype/property-extender (Depends-on, configure.ac):
5485         Likewise.
5486         * modules/unictype/property-format-control (Depends-on, configure.ac):
5487         Likewise.
5488         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
5489         Likewise.
5490         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
5491         Likewise.
5492         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
5493         Likewise.
5494         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
5495         Likewise.
5496         * modules/unictype/property-hyphen (Depends-on, configure.ac):
5497         Likewise.
5498         * modules/unictype/property-id-continue (Depends-on, configure.ac):
5499         Likewise.
5500         * modules/unictype/property-id-start (Depends-on, configure.ac):
5501         Likewise.
5502         * modules/unictype/property-ideographic (Depends-on, configure.ac):
5503         Likewise.
5504         * modules/unictype/property-ids-binary-operator (Depends-on,
5505         configure.ac): Likewise.
5506         * modules/unictype/property-ids-trinary-operator (Depends-on,
5507         configure.ac): Likewise.
5508         * modules/unictype/property-ignorable-control (Depends-on,
5509         configure.ac): Likewise.
5510         * modules/unictype/property-iso-control (Depends-on, configure.ac):
5511         Likewise.
5512         * modules/unictype/property-join-control (Depends-on, configure.ac):
5513         Likewise.
5514         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
5515         Likewise.
5516         * modules/unictype/property-line-separator (Depends-on, configure.ac):
5517         Likewise.
5518         * modules/unictype/property-logical-order-exception (Depends-on,
5519         configure.ac): Likewise.
5520         * modules/unictype/property-lowercase (Depends-on, configure.ac):
5521         Likewise.
5522         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
5523         * modules/unictype/property-non-break (Depends-on, configure.ac):
5524         Likewise.
5525         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
5526         Likewise.
5527         * modules/unictype/property-numeric (Depends-on, configure.ac):
5528         Likewise.
5529         * modules/unictype/property-other-alphabetic (Depends-on,
5530         configure.ac): Likewise.
5531         * modules/unictype/property-other-default-ignorable-code-point
5532         (Depends-on, configure.ac): Likewise.
5533         * modules/unictype/property-other-grapheme-extend (Depends-on,
5534         configure.ac): Likewise.
5535         * modules/unictype/property-other-id-continue (Depends-on,
5536         configure.ac): Likewise.
5537         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
5538         Likewise.
5539         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
5540         Likewise.
5541         * modules/unictype/property-other-math (Depends-on, configure.ac):
5542         Likewise.
5543         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
5544         Likewise.
5545         * modules/unictype/property-paired-punctuation (Depends-on,
5546         configure.ac): Likewise.
5547         * modules/unictype/property-paragraph-separator (Depends-on,
5548         configure.ac): Likewise.
5549         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
5550         Likewise.
5551         * modules/unictype/property-pattern-white-space (Depends-on,
5552         configure.ac): Likewise.
5553         * modules/unictype/property-private-use (Depends-on, configure.ac):
5554         Likewise.
5555         * modules/unictype/property-punctuation (Depends-on, configure.ac):
5556         Likewise.
5557         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
5558         Likewise.
5559         * modules/unictype/property-radical (Depends-on, configure.ac):
5560         Likewise.
5561         * modules/unictype/property-sentence-terminal (Depends-on,
5562         configure.ac): Likewise.
5563         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
5564         Likewise.
5565         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
5566         * modules/unictype/property-terminal-punctuation (Depends-on,
5567         configure.ac): Likewise.
5568         * modules/unictype/property-titlecase (Depends-on, configure.ac):
5569         Likewise.
5570         * modules/unictype/property-unassigned-code-value (Depends-on,
5571         configure.ac): Likewise.
5572         * modules/unictype/property-unified-ideograph (Depends-on,
5573         configure.ac): Likewise.
5574         * modules/unictype/property-uppercase (Depends-on, configure.ac):
5575         Likewise.
5576         * modules/unictype/property-variation-selector (Depends-on,
5577         configure.ac): Likewise.
5578         * modules/unictype/property-white-space (Depends-on, configure.ac):
5579         Likewise.
5580         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
5581         Likewise.
5582         * modules/unictype/property-xid-start (Depends-on, configure.ac):
5583         Likewise.
5584         * modules/unictype/property-zero-width (Depends-on, configure.ac):
5585         Likewise.
5586         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
5587         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
5588         Likewise.
5589
5590 2009-12-31  Bruno Haible  <bruno@clisp.org>
5591
5592         Remove unnecessary AC_C_INLINE invocation.
5593         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
5594         since 2009-08-21.
5595
5596 2009-12-31  Jim Meyering  <meyering@redhat.com>
5597
5598         maint.mk: don't require explicit gpg_key_ID in cfg.mk
5599         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
5600         With this change, we can all remove the gpg_key_ID = ... definition
5601         from our respective cfg.mk files.
5602
5603         maint.mk: create announcement template in ~/, not in /tmp
5604         * top/maint.mk (emit_upload_commands): Adjust.
5605         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
5606         Remove temporary file, .ci-msg.
5607
5608 2009-12-31  Eric Blake  <ebb9@byu.net>
5609
5610         link-warning: always build headers with link warnings
5611         * modules/arpa_inet (Makefile.am): Always build replacement
5612         header.
5613         * modules/ctype (Makefile.am): Likewise.
5614         * modules/dirent (Makefile.am): Likewise.
5615         * modules/inttypes (Makefile.am): Likewise.
5616         * modules/langinfo (Makefile.am): Likewise.
5617         * modules/locale (Makefile.am): Likewise.
5618         * modules/spawn (Makefile.am): Likewise.
5619         * modules/sys_file (Makefile.am): Likewise.
5620         * modules/sys_ioctl (Makefile.am): Likewise.
5621         * modules/sys_select (Makefile.am): Likewise.
5622         * modules/sys_socket (Makefile.am): Likewise.
5623         * modules/sys_times (Makefile.am): Likewise.
5624         * modules/sys_utsname (Makefile.am): Likewise.
5625         * modules/sys_wait (Makefile.am): Likewise.
5626         * modules/wchar (Makefile.am): Likewise.
5627         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5628         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5629         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5630         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5631         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5632         Likewise.
5633         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5634         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5635         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5636         Likewise.
5637         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5638         Likewise.
5639         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5640         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5641         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5643         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5644         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5645         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5646         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5647         (gl_WCHAR_H_DEFAULTS): Likewise.
5648
5649 2009-12-31  Eric Blake  <ebb9@byu.net>
5650
5651         signal, spawn: use link warnings
5652         * lib/signal.in.h (sigset_t): Make unconditional.
5653         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5654         (sigpending, sigprocmask, sigaction): Add link warnings.
5655         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5656         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5657         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5658         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5659         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5660         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5661         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5662         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5663         (posix_spawn_file_actions_destroy)
5664         (posix_spawn_file_actions_addopen)
5665         (posix_spawn_file_actions_addclose)
5666         (posix_spawn_file_actions_adddup2): Likewise.
5667         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5668         * tests/test-signal.c (main): Enhance test.
5669
5670         spawn: improve wrapper support
5671         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5672         (gl_SPAWN_H_DEFAULTS): New defaults.
5673         * modules/spawn (Makefile.am): Substitute them.
5674         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5675         Only declare if missing or broken.
5676
5677         sys_times, sys_utsname: use include_next
5678         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5679         header.
5680         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5681         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5682         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5683         * modules/sys_times (Depends-on): Add include_next.
5684         (Makefile.am): Substitute additional values.
5685         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5686         * lib/sys_times.in.h (includes): Include native header, if
5687         available.
5688         * lib/sys_utsname.in.h (includes): Likewise.
5689         * tests/test-sys_times.c (main): Enhance test.
5690
5691         fdutimensat: revert prior patch
5692         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5693         utimens.h.
5694         Reported by Bruno Haible.
5695
5696 2009-12-30  Eric Blake  <ebb9@byu.net>
5697
5698         sys_wait: drop link-warning dependency
5699         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5700         link-warning efforts.
5701         * lib/sys_wait.in.h: Likewise.
5702
5703         fdutimensat: remove bogus dependency
5704         * modules/fdutimensat (Depends-on): Drop inline.
5705
5706         unistd: fix typo
5707         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5708
5709 2009-12-30  Bruno Haible  <bruno@clisp.org>
5710
5711         Fix compilation error with Solaris cc.
5712         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5713         * lib/unicase/u16-is-invariant.c: Likewise.
5714         * lib/unicase/u32-is-invariant.c: Likewise.
5715         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5716
5717 2009-12-30  Bruno Haible  <bruno@clisp.org>
5718
5719         Fix test crash.
5720         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5721         locales.
5722         Reported by Simon Josefsson <simon@josefsson.org>.
5723
5724 2009-12-30  Bruno Haible  <bruno@clisp.org>
5725
5726         Fix compilation error on most platforms.
5727         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5728         Reported by Simon Josefsson <simon@josefsson.org>
5729         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5730
5731 2009-12-30  Eric Blake  <ebb9@byu.net>
5732
5733         futimens, utimensat: work around ntfs-3g bug
5734         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5735         a ctime bug is present, and expand workaround to cover ntfs-3g.
5736         * lib/utimens.c (fdutimens, lutimens): Likewise.
5737         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5738         (validate_timespec): Adjust return value.
5739         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5740         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5741         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5742
5743 2009-12-29  Eric Blake  <ebb9@byu.net>
5744
5745         link-warning: make usage consistent
5746         * modules/ctype (Depends-on): Add link-warning.
5747         (Makefile.am): Update rules accordingly.
5748         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5749         * modules/locale (Depends-on, Makefile.am): Likewise.
5750         * modules/sys_file (Makefile.am): Likewise.
5751         * modules/getopt-posix (Makefile.am): Delete unused link warning
5752         efforts.
5753         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5754         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5755         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5756         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5757
5758         stdio: remove unused variables
5759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5761         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5762
5763         tests: test more substitute headers
5764         * modules/ctype-tests: New file.
5765         * modules/dirent-tests: Likewise.
5766         * modules/spawn-tests: Likewise.
5767         * modules/sys_file-tests: Likewise.
5768         * modules/sys_ioctl-tests: Likewise.
5769         * modules/sys_wait-tests: Likewise.
5770         * tests/test-ctype.c: Likewise.
5771         * tests/test-dirent.c: Likewise.
5772         * tests/test-spawn.c: Likewise.
5773         * tests/test-sys_file.c: Likewise.
5774         * tests/test-sys_ioctl.c: Likewise.
5775         * tests/test-sys_wait.c: Likewise.
5776         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5777         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5778         whether or not flock is in use.
5779
5780         tests: remove License section from module
5781         * modules/arpa_inet-tests: Remove unneeded section.
5782         * modules/byteswap-tests: Likewise.
5783         * modules/ceilf-tests: Likewise.
5784         * modules/ceill-tests: Likewise.
5785         * modules/crypto/des-tests: Likewise.
5786         * modules/crypto/gc-arcfour-tests: Likewise.
5787         * modules/crypto/gc-arctwo-tests: Likewise.
5788         * modules/crypto/gc-des-tests: Likewise.
5789         * modules/crypto/gc-hmac-md5-tests: Likewise.
5790         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5791         * modules/crypto/gc-md2-tests: Likewise.
5792         * modules/crypto/gc-md4-tests: Likewise.
5793         * modules/crypto/gc-md5-tests: Likewise.
5794         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5795         * modules/crypto/gc-rijndael-tests: Likewise.
5796         * modules/crypto/gc-sha1-tests: Likewise.
5797         * modules/crypto/gc-tests: Likewise.
5798         * modules/crypto/md2-tests: Likewise.
5799         * modules/crypto/md4-tests: Likewise.
5800         * modules/fcntl-h-tests: Likewise.
5801         * modules/floorf-tests: Likewise.
5802         * modules/floorl-tests: Likewise.
5803         * modules/frexp-nolibm-tests: Likewise.
5804         * modules/frexp-tests: Likewise.
5805         * modules/frexpl-nolibm-tests: Likewise.
5806         * modules/frexpl-tests: Likewise.
5807         * modules/getaddrinfo-tests: Likewise.
5808         * modules/inttypes-tests: Likewise.
5809         * modules/isfinite-tests: Likewise.
5810         * modules/isinf-tests: Likewise.
5811         * modules/ldexpl-tests: Likewise.
5812         * modules/locale-tests: Likewise.
5813         * modules/math-tests: Likewise.
5814         * modules/netdb-tests: Likewise.
5815         * modules/netinet_in-tests: Likewise.
5816         * modules/printf-frexp-tests: Likewise.
5817         * modules/printf-frexpl-tests: Likewise.
5818         * modules/priv-set-tests: Likewise.
5819         * modules/random_r-tests: Likewise.
5820         * modules/round-tests: Likewise.
5821         * modules/roundf-tests: Likewise.
5822         * modules/roundl-tests: Likewise.
5823         * modules/search-tests: Likewise.
5824         * modules/select-tests: Likewise.
5825         * modules/signal-tests: Likewise.
5826         * modules/stdbool-tests: Likewise.
5827         * modules/stddef-tests: Likewise.
5828         * modules/stdint-tests: Likewise.
5829         * modules/stdio-tests: Likewise.
5830         * modules/stdlib-tests: Likewise.
5831         * modules/string-tests: Likewise.
5832         * modules/strings-tests: Likewise.
5833         * modules/sys_select-tests: Likewise.
5834         * modules/sys_socket-tests: Likewise.
5835         * modules/sys_stat-tests: Likewise.
5836         * modules/sys_time-tests: Likewise.
5837         * modules/sys_utsname-tests: Likewise.
5838         * modules/sysexits-tests: Likewise.
5839         * modules/time-tests: Likewise.
5840         * modules/trunc-tests: Likewise.
5841         * modules/truncf-tests: Likewise.
5842         * modules/truncl-tests: Likewise.
5843         * modules/tsearch-tests: Likewise.
5844         * modules/unistd-tests: Likewise.
5845         * modules/wchar-tests: Likewise.
5846         * modules/wctype-tests: Likewise.
5847
5848         tests: fix license on several tests
5849         * tests/test-des.c: Update to GPLv3+.
5850         * tests/test-flock.c: Likewise.
5851         * tests/test-fsync.c: Likewise.
5852         * tests/test-futimens.h: Likewise.
5853         * tests/test-gc-arcfour.c: Likewise.
5854         * tests/test-gc-arctwo.c: Likewise.
5855         * tests/test-gc-des.c: Likewise.
5856         * tests/test-gc-hmac-md5.c: Likewise.
5857         * tests/test-gc-hmac-sha1.c: Likewise.
5858         * tests/test-gc-md2.c: Likewise.
5859         * tests/test-gc-md4.c: Likewise.
5860         * tests/test-gc-md5.c: Likewise.
5861         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5862         * tests/test-gc-rijndael.c: Likewise.
5863         * tests/test-gc-sha1.c: Likewise.
5864         * tests/test-gc.c: Likewise.
5865         * tests/test-getcwd.c: Likewise.
5866         * tests/test-link.c: Likewise.
5867         * tests/test-link.h: Likewise.
5868         * tests/test-lutimens.h: Likewise.
5869         * tests/test-md2.c: Likewise.
5870         * tests/test-md4.c: Likewise.
5871         * tests/test-mkdir.h: Likewise.
5872         * tests/test-rename.c: Likewise.
5873         * tests/test-rename.h: Likewise.
5874         * tests/test-safe-alloc.c: Likewise.
5875         * tests/test-utimens-common.h: Likewise.
5876         * tests/test-utimens.h: Likewise.
5877
5878         maint: sync license texts
5879         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5880         * doc/gpl-3.0.texi: Revert copyright year update.
5881         * doc/lgpl-3.0.texi: Likewise.
5882
5883 2009-12-29  Jim Meyering  <meyering@redhat.com>
5884
5885         update nearly all FSF copyright year lists to include 2009
5886         The files named by the following are exempted:
5887             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5888               test -f "$dst" && { echo "$dst"; continue; }
5889               test -d "$dst" || continue
5890               echo "$dst"/$(basename "$src")
5891             done > exempt
5892             git ls-files tests/unictype >> exempt
5893         In the remaining files, convert to all-interval notation if
5894         - there is already at least one year interval like 2000-2003
5895         - the file is maintained by me
5896         - the file is in lib/uni*/, where that style already prevails
5897         Otherwise, use update-copyright's default.
5898
5899 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5900         and Eric Blake  <ebb9@byu.net>
5901
5902         tests: don't require debug system() to pass
5903         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5904         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5905         * tests/test-unlink.h (test_unlink_func): Likewise.
5906         * tests/test-fstatat.c (main): ...into callers.
5907         * tests/test-lstat.c (main): Likewise.
5908         * tests/test-rmdir.c (main): Likewise.
5909         * tests/test-unlink.c (main): Likewise.
5910         * tests/test-unlinkat.c (main): Likewise.
5911         * tests/test-areadlink-with-size.c (main): Don't require a
5912         debug-only system call to pass, aiding cross-testing to mingw.
5913         * tests/test-areadlink.c (main): Likewise.
5914         * tests/test-areadlinkat-with-size.c (main): Likewise.
5915         * tests/test-areadlinkat.c (main): Likewise.
5916         * tests/test-canonicalize-lgpl.c (main): Likewise.
5917         * tests/test-canonicalize.c (main): Likewise.
5918         * tests/test-chown.c (main): Likewise.
5919         * tests/test-fchownat.c (main): Likewise.
5920         * tests/test-lchown.c (main): Likewise.
5921         * tests/test-fdutimensat.c (main): Likewise.
5922         * tests/test-futimens.c (main): Likewise.
5923         * tests/test-link.c (main): Likewise.
5924         * tests/test-linkat.c (main): Likewise.
5925         * tests/test-mkdir.c (main): Likewise.
5926         * tests/test-mkdirat.c (main): Likewise.
5927         * tests/test-mkfifo.c (main): Likewise.
5928         * tests/test-mkfifoat.c (main): Likewise.
5929         * tests/test-mknod.c (main): Likewise.
5930         * tests/test-readlink.c (main): Likewise.
5931         * tests/test-remove.c (main): Likewise.
5932         * tests/test-rename.c (main): Likewise.
5933         * tests/test-renameat.c (main): Likewise.
5934         * tests/test-symlink.c (main): Likewise.
5935         * tests/test-symlinkat.c (main): Likewise.
5936         * tests/test-utimens.c (main): Likewise.
5937         * tests/test-utimensat.c (main): Likewise.
5938
5939 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5940
5941         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5942         on $(UNUSED_PARAMETER_H) to avoid build failure.
5943
5944 2009-12-28  Jim Meyering  <meyering@redhat.com>
5945
5946         update-copyright: you may specify a max. line length other than 72
5947         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5948
5949         maint: use consistent FSF copyright line syntax
5950         * lib/posixtm.c: Add missing comma in FSF copyright line.
5951         * lib/posixtm.h: Likewise.
5952         * lib/getugroups.c: Add missing ", Inc.".
5953
5954         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5955         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5956         FSF copyright line.  Remove trailing blanks.
5957
5958 2009-12-28  Eric Blake  <ebb9@byu.net>
5959
5960         test-dup2: reduce dependencies
5961         * modules/cloexec (Configure.ac): Set witness.
5962         * modules/dup2-tests (Depends-on): Drop cloexec.
5963         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5964         not present.
5965         Suggested by Bruno Haible.
5966
5967 2009-12-26  Bruno Haible  <bruno@clisp.org>
5968
5969         Remove an unneeded dependency.
5970         * modules/fseterr (Depends-on): Remove dup2.
5971
5972 2009-12-26  Eric Blake  <ebb9@byu.net>
5973
5974         tests: use macros.h in more places
5975         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5976         (ASSERT_STREAM): Provide default of stderr.
5977         * tests/test-dirent-safer.c: Include macros.h, using alternate
5978         stream for assertions.
5979         * tests/test-dup-safer.c: Likewise.
5980         * tests/test-freopen-safer.c: Likewise.
5981         * tests/test-getopt.c: Likewise.
5982         * tests/test-openat-safer.c: Likewise.
5983         * tests/test-pipe.c: Likewise.
5984         * tests/test-popen-safer.c: Likewise.
5985         * modules/dirent-safer-tests (Files): Include macros.h.
5986         * modules/unistd-safer-tests (Files): Likewise.
5987         * modules/freopen-safer-tests (Files): Likewise.
5988         * modules/getopt-posix-tests (Files): Likewise.
5989         * modules/openat-safer-tests (Files): Likewise.
5990         * modules/pipe-tests (Files): Likewise.
5991
5992 2009-12-26  Bruno Haible  <bruno@clisp.org>
5993
5994         javacomp: Portability fix.
5995         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5996         that it also works on Solaris.
5997
5998 2009-12-26  Bruno Haible  <bruno@clisp.org>
5999
6000         localename: Fix storage allocation of gl_locale_name_thread's result.
6001         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
6002         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
6003         all platforms that have 'uselocale'.
6004         (gl_locale_name_thread_unsafe): New function, extracted from
6005         gl_locale_name_thread.
6006         (gl_locale_name_thread): Call struniq on all platforms that have
6007         'uselocale'.
6008         * tests/test-localename.c (test_locale_name_thread): Check that the
6009         resulting strings are permanently allocated.
6010         * modules/localename-tests (Depends-on): Add strdup.
6011
6012 2009-12-26  Bruno Haible  <bruno@clisp.org>
6013
6014         * tests/test-localename.c (categories): Fill in the strings.
6015
6016 2009-12-26  Jim Meyering  <meyering@redhat.com>
6017
6018         isdir: complete the removal of m4/isdir.m4
6019         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
6020
6021         isdir: clean up, since at least grep still uses it
6022         * lib/isdir.c: Include "isdir.h".
6023         (S_ISDIR): Remove now-unneeded definition.
6024         * modules/isdir (Files): Add lib/isdir.h.
6025         * lib/isdir.h: New file, with declaration.
6026         * m4/isdir.m4: Remove file -- unneeded.
6027
6028 2009-12-25  Bruno Haible  <bruno@clisp.org>
6029
6030         selinux-h: Make generated .h files standalone.
6031         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
6032         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
6033         * lib/se-selinux.in.h: Likewise.
6034         * modules/selinux-h (Depends-on): Add unused-parameter.
6035         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
6036         selinux/selinux.h and selinux/context.h.
6037         Suggested by Eric Blake.
6038
6039 2009-12-25  Bruno Haible  <bruno@clisp.org>
6040
6041         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
6042         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
6043         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
6044         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
6045         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
6046
6047 2009-12-24  Bruno Haible  <bruno@clisp.org>
6048
6049         openat: Fix warning.
6050         * lib/openat-proc.c: Include <unistd.h>.
6051
6052 2009-12-24  Bruno Haible  <bruno@clisp.org>
6053
6054         New module 'unused-parameter'.
6055         * build-aux/unused-parameter.h: New file, extracted from earlier
6056         gnulib-common.m4.
6057         * modules/unused-parameter: New file.
6058         * lib/unistr.h: Include unused-parameter.h.
6059         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
6060         _GL_UNUSED.
6061         * modules/unistr/base (Depends-on): Add unused-parameter.
6062
6063 2009-12-24  Bruno Haible  <bruno@clisp.org>
6064
6065         Add missing dependencies to 'extensions' module.
6066         * m4/extensions.m4: Add comment.
6067         * modules/accept4 (Depends-on): Add extensions.
6068         * modules/dup3 (Depends-on): Likewise.
6069         * modules/fcntl (Depends-on): Likewise.
6070         * modules/futimens (Depends-on): Likewise.
6071         * modules/mknod (Depends-on): Likewise.
6072         * modules/pipe2 (Depends-on): Likewise.
6073         * modules/stat-time (Depends-on): Likewise.
6074         * modules/strcasestr-simple (Depends-on): Likewise.
6075         * modules/strsignal (Depends-on): Likewise.
6076         * modules/utimensat (Depends-on): Likewise.
6077         * modules/localcharset (Depends-on): Likewise. Needed because of
6078         gl_FCNTL_O_FLAGS.
6079         * modules/wcrtomb (Depends-on): Likewise. Needed because of
6080         AC_TYPE_MBSTATE_T.
6081         * modules/wcsnrtombs (Depends-on): Likewise.
6082         * modules/wcsrtombs (Depends-on): Likewise.
6083
6084 2009-12-24  Bruno Haible  <bruno@clisp.org>
6085
6086         binary-io: Avoid gcc warning due to SET_BINARY.
6087         * lib/binary-io.h (SET_BINARY): Cast the result to void.
6088         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
6089
6090 2009-12-24  Bruno Haible  <bruno@clisp.org>
6091
6092         Avoid future namespace pollution on glibc systems.
6093         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
6094         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
6095         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
6096         glibc systems.
6097
6098 2009-12-24  Bruno Haible  <bruno@clisp.org>
6099
6100         Refactor common macros used in tests.
6101         * tests/macros.h: New file.
6102         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
6103         and/or <stdlib.h>, if appropriate.
6104         (ASSERT, SIZEOF): Remove macros.
6105         * tests/test-areadlink-with-size.c: Likewise.
6106         * tests/test-areadlinkat.c: Likewise.
6107         * tests/test-areadlinkat-with-size.c: Likewise.
6108         * tests/test-argmatch.c: Likewise.
6109         * tests/test-argv-iter.c: Likewise.
6110         * tests/test-array-mergesort.c: Likewise.
6111         * tests/test-array_list.c: Likewise.
6112         * tests/test-array_oset.c: Likewise.
6113         * tests/test-avltree_list.c: Likewise.
6114         * tests/test-avltree_oset.c: Likewise.
6115         * tests/test-avltreehash_list.c: Likewise.
6116         * tests/test-base64.c: Likewise.
6117         * tests/test-binary-io.c: Likewise.
6118         * tests/test-bitrotate.c: Likewise.
6119         * tests/test-btowc.c: Likewise.
6120         * tests/test-byteswap.c: Likewise.
6121         * tests/test-c-ctype.c: Likewise.
6122         * tests/test-c-stack.c: Likewise.
6123         * tests/test-c-strcasecmp.c: Likewise.
6124         * tests/test-c-strcasestr.c: Likewise.
6125         * tests/test-c-strncasecmp.c: Likewise.
6126         * tests/test-c-strstr.c: Likewise.
6127         * tests/test-canonicalize-lgpl.c: Likewise.
6128         * tests/test-canonicalize.c: Likewise.
6129         * tests/test-carray_list.c: Likewise.
6130         * tests/test-ceilf1.c: Likewise.
6131         * tests/test-ceilf2.c: Likewise.
6132         * tests/test-ceill.c: Likewise.
6133         * tests/test-chown.c: Likewise.
6134         * tests/test-cloexec.c: Likewise.
6135         * tests/test-copy-acl.c: Likewise.
6136         * tests/test-copy-file.c: Likewise.
6137         * tests/test-count-one-bits.c: Likewise.
6138         * tests/test-dprintf-posix.c: Likewise.
6139         * tests/test-dup2.c: Likewise.
6140         * tests/test-dup3.c: Likewise.
6141         * tests/test-duplocale.c: Likewise.
6142         * tests/test-fbufmode.c: Likewise.
6143         * tests/test-fchdir.c: Likewise.
6144         * tests/test-fchownat.c: Likewise.
6145         * tests/test-fcntl-safer.c: Likewise.
6146         * tests/test-fcntl.c: Likewise.
6147         * tests/test-fdopendir.c: Likewise.
6148         * tests/test-fdutimensat.c: Likewise.
6149         * tests/test-fflush2.c: Likewise.
6150         * tests/test-file-has-acl.c: Likewise.
6151         * tests/test-filevercmp.c: Likewise.
6152         * tests/test-flock.c: Likewise.
6153         * tests/test-floorf1.c: Likewise.
6154         * tests/test-floorf2.c: Likewise.
6155         * tests/test-floorl.c: Likewise.
6156         * tests/test-fnmatch.c: Likewise.
6157         * tests/test-fopen.h: Likewise.
6158         * tests/test-fpending.c: Likewise.
6159         * tests/test-fprintf-posix.c: Likewise.
6160         * tests/test-fpurge.c: Likewise.
6161         * tests/test-freadable.c: Likewise.
6162         * tests/test-freadahead.c: Likewise.
6163         * tests/test-freading.c: Likewise.
6164         * tests/test-freadptr.c: Likewise.
6165         * tests/test-freadptr2.c: Likewise.
6166         * tests/test-freadseek.c: Likewise.
6167         * tests/test-freopen.c: Likewise.
6168         * tests/test-frexp.c: Likewise.
6169         * tests/test-frexpl.c: Likewise.
6170         * tests/test-fseek.c: Likewise.
6171         * tests/test-fseeko.c: Likewise.
6172         * tests/test-fstatat.c: Likewise.
6173         * tests/test-fstrcmp.c: Likewise.
6174         * tests/test-fsync.c: Likewise.
6175         * tests/test-ftell.c: Likewise.
6176         * tests/test-ftello.c: Likewise.
6177         * tests/test-func.c: Likewise.
6178         * tests/test-futimens.c: Likewise.
6179         * tests/test-fwritable.c: Likewise.
6180         * tests/test-fwriting.c: Likewise.
6181         * tests/test-getcwd.c: Likewise.
6182         * tests/test-getdate.c: Likewise.
6183         * tests/test-getdelim.c: Likewise.
6184         * tests/test-getdtablesize.c: Likewise.
6185         * tests/test-getgroups.c: Likewise.
6186         * tests/test-getline.c: Likewise.
6187         * tests/test-getndelim2.c: Likewise.
6188         * tests/test-glob.c: Likewise.
6189         * tests/test-hash.c: Likewise.
6190         * tests/test-i-ring.c: Likewise.
6191         * tests/test-iconv-utf.c: Likewise.
6192         * tests/test-iconv.c: Likewise.
6193         * tests/test-idpriv-drop.c: Likewise.
6194         * tests/test-idpriv-droptemp.c: Likewise.
6195         * tests/test-inet_ntop.c: Likewise.
6196         * tests/test-inet_pton.c: Likewise.
6197         * tests/test-isblank.c: Likewise.
6198         * tests/test-isfinite.c: Likewise.
6199         * tests/test-isinf.c: Likewise.
6200         * tests/test-isnan.c: Likewise.
6201         * tests/test-isnand.h: Likewise.
6202         * tests/test-isnanf.h: Likewise.
6203         * tests/test-isnanl.h: Likewise.
6204         * tests/test-lchown.c: Likewise.
6205         * tests/test-ldexpl.c: Likewise.
6206         * tests/test-link.c: Likewise.
6207         * tests/test-linkat.c: Likewise.
6208         * tests/test-linked_list.c: Likewise.
6209         * tests/test-linkedhash_list.c: Likewise.
6210         * tests/test-localename.c: Likewise.
6211         * tests/test-lseek.c: Likewise.
6212         * tests/test-lstat.c: Likewise.
6213         * tests/test-mbmemcasecmp.c: Likewise.
6214         * tests/test-mbmemcasecoll.c: Likewise.
6215         * tests/test-mbrtowc.c: Likewise.
6216         * tests/test-mbscasecmp.c: Likewise.
6217         * tests/test-mbscasestr1.c: Likewise.
6218         * tests/test-mbscasestr2.c: Likewise.
6219         * tests/test-mbscasestr3.c: Likewise.
6220         * tests/test-mbscasestr4.c: Likewise.
6221         * tests/test-mbschr.c: Likewise.
6222         * tests/test-mbscspn.c: Likewise.
6223         * tests/test-mbsinit.c: Likewise.
6224         * tests/test-mbsncasecmp.c: Likewise.
6225         * tests/test-mbsnrtowcs.c: Likewise.
6226         * tests/test-mbspbrk.c: Likewise.
6227         * tests/test-mbspcasecmp.c: Likewise.
6228         * tests/test-mbsrchr.c: Likewise.
6229         * tests/test-mbsrtowcs.c: Likewise.
6230         * tests/test-mbsspn.c: Likewise.
6231         * tests/test-mbsstr1.c: Likewise.
6232         * tests/test-mbsstr2.c: Likewise.
6233         * tests/test-mbsstr3.c: Likewise.
6234         * tests/test-memchr.c: Likewise.
6235         * tests/test-memchr2.c: Likewise.
6236         * tests/test-memcmp.c: Likewise.
6237         * tests/test-memmem.c: Likewise.
6238         * tests/test-memrchr.c: Likewise.
6239         * tests/test-mkdir.c: Likewise.
6240         * tests/test-mkdirat.c: Likewise.
6241         * tests/test-mkfifo.c: Likewise.
6242         * tests/test-mkfifoat.c: Likewise.
6243         * tests/test-mknod.c: Likewise.
6244         * tests/test-nanosleep.c: Likewise.
6245         * tests/test-nl_langinfo.c: Likewise.
6246         * tests/test-obstack-printf.c: Likewise.
6247         * tests/test-open.c: Likewise.
6248         * tests/test-openat.c: Likewise.
6249         * tests/test-pipe-filter-gi1.c: Likewise.
6250         * tests/test-pipe-filter-gi2-main.c: Likewise.
6251         * tests/test-pipe-filter-ii1.c: Likewise.
6252         * tests/test-pipe-filter-ii2-main.c: Likewise.
6253         * tests/test-pipe2.c: Likewise.
6254         * tests/test-popen.h: Likewise.
6255         * tests/test-posixtm.c: Likewise.
6256         * tests/test-pread.c: Likewise.
6257         * tests/test-printf-frexp.c: Likewise.
6258         * tests/test-printf-frexpl.c: Likewise.
6259         * tests/test-printf-posix.c: Likewise.
6260         * tests/test-priv-set.c: Likewise.
6261         * tests/test-quotearg.c: Likewise.
6262         * tests/test-random_r.c: Likewise.
6263         * tests/test-rawmemchr.c: Likewise.
6264         * tests/test-rbtree_list.c: Likewise.
6265         * tests/test-rbtree_oset.c: Likewise.
6266         * tests/test-rbtreehash_list.c: Likewise.
6267         * tests/test-readlink.c: Likewise.
6268         * tests/test-remove.c: Likewise.
6269         * tests/test-rename.c: Likewise.
6270         * tests/test-renameat.c: Likewise.
6271         * tests/test-rmdir.c: Likewise.
6272         * tests/test-round1.c: Likewise.
6273         * tests/test-roundf1.c: Likewise.
6274         * tests/test-roundl.c: Likewise.
6275         * tests/test-safe-alloc.c: Likewise.
6276         * tests/test-sameacls.c: Likewise.
6277         * tests/test-set-mode-acl.c: Likewise.
6278         * tests/test-setenv.c: Likewise.
6279         * tests/test-sigaction.c: Likewise.
6280         * tests/test-signbit.c: Likewise.
6281         * tests/test-sleep.c: Likewise.
6282         * tests/test-snprintf-posix.c: Likewise.
6283         * tests/test-snprintf.c: Likewise.
6284         * tests/test-sprintf-posix.c: Likewise.
6285         * tests/test-stat-time.c: Likewise.
6286         * tests/test-stat.c: Likewise.
6287         * tests/test-strcasestr.c: Likewise.
6288         * tests/test-strchrnul.c: Likewise.
6289         * tests/test-strerror.c: Likewise.
6290         * tests/test-striconv.c: Likewise.
6291         * tests/test-striconveh.c: Likewise.
6292         * tests/test-striconveha.c: Likewise.
6293         * tests/test-strsignal.c: Likewise.
6294         * tests/test-strstr.c: Likewise.
6295         * tests/test-strtod.c: Likewise.
6296         * tests/test-strverscmp.c: Likewise.
6297         * tests/test-symlink.c: Likewise.
6298         * tests/test-symlinkat.c: Likewise.
6299         * tests/test-trunc1.c: Likewise.
6300         * tests/test-trunc2.c: Likewise.
6301         * tests/test-truncf1.c: Likewise.
6302         * tests/test-truncf2.c: Likewise.
6303         * tests/test-truncl.c: Likewise.
6304         * tests/test-uname.c: Likewise.
6305         * tests/test-unlink.c: Likewise.
6306         * tests/test-unlinkat.c: Likewise.
6307         * tests/test-unsetenv.c: Likewise.
6308         * tests/test-usleep.c: Likewise.
6309         * tests/test-utimens.c: Likewise.
6310         * tests/test-utimensat.c: Likewise.
6311         * tests/test-vasnprintf-posix.c: Likewise.
6312         * tests/test-vasnprintf-posix2.c: Likewise.
6313         * tests/test-vasnprintf.c: Likewise.
6314         * tests/test-vasprintf-posix.c: Likewise.
6315         * tests/test-vasprintf.c: Likewise.
6316         * tests/test-vdprintf-posix.c: Likewise.
6317         * tests/test-vfprintf-posix.c: Likewise.
6318         * tests/test-vprintf-posix.c: Likewise.
6319         * tests/test-vsnprintf-posix.c: Likewise.
6320         * tests/test-vsnprintf.c: Likewise.
6321         * tests/test-vsprintf-posix.c: Likewise.
6322         * tests/test-wcrtomb.c: Likewise.
6323         * tests/test-wcsnrtombs.c: Likewise.
6324         * tests/test-wcsrtombs.c: Likewise.
6325         * tests/test-wctype.c: Likewise.
6326         * tests/test-wcwidth.c: Likewise.
6327         * tests/test-xfprintf-posix.c: Likewise.
6328         * tests/test-xmemdup0.c: Likewise.
6329         * tests/test-xprintf-posix.c: Likewise.
6330         * tests/test-xvasprintf.c: Likewise.
6331         * tests/unicase/test-locale-language.c: Likewise.
6332         * tests/unicase/test-mapping-part1.h: Likewise.
6333         * tests/unicase/test-predicate-part1.h: Likewise.
6334         * tests/unicase/test-u8-casecmp.c: Likewise.
6335         * tests/unicase/test-u8-casecoll.c: Likewise.
6336         * tests/unicase/test-u8-casefold.c: Likewise.
6337         * tests/unicase/test-u8-is-cased.c: Likewise.
6338         * tests/unicase/test-u8-is-casefolded.c: Likewise.
6339         * tests/unicase/test-u8-is-lowercase.c: Likewise.
6340         * tests/unicase/test-u8-is-titlecase.c: Likewise.
6341         * tests/unicase/test-u8-is-uppercase.c: Likewise.
6342         * tests/unicase/test-u8-tolower.c: Likewise.
6343         * tests/unicase/test-u8-totitle.c: Likewise.
6344         * tests/unicase/test-u8-toupper.c: Likewise.
6345         * tests/unicase/test-u16-casecmp.c: Likewise.
6346         * tests/unicase/test-u16-casecoll.c: Likewise.
6347         * tests/unicase/test-u16-casefold.c: Likewise.
6348         * tests/unicase/test-u16-is-cased.c: Likewise.
6349         * tests/unicase/test-u16-is-casefolded.c: Likewise.
6350         * tests/unicase/test-u16-is-lowercase.c: Likewise.
6351         * tests/unicase/test-u16-is-titlecase.c: Likewise.
6352         * tests/unicase/test-u16-is-uppercase.c: Likewise.
6353         * tests/unicase/test-u16-tolower.c: Likewise.
6354         * tests/unicase/test-u16-totitle.c: Likewise.
6355         * tests/unicase/test-u16-toupper.c: Likewise.
6356         * tests/unicase/test-u32-casecmp.c: Likewise.
6357         * tests/unicase/test-u32-casecoll.c: Likewise.
6358         * tests/unicase/test-u32-casefold.c: Likewise.
6359         * tests/unicase/test-u32-is-cased.c: Likewise.
6360         * tests/unicase/test-u32-is-casefolded.c: Likewise.
6361         * tests/unicase/test-u32-is-lowercase.c: Likewise.
6362         * tests/unicase/test-u32-is-titlecase.c: Likewise.
6363         * tests/unicase/test-u32-is-uppercase.c: Likewise.
6364         * tests/unicase/test-u32-tolower.c: Likewise.
6365         * tests/unicase/test-u32-totitle.c: Likewise.
6366         * tests/unicase/test-u32-toupper.c: Likewise.
6367         * tests/unicase/test-ulc-casecmp.c: Likewise.
6368         * tests/unicase/test-ulc-casecoll.c: Likewise.
6369         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
6370         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
6371         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
6372         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
6373         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
6374         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
6375         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
6376         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
6377         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
6378         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
6379         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
6380         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
6381         * tests/unictype/test-bidi_byname.c: Likewise.
6382         * tests/unictype/test-bidi_name.c: Likewise.
6383         * tests/unictype/test-bidi_of.c: Likewise.
6384         * tests/unictype/test-bidi_test.c: Likewise.
6385         * tests/unictype/test-block_list.c: Likewise.
6386         * tests/unictype/test-block_of.c: Likewise.
6387         * tests/unictype/test-block_test.c: Likewise.
6388         * tests/unictype/test-categ_and.c: Likewise.
6389         * tests/unictype/test-categ_and_not.c: Likewise.
6390         * tests/unictype/test-categ_byname.c: Likewise.
6391         * tests/unictype/test-categ_name.c: Likewise.
6392         * tests/unictype/test-categ_none.c: Likewise.
6393         * tests/unictype/test-categ_of.c: Likewise.
6394         * tests/unictype/test-categ_or.c: Likewise.
6395         * tests/unictype/test-categ_test_withtable.c: Likewise.
6396         * tests/unictype/test-combining.c: Likewise.
6397         * tests/unictype/test-decdigit.c: Likewise.
6398         * tests/unictype/test-digit.c: Likewise.
6399         * tests/unictype/test-mirror.c: Likewise.
6400         * tests/unictype/test-numeric.c: Likewise.
6401         * tests/unictype/test-pr_byname.c: Likewise.
6402         * tests/unictype/test-pr_test.c: Likewise.
6403         * tests/unictype/test-predicate-part1.h: Likewise.
6404         * tests/unictype/test-scripts.c: Likewise.
6405         * tests/unictype/test-sy_c_ident.c: Likewise.
6406         * tests/unictype/test-sy_java_ident.c: Likewise.
6407         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
6408         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
6409         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
6410         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
6411         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
6412         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
6413         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
6414         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
6415         * tests/uninorm/test-canonical-decomposition.c: Likewise.
6416         * tests/uninorm/test-compat-decomposition.c: Likewise.
6417         * tests/uninorm/test-composition.c: Likewise.
6418         * tests/uninorm/test-decomposing-form.c: Likewise.
6419         * tests/uninorm/test-decomposition.c: Likewise.
6420         * tests/uninorm/test-u8-nfc.c: Likewise.
6421         * tests/uninorm/test-u8-nfd.c: Likewise.
6422         * tests/uninorm/test-u8-nfkc.c: Likewise.
6423         * tests/uninorm/test-u8-nfkd.c: Likewise.
6424         * tests/uninorm/test-u8-normcmp.c: Likewise.
6425         * tests/uninorm/test-u8-normcoll.c: Likewise.
6426         * tests/uninorm/test-u16-nfc.c: Likewise.
6427         * tests/uninorm/test-u16-nfd.c: Likewise.
6428         * tests/uninorm/test-u16-nfkc.c: Likewise.
6429         * tests/uninorm/test-u16-nfkd.c: Likewise.
6430         * tests/uninorm/test-u16-normcmp.c: Likewise.
6431         * tests/uninorm/test-u16-normcoll.c: Likewise.
6432         * tests/uninorm/test-u32-nfc.c: Likewise.
6433         * tests/uninorm/test-u32-nfd.c: Likewise.
6434         * tests/uninorm/test-u32-nfkc.c: Likewise.
6435         * tests/uninorm/test-u32-nfkd.c: Likewise.
6436         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6437         * tests/uninorm/test-u32-normcmp.c: Likewise.
6438         * tests/uninorm/test-u32-normcoll.c: Likewise.
6439         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
6440         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
6441         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
6442         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
6443         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
6444         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
6445         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
6446         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
6447         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
6448         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
6449         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
6450         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
6451         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
6452         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
6453         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
6454         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
6455         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
6456         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
6457         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
6458         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
6459         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
6460         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
6461         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
6462         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
6463         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
6464         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
6465         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
6466         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
6467         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
6468         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
6469         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
6470         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
6471         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
6472         * tests/uniwidth/test-u8-strwidth.c: Likewise.
6473         * tests/uniwidth/test-u8-width.c: Likewise.
6474         * tests/uniwidth/test-u16-strwidth.c: Likewise.
6475         * tests/uniwidth/test-u16-width.c: Likewise.
6476         * tests/uniwidth/test-u32-strwidth.c: Likewise.
6477         * tests/uniwidth/test-u32-width.c: Likewise.
6478         * tests/uniwidth/test-uc_width.c: Likewise.
6479         * tests/uniwidth/test-uc_width2.c: Likewise.
6480         * modules/acl-tests (Files): Add tests/macros.h.
6481         * modules/areadlink-tests (Files): Likewise.
6482         * modules/areadlink-with-size-tests (Files): Likewise.
6483         * modules/areadlinkat-tests (Files): Likewise.
6484         * modules/areadlinkat-with-size-tests (Files): Likewise.
6485         * modules/argmatch-tests (Files): Likewise.
6486         * modules/argv-iter-tests (Files): Likewise.
6487         * modules/array-list-tests (Files): Likewise.
6488         * modules/array-mergesort-tests (Files): Likewise.
6489         * modules/array-oset-tests (Files): Likewise.
6490         * modules/avltree-list-tests (Files): Likewise.
6491         * modules/avltree-oset-tests (Files): Likewise.
6492         * modules/avltreehash-list-tests (Files): Likewise.
6493         * modules/base64-tests (Files): Likewise.
6494         * modules/binary-io-tests (Files): Likewise.
6495         * modules/bitrotate-tests (Files): Likewise.
6496         * modules/btowc-tests (Files): Likewise.
6497         * modules/byteswap-tests (Files): Likewise.
6498         * modules/c-ctype-tests (Files): Likewise.
6499         * modules/c-stack-tests (Files): Likewise.
6500         * modules/c-strcase-tests (Files): Likewise.
6501         * modules/c-strcasestr-tests (Files): Likewise.
6502         * modules/c-strstr-tests (Files): Likewise.
6503         * modules/canonicalize-lgpl-tests (Files): Likewise.
6504         * modules/canonicalize-tests (Files): Likewise.
6505         * modules/carray-list-tests (Files): Likewise.
6506         * modules/ceilf-tests (Files): Likewise.
6507         * modules/ceill-tests (Files): Likewise.
6508         * modules/chown-tests (Files): Likewise.
6509         * modules/cloexec-tests (Files): Likewise.
6510         * modules/copy-file-tests (Files): Likewise.
6511         * modules/count-one-bits-tests (Files): Likewise.
6512         * modules/dprintf-posix-tests (Files): Likewise.
6513         * modules/dup2-tests (Files): Likewise.
6514         * modules/dup3-tests (Files): Likewise.
6515         * modules/duplocale-tests (Files): Likewise.
6516         * modules/fbufmode-tests (Files): Likewise.
6517         * modules/fchdir-tests (Files): Likewise.
6518         * modules/fcntl-safer-tests (Files): Likewise.
6519         * modules/fcntl-tests (Files): Likewise.
6520         * modules/fdopendir-tests (Files): Likewise.
6521         * modules/fdutimensat-tests (Files): Likewise.
6522         * modules/fflush-tests (Files): Likewise.
6523         * modules/filevercmp-tests (Files): Likewise.
6524         * modules/flock-tests (Files): Likewise.
6525         * modules/floorf-tests (Files): Likewise.
6526         * modules/floorl-tests (Files): Likewise.
6527         * modules/fnmatch-tests (Files): Likewise.
6528         * modules/fopen-safer-tests (Files): Likewise.
6529         * modules/fopen-tests (Files): Likewise.
6530         * modules/fpending-tests (Files): Likewise.
6531         * modules/fprintf-posix-tests (Files): Likewise.
6532         * modules/fpurge-tests (Files): Likewise.
6533         * modules/freadable-tests (Files): Likewise.
6534         * modules/freadahead-tests (Files): Likewise.
6535         * modules/freading-tests (Files): Likewise.
6536         * modules/freadptr-tests (Files): Likewise.
6537         * modules/freadseek-tests (Files): Likewise.
6538         * modules/freopen-tests (Files): Likewise.
6539         * modules/frexp-nolibm-tests (Files): Likewise.
6540         * modules/frexp-tests (Files): Likewise.
6541         * modules/frexpl-nolibm-tests (Files): Likewise.
6542         * modules/frexpl-tests (Files): Likewise.
6543         * modules/fseek-tests (Files): Likewise.
6544         * modules/fseeko-tests (Files): Likewise.
6545         * modules/fstrcmp-tests (Files): Likewise.
6546         * modules/fsync-tests (Files): Likewise.
6547         * modules/ftell-tests (Files): Likewise.
6548         * modules/ftello-tests (Files): Likewise.
6549         * modules/func-tests (Files): Likewise.
6550         * modules/futimens-tests (Files): Likewise.
6551         * modules/fwritable-tests (Files): Likewise.
6552         * modules/fwriting-tests (Files): Likewise.
6553         * modules/getcwd-tests (Files): Likewise.
6554         * modules/getdate-tests (Files): Likewise.
6555         * modules/getdelim-tests (Files): Likewise.
6556         * modules/getdtablesize-tests (Files): Likewise.
6557         * modules/getgroups-tests (Files): Likewise.
6558         * modules/getline-tests (Files): Likewise.
6559         * modules/getndelim2-tests (Files): Likewise.
6560         * modules/glob-tests (Files): Likewise.
6561         * modules/hash-tests (Files): Likewise.
6562         * modules/i-ring-tests (Files): Likewise.
6563         * modules/iconv-tests (Files): Likewise.
6564         * modules/iconv_open-utf-tests (Files): Likewise.
6565         * modules/idpriv-drop-tests (Files): Likewise.
6566         * modules/idpriv-droptemp-tests (Files): Likewise.
6567         * modules/inet_ntop-tests (Files): Likewise.
6568         * modules/inet_pton-tests (Files): Likewise.
6569         * modules/isblank-tests (Files): Likewise.
6570         * modules/isfinite-tests (Files): Likewise.
6571         * modules/isinf-tests (Files): Likewise.
6572         * modules/isnan-tests (Files): Likewise.
6573         * modules/isnand-nolibm-tests (Files): Likewise.
6574         * modules/isnand-tests (Files): Likewise.
6575         * modules/isnanf-nolibm-tests (Files): Likewise.
6576         * modules/isnanf-tests (Files): Likewise.
6577         * modules/isnanl-nolibm-tests (Files): Likewise.
6578         * modules/isnanl-tests (Files): Likewise.
6579         * modules/lchown-tests (Files): Likewise.
6580         * modules/ldexpl-tests (Files): Likewise.
6581         * modules/link-tests (Files): Likewise.
6582         * modules/linkat-tests (Files): Likewise.
6583         * modules/linked-list-tests (Files): Likewise.
6584         * modules/linkedhash-list-tests (Files): Likewise.
6585         * modules/localename-tests (Files): Likewise.
6586         * modules/lseek-tests (Files): Likewise.
6587         * modules/lstat-tests (Files): Likewise.
6588         * modules/mbmemcasecmp-tests (Files): Likewise.
6589         * modules/mbmemcasecoll-tests (Files): Likewise.
6590         * modules/mbrtowc-tests (Files): Likewise.
6591         * modules/mbscasecmp-tests (Files): Likewise.
6592         * modules/mbscasestr-tests (Files): Likewise.
6593         * modules/mbschr-tests (Files): Likewise.
6594         * modules/mbscspn-tests (Files): Likewise.
6595         * modules/mbsinit-tests (Files): Likewise.
6596         * modules/mbsncasecmp-tests (Files): Likewise.
6597         * modules/mbsnrtowcs-tests (Files): Likewise.
6598         * modules/mbspbrk-tests (Files): Likewise.
6599         * modules/mbspcasecmp-tests (Files): Likewise.
6600         * modules/mbsrchr-tests (Files): Likewise.
6601         * modules/mbsrtowcs-tests (Files): Likewise.
6602         * modules/mbsspn-tests (Files): Likewise.
6603         * modules/mbsstr-tests (Files): Likewise.
6604         * modules/memchr-tests (Files): Likewise.
6605         * modules/memchr2-tests (Files): Likewise.
6606         * modules/memcmp-tests (Files): Likewise.
6607         * modules/memmem-tests (Files): Likewise.
6608         * modules/memrchr-tests (Files): Likewise.
6609         * modules/mkdir-tests (Files): Likewise.
6610         * modules/mkfifo-tests (Files): Likewise.
6611         * modules/mkfifoat-tests (Files): Likewise.
6612         * modules/mknod-tests (Files): Likewise.
6613         * modules/nanosleep-tests (Files): Likewise.
6614         * modules/nl_langinfo-tests (Files): Likewise.
6615         * modules/obstack-printf-tests (Files): Likewise.
6616         * modules/open-tests (Files): Likewise.
6617         * modules/openat-tests (Files): Likewise.
6618         * modules/pipe-filter-gi-tests (Files): Likewise.
6619         * modules/pipe-filter-ii-tests (Files): Likewise.
6620         * modules/pipe2-tests (Files): Likewise.
6621         * modules/popen-safer-tests (Files): Likewise.
6622         * modules/popen-tests (Files): Likewise.
6623         * modules/posixtm-tests (Files): Likewise.
6624         * modules/pread-tests (Files): Likewise.
6625         * modules/printf-frexp-tests (Files): Likewise.
6626         * modules/printf-frexpl-tests (Files): Likewise.
6627         * modules/printf-posix-tests (Files): Likewise.
6628         * modules/priv-set-tests (Files): Likewise.
6629         * modules/quotearg-tests (Files): Likewise.
6630         * modules/random_r-tests (Files): Likewise.
6631         * modules/rawmemchr-tests (Files): Likewise.
6632         * modules/rbtree-list-tests (Files): Likewise.
6633         * modules/rbtree-oset-tests (Files): Likewise.
6634         * modules/rbtreehash-list-tests (Files): Likewise.
6635         * modules/readlink-tests (Files): Likewise.
6636         * modules/remove-tests (Files): Likewise.
6637         * modules/rename-tests (Files): Likewise.
6638         * modules/renameat-tests (Files): Likewise.
6639         * modules/rmdir-tests (Files): Likewise.
6640         * modules/round-tests (Files): Likewise.
6641         * modules/roundf-tests (Files): Likewise.
6642         * modules/roundl-tests (Files): Likewise.
6643         * modules/safe-alloc-tests (Files): Likewise.
6644         * modules/setenv-tests (Files): Likewise.
6645         * modules/sigaction-tests (Files): Likewise.
6646         * modules/signbit-tests (Files): Likewise.
6647         * modules/sleep-tests (Files): Likewise.
6648         * modules/snprintf-posix-tests (Files): Likewise.
6649         * modules/snprintf-tests (Files): Likewise.
6650         * modules/sprintf-posix-tests (Files): Likewise.
6651         * modules/stat-tests (Files): Likewise.
6652         * modules/stat-time-tests (Files): Likewise.
6653         * modules/strcasestr-tests (Files): Likewise.
6654         * modules/strchrnul-tests (Files): Likewise.
6655         * modules/strerror-tests (Files): Likewise.
6656         * modules/striconv-tests (Files): Likewise.
6657         * modules/striconveh-tests (Files): Likewise.
6658         * modules/striconveha-tests (Files): Likewise.
6659         * modules/strsignal-tests (Files): Likewise.
6660         * modules/strstr-tests (Files): Likewise.
6661         * modules/strtod-tests (Files): Likewise.
6662         * modules/strverscmp-tests (Files): Likewise.
6663         * modules/symlink-tests (Files): Likewise.
6664         * modules/symlinkat-tests (Files): Likewise.
6665         * modules/trunc-tests (Files): Likewise.
6666         * modules/truncf-tests (Files): Likewise.
6667         * modules/truncl-tests (Files): Likewise.
6668         * modules/uname-tests (Files): Likewise.
6669         * modules/unicase/cased-tests (Files): Likewise.
6670         * modules/unicase/ignorable-tests (Files): Likewise.
6671         * modules/unicase/locale-language-tests (Files): Likewise.
6672         * modules/unicase/tolower-tests (Files): Likewise.
6673         * modules/unicase/totitle-tests (Files): Likewise.
6674         * modules/unicase/toupper-tests (Files): Likewise.
6675         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6676         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6677         * modules/unicase/u8-casefold-tests (Files): Likewise.
6678         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6679         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6680         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6681         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6682         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6683         * modules/unicase/u8-tolower-tests (Files): Likewise.
6684         * modules/unicase/u8-totitle-tests (Files): Likewise.
6685         * modules/unicase/u8-toupper-tests (Files): Likewise.
6686         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6687         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6688         * modules/unicase/u16-casefold-tests (Files): Likewise.
6689         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6690         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6691         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6692         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6693         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6694         * modules/unicase/u16-tolower-tests (Files): Likewise.
6695         * modules/unicase/u16-totitle-tests (Files): Likewise.
6696         * modules/unicase/u16-toupper-tests (Files): Likewise.
6697         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6698         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6699         * modules/unicase/u32-casefold-tests (Files): Likewise.
6700         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6701         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6702         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6703         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6704         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6705         * modules/unicase/u32-tolower-tests (Files): Likewise.
6706         * modules/unicase/u32-totitle-tests (Files): Likewise.
6707         * modules/unicase/u32-toupper-tests (Files): Likewise.
6708         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6709         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6710         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6711         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6712         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6713         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6714         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6715         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6716         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6717         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6718         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6719         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6720         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6721         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6722         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6723         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6724         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6725         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6726         * modules/unictype/block-list-tests (Files): Likewise.
6727         * modules/unictype/block-of-tests (Files): Likewise.
6728         * modules/unictype/block-test-tests (Files): Likewise.
6729         * modules/unictype/category-C-tests (Files): Likewise.
6730         * modules/unictype/category-Cc-tests (Files): Likewise.
6731         * modules/unictype/category-Cf-tests (Files): Likewise.
6732         * modules/unictype/category-Cn-tests (Files): Likewise.
6733         * modules/unictype/category-Co-tests (Files): Likewise.
6734         * modules/unictype/category-Cs-tests (Files): Likewise.
6735         * modules/unictype/category-L-tests (Files): Likewise.
6736         * modules/unictype/category-Ll-tests (Files): Likewise.
6737         * modules/unictype/category-Lm-tests (Files): Likewise.
6738         * modules/unictype/category-Lo-tests (Files): Likewise.
6739         * modules/unictype/category-Lt-tests (Files): Likewise.
6740         * modules/unictype/category-Lu-tests (Files): Likewise.
6741         * modules/unictype/category-M-tests (Files): Likewise.
6742         * modules/unictype/category-Mc-tests (Files): Likewise.
6743         * modules/unictype/category-Me-tests (Files): Likewise.
6744         * modules/unictype/category-Mn-tests (Files): Likewise.
6745         * modules/unictype/category-N-tests (Files): Likewise.
6746         * modules/unictype/category-Nd-tests (Files): Likewise.
6747         * modules/unictype/category-Nl-tests (Files): Likewise.
6748         * modules/unictype/category-No-tests (Files): Likewise.
6749         * modules/unictype/category-P-tests (Files): Likewise.
6750         * modules/unictype/category-Pc-tests (Files): Likewise.
6751         * modules/unictype/category-Pd-tests (Files): Likewise.
6752         * modules/unictype/category-Pe-tests (Files): Likewise.
6753         * modules/unictype/category-Pf-tests (Files): Likewise.
6754         * modules/unictype/category-Pi-tests (Files): Likewise.
6755         * modules/unictype/category-Po-tests (Files): Likewise.
6756         * modules/unictype/category-Ps-tests (Files): Likewise.
6757         * modules/unictype/category-S-tests (Files): Likewise.
6758         * modules/unictype/category-Sc-tests (Files): Likewise.
6759         * modules/unictype/category-Sk-tests (Files): Likewise.
6760         * modules/unictype/category-Sm-tests (Files): Likewise.
6761         * modules/unictype/category-So-tests (Files): Likewise.
6762         * modules/unictype/category-Z-tests (Files): Likewise.
6763         * modules/unictype/category-Zl-tests (Files): Likewise.
6764         * modules/unictype/category-Zp-tests (Files): Likewise.
6765         * modules/unictype/category-Zs-tests (Files): Likewise.
6766         * modules/unictype/category-and-not-tests (Files): Likewise.
6767         * modules/unictype/category-and-tests (Files): Likewise.
6768         * modules/unictype/category-byname-tests (Files): Likewise.
6769         * modules/unictype/category-name-tests (Files): Likewise.
6770         * modules/unictype/category-none-tests (Files): Likewise.
6771         * modules/unictype/category-of-tests (Files): Likewise.
6772         * modules/unictype/category-or-tests (Files): Likewise.
6773         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6774         * modules/unictype/combining-class-tests (Files): Likewise.
6775         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6776         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6777         * modules/unictype/ctype-blank-tests (Files): Likewise.
6778         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6779         * modules/unictype/ctype-digit-tests (Files): Likewise.
6780         * modules/unictype/ctype-graph-tests (Files): Likewise.
6781         * modules/unictype/ctype-lower-tests (Files): Likewise.
6782         * modules/unictype/ctype-print-tests (Files): Likewise.
6783         * modules/unictype/ctype-punct-tests (Files): Likewise.
6784         * modules/unictype/ctype-space-tests (Files): Likewise.
6785         * modules/unictype/ctype-upper-tests (Files): Likewise.
6786         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6787         * modules/unictype/decimal-digit-tests (Files): Likewise.
6788         * modules/unictype/digit-tests (Files): Likewise.
6789         * modules/unictype/mirror-tests (Files): Likewise.
6790         * modules/unictype/numeric-tests (Files): Likewise.
6791         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6792         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6793         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6794         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6795         Likewise.
6796         * modules/unictype/property-bidi-block-separator-tests (Files):
6797         Likewise.
6798         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6799         Likewise.
6800         * modules/unictype/property-bidi-common-separator-tests (Files):
6801         Likewise.
6802         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6803         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6804         Likewise.
6805         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6806         Likewise.
6807         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6808         Likewise.
6809         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6810         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6811         Likewise.
6812         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6813         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6814         Likewise.
6815         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6816         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6817         * modules/unictype/property-bidi-segment-separator-tests (Files):
6818         Likewise.
6819         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6820         * modules/unictype/property-byname-tests (Files): Likewise.
6821         * modules/unictype/property-combining-tests (Files): Likewise.
6822         * modules/unictype/property-composite-tests (Files): Likewise.
6823         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6824         * modules/unictype/property-dash-tests (Files): Likewise.
6825         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6826         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6827         Likewise.
6828         * modules/unictype/property-deprecated-tests (Files): Likewise.
6829         * modules/unictype/property-diacritic-tests (Files): Likewise.
6830         * modules/unictype/property-extender-tests (Files): Likewise.
6831         * modules/unictype/property-format-control-tests (Files): Likewise.
6832         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6833         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6834         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6835         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6836         * modules/unictype/property-hyphen-tests (Files): Likewise.
6837         * modules/unictype/property-id-continue-tests (Files): Likewise.
6838         * modules/unictype/property-id-start-tests (Files): Likewise.
6839         * modules/unictype/property-ideographic-tests (Files): Likewise.
6840         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6841         * modules/unictype/property-ids-trinary-operator-tests (Files):
6842         Likewise.
6843         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6844         * modules/unictype/property-iso-control-tests (Files): Likewise.
6845         * modules/unictype/property-join-control-tests (Files): Likewise.
6846         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6847         * modules/unictype/property-line-separator-tests (Files): Likewise.
6848         * modules/unictype/property-logical-order-exception-tests (Files):
6849         Likewise.
6850         * modules/unictype/property-lowercase-tests (Files): Likewise.
6851         * modules/unictype/property-math-tests (Files): Likewise.
6852         * modules/unictype/property-non-break-tests (Files): Likewise.
6853         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6854         * modules/unictype/property-numeric-tests (Files): Likewise.
6855         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6856         * modules/unictype/property-other-default-ignorable-code-point-tests
6857         (Files): Likewise.
6858         * modules/unictype/property-other-grapheme-extend-tests (Files):
6859         Likewise.
6860         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6861         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6862         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6863         * modules/unictype/property-other-math-tests (Files): Likewise.
6864         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6865         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6866         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6867         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6868         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6869         * modules/unictype/property-private-use-tests (Files): Likewise.
6870         * modules/unictype/property-punctuation-tests (Files): Likewise.
6871         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6872         * modules/unictype/property-radical-tests (Files): Likewise.
6873         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6874         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6875         * modules/unictype/property-space-tests (Files): Likewise.
6876         * modules/unictype/property-terminal-punctuation-tests (Files):
6877         Likewise.
6878         * modules/unictype/property-test-tests (Files): Likewise.
6879         * modules/unictype/property-titlecase-tests (Files): Likewise.
6880         * modules/unictype/property-unassigned-code-value-tests (Files):
6881         Likewise.
6882         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6883         * modules/unictype/property-uppercase-tests (Files): Likewise.
6884         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6885         * modules/unictype/property-white-space-tests (Files): Likewise.
6886         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6887         * modules/unictype/property-xid-start-tests (Files): Likewise.
6888         * modules/unictype/property-zero-width-tests (Files): Likewise.
6889         * modules/unictype/scripts-tests (Files): Likewise.
6890         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6891         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6892         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6893         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6894         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6895         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6896         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6897         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6898         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6899         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6900         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6901         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6902         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6903         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6904         * modules/uninorm/composition-tests (Files): Likewise.
6905         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6906         * modules/uninorm/decomposition-tests (Files): Likewise.
6907         * modules/uninorm/filter-tests (Files): Likewise.
6908         * modules/uninorm/nfc-tests (Files): Likewise.
6909         * modules/uninorm/nfd-tests (Files): Likewise.
6910         * modules/uninorm/nfkc-tests (Files): Likewise.
6911         * modules/uninorm/nfkd-tests (Files): Likewise.
6912         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6913         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6914         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6915         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6916         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6917         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6918         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6919         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6920         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6921         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6922         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6923         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6924         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6925         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6926         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6927         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6928         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6929         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6930         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6931         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6932         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6933         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6934         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6935         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6936         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6937         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6938         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6939         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6940         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6941         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6942         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6943         * modules/uniwidth/u8-width-tests (Files): Likewise.
6944         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6945         * modules/uniwidth/u16-width-tests (Files): Likewise.
6946         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6947         * modules/uniwidth/u32-width-tests (Files): Likewise.
6948         * modules/uniwidth/width-tests (Files): Likewise.
6949         * modules/unlink-tests (Files): Likewise.
6950         * modules/unsetenv-tests (Files): Likewise.
6951         * modules/usleep-tests (Files): Likewise.
6952         * modules/utimens-tests (Files): Likewise.
6953         * modules/utimensat-tests (Files): Likewise.
6954         * modules/vasnprintf-posix-tests (Files): Likewise.
6955         * modules/vasnprintf-tests (Files): Likewise.
6956         * modules/vasprintf-posix-tests (Files): Likewise.
6957         * modules/vasprintf-tests (Files): Likewise.
6958         * modules/vdprintf-posix-tests (Files): Likewise.
6959         * modules/vfprintf-posix-tests (Files): Likewise.
6960         * modules/vprintf-posix-tests (Files): Likewise.
6961         * modules/vsnprintf-posix-tests (Files): Likewise.
6962         * modules/vsnprintf-tests (Files): Likewise.
6963         * modules/vsprintf-posix-tests (Files): Likewise.
6964         * modules/wcrtomb-tests (Files): Likewise.
6965         * modules/wcsnrtombs-tests (Files): Likewise.
6966         * modules/wcsrtombs-tests (Files): Likewise.
6967         * modules/wctype-tests (Files): Likewise.
6968         * modules/wcwidth-tests (Files): Likewise.
6969         * modules/xmemdup0-tests (Files): Likewise.
6970         * modules/xprintf-posix-tests (Files): Likewise.
6971         * modules/xvasprintf-tests (Files): Likewise.
6972
6973 2009-12-24  Eric Blake  <ebb9@byu.net>
6974
6975         test-nanosleep: fix typo
6976         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6977         patch.
6978         Reported by Bruno Haible.
6979
6980 2009-12-24  Bruno Haible  <bruno@clisp.org>
6981
6982         Reduce namespace pollution on glibc systems.
6983         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6984         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6985         systems.
6986         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6987         <getopt.h> on glibc systems.
6988         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6989         systems.
6990         * lib/fcntl.c: Include <unistd.h> here instead.
6991
6992 2009-12-24  Bruno Haible  <bruno@clisp.org>
6993
6994         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6995
6996 2009-12-24  Eric Blake  <ebb9@byu.net>
6997
6998         tests: add signature checks
6999         * tests/signature.h (SIGNATURE_CHECK): New file.
7000         * modules/atexit-tests (Files): Use it.
7001         * modules/btowc-tests (Files): Likewise.
7002         * modules/canonicalize-lgpl-tests (Files): Likewise.
7003         * modules/ceilf-tests (Files): Likewise.
7004         * modules/ceill-tests (Files): Likewise.
7005         * modules/chown-tests (Files): Likewise.
7006         * modules/dprintf-posix-tests (Files): Likewise.
7007         * modules/dup2-tests (Files): Likewise.
7008         * modules/dup3-tests (Files): Likewise.
7009         * modules/duplocale-tests (Files): Likewise.
7010         * modules/fchdir-tests (Files): Likewise.
7011         * modules/fcntl-tests (Files): Likewise.
7012         * modules/fdopendir-tests (Files): Likewise.
7013         * modules/fflush-tests (Files): Likewise.
7014         * modules/flock-tests (Files): Likewise.
7015         * modules/floorf-tests (Files): Likewise.
7016         * modules/floorl-tests (Files): Likewise.
7017         * modules/fnmatch-tests (Files): Likewise.
7018         * modules/fopen-tests (Files): Likewise.
7019         * modules/fprintf-posix-tests (Files): Likewise.
7020         * modules/freopen-tests (Files): Likewise.
7021         * modules/frexp-nolibm-tests (Files): Likewise.
7022         * modules/frexp-tests (Files): Likewise.
7023         * modules/frexpl-nolibm-tests (Files): Likewise.
7024         * modules/frexpl-tests (Files): Likewise.
7025         * modules/fseek-tests (Files): Likewise.
7026         * modules/fseeko-tests (Files): Likewise.
7027         * modules/fsync-tests (Files): Likewise.
7028         * modules/ftell-tests (Files): Likewise.
7029         * modules/ftello-tests (Files): Likewise.
7030         * modules/futimens-tests (Files): Likewise.
7031         * modules/getaddrinfo-tests (Files): Likewise.
7032         * modules/getcwd-tests (Files): Likewise.
7033         * modules/getdelim-tests (Files): Likewise.
7034         * modules/getdtablesize-tests (Files): Likewise.
7035         * modules/getgroups-tests (Files): Likewise.
7036         * modules/gethostname-tests (Files): Likewise.
7037         * modules/getline-tests (Files): Likewise.
7038         * modules/getopt-posix-tests (Files): Likewise.
7039         * modules/gettimeofday-tests (Files): Likewise.
7040         * modules/glob-tests (Files): Likewise.
7041         * modules/iconv-tests (Files): Likewise.
7042         * modules/inet_ntop-tests (Files): Likewise.
7043         * modules/inet_pton-tests (Files): Likewise.
7044         * modules/isblank-tests (Files): Likewise.
7045         * modules/lchown-tests (Files): Likewise.
7046         * modules/ldexpl-tests (Files): Likewise.
7047         * modules/link-tests (Files): Likewise.
7048         * modules/linkat-tests (Files): Likewise.
7049         * modules/lseek-tests (Files): Likewise.
7050         * modules/lstat-tests (Files): Likewise.
7051         * modules/mbrtowc-tests (Files): Likewise.
7052         * modules/mbsinit-tests (Files): Likewise.
7053         * modules/mbsnrtowcs-tests (Files): Likewise.
7054         * modules/mbsrtowcs-tests (Files): Likewise.
7055         * modules/memchr-tests (Files): Likewise.
7056         * modules/memcmp-tests (Files): Likewise.
7057         * modules/memmem-tests (Files): Likewise.
7058         * modules/memrchr-tests (Files): Likewise.
7059         * modules/mkdir-tests (Files): Likewise.
7060         * modules/mkfifo-tests (Files): Likewise.
7061         * modules/mkfifoat-tests (Files): Likewise.
7062         * modules/mknod-tests (Files): Likewise.
7063         * modules/nanosleep-tests (Files): Likewise.
7064         * modules/nl_langinfo-tests (Files): Likewise.
7065         * modules/obstack-printf-tests (Files): Likewise.
7066         * modules/open-tests (Files): Likewise.
7067         * modules/openat-tests (Files): Likewise.
7068         * modules/perror-tests (Files): Likewise.
7069         * modules/pipe2-tests (Files): Likewise.
7070         * modules/poll-tests (Files): Likewise.
7071         * modules/popen-tests (Files): Likewise.
7072         * modules/posix_spawn-tests (Files): Likewise.
7073         * modules/posix_spawnp-tests (Files): Likewise.
7074         * modules/pread-tests (Files): Likewise.
7075         * modules/printf-posix-tests (Files): Likewise.
7076         * modules/pty-tests (Files): Likewise.
7077         * modules/random_r-tests (Files): Likewise.
7078         * modules/rawmemchr-tests (Files): Likewise.
7079         * modules/readlink-tests (Files): Likewise.
7080         * modules/remove-tests (Files): Likewise.
7081         * modules/rename-tests (Files): Likewise.
7082         * modules/renameat-tests (Files): Likewise.
7083         * modules/rmdir-tests (Files): Likewise.
7084         * modules/round-tests (Files): Likewise.
7085         * modules/roundf-tests (Files): Likewise.
7086         * modules/roundl-tests (Files): Likewise.
7087         * modules/select-tests (Files): Likewise.
7088         * modules/setenv-tests (Files): Likewise.
7089         * modules/sigaction-tests (Files): Likewise.
7090         * modules/sleep-tests (Files): Likewise.
7091         * modules/snprintf-posix-tests (Files): Likewise.
7092         * modules/snprintf-tests (Files): Likewise.
7093         * modules/sprintf-posix-tests (Files): Likewise.
7094         * modules/stat-tests (Files): Likewise.
7095         * modules/strcasestr-tests (Files): Likewise.
7096         * modules/strchrnul-tests (Files): Likewise.
7097         * modules/strerror-tests (Files): Likewise.
7098         * modules/strsignal-tests (Files): Likewise.
7099         * modules/strstr-tests (Files): Likewise.
7100         * modules/strtod-tests (Files): Likewise.
7101         * modules/strverscmp-tests (Files): Likewise.
7102         * modules/symlink-tests (Files): Likewise.
7103         * modules/symlinkat-tests (Files): Likewise.
7104         * modules/times-tests (Files): Likewise.
7105         * modules/trunc-tests (Files): Likewise.
7106         * modules/truncf-tests (Files): Likewise.
7107         * modules/truncl-tests (Files): Likewise.
7108         * modules/tsearch-tests (Files): Likewise.
7109         * modules/uname-tests (Files): Likewise.
7110         * modules/unlink-tests (Files): Likewise.
7111         * modules/unsetenv-tests (Files): Likewise.
7112         * modules/usleep-tests (Files): Likewise.
7113         * modules/utimensat-tests (Files): Likewise.
7114         * modules/vasprintf-tests (Files): Likewise.
7115         * modules/vdprintf-posix-tests (Files): Likewise.
7116         * modules/vfprintf-posix-tests (Files): Likewise.
7117         * modules/vprintf-posix-tests (Files): Likewise.
7118         * modules/vsnprintf-posix-tests (Files): Likewise.
7119         * modules/vsnprintf-tests (Files): Likewise.
7120         * modules/vsprintf-posix-tests (Files): Likewise.
7121         * modules/wcrtomb-tests (Files): Likewise.
7122         * modules/wcsnrtombs-tests (Files): Likewise.
7123         * modules/wcsrtombs-tests (Files): Likewise.
7124         * modules/wcwidth-tests (Files): Likewise.
7125         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
7126         * tests/test-isinf.c (isinf): Likewise.
7127         * tests/test-isnan.c (isnan): Likewise.
7128         * tests/test-signbit.c (signbit): Likewise.
7129         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
7130         declaration, either as macro or with correct signature.
7131         (select): Ensure function under test is declared with correct
7132         signature in correct header.
7133         * tests/test-atexit.c (atexit): Likewise.
7134         * tests/test-btowc.c (btowc): Likewise.
7135         * tests/test-canonicalize-lgpl.c (realpath)
7136         (canonicalize_file_name): Likewise.
7137         * tests/test-ceilf1.c (ceilf): Likewise.
7138         * tests/test-ceill.c (ceill): Likewise.
7139         * tests/test-chown.c (chown): Likewise.
7140         * tests/test-dprintf-posix.c (dprintf): Likewise.
7141         * tests/test-dup2.c (dup2): Likewise.
7142         * tests/test-dup3.c (dup3): Likewise.
7143         * tests/test-duplocale.c (duplocale): Likewise.
7144         * tests/test-fchdir.c (fchdir): Likewise.
7145         * tests/test-fchownat.c (fchownat): Likewise.
7146         * tests/test-fcntl.c (fcntl): Likewise.
7147         * tests/test-fdopendir.c (fdopendir): Likewise.
7148         * tests/test-fflush.c (fflush): Likewise.
7149         * tests/test-flock.c (flock): Likewise.
7150         * tests/test-floorf1.c (floorf): Likewise.
7151         * tests/test-floorl.c (floorl): Likewise.
7152         * tests/test-fnmatch.c (fnmatch): Likewise.
7153         * tests/test-fopen.c (fopen): Likewise.
7154         * tests/test-fprintf-posix.c (fprintf): Likewise.
7155         * tests/test-freopen.c (freopen): Likewise.
7156         * tests/test-frexp.c (frexp): Likewise.
7157         * tests/test-frexpl.c (frexpl): Likewise.
7158         * tests/test-fseek.c (fseek): Likewise.
7159         * tests/test-fseeko.c (fseeko): Likewise.
7160         * tests/test-fstatat.c (fstatat): Likewise.
7161         * tests/test-fsync.c (fsync): Likewise.
7162         * tests/test-ftell.c (ftell): Likewise.
7163         * tests/test-ftello.c (ftello): Likewise.
7164         * tests/test-futimens.c (futimens): Likewise.
7165         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
7166         (gai_strerror): Likewise.
7167         * tests/test-getcwd.c (getcwd): Likewise.
7168         * tests/test-getdelim.c (getdelim): Likewise.
7169         * tests/test-getdtablesize.c (getdtablesize): Likewise.
7170         * tests/test-getgroups.c (getgroups): Likewise.
7171         * tests/test-gethostname.c (gethostname): Likewise.
7172         * tests/test-getline.c (getline): Likewise.
7173         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
7174         Likewise.
7175         * tests/test-gettimeofday.c (gettimeofday): Likewise.
7176         * tests/test-glob.c (glob, globfree): Likewise.
7177         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
7178         * tests/test-inet_ntop.c (inet_ntop): Likewise.
7179         * tests/test-inet_pton.c (inet_pton): Likewise.
7180         * tests/test-isblank.c (isblank): Likewise.
7181         * tests/test-lchown.c (lchown): Likewise.
7182         * tests/test-ldexpl.c (ldexpl): Likewise.
7183         * tests/test-link.c (link): Likewise.
7184         * tests/test-linkat.c (linkat): Likewise.
7185         * tests/test-lseek.c (lseek): Likewise.
7186         * tests/test-lstat.c (lstat): Likewise.
7187         * tests/test-mbrtowc.c (mbrtowc): Likewise.
7188         * tests/test-mbsinit.c (mbsinit): Likewise.
7189         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
7190         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
7191         * tests/test-memchr.c (memchr): Likewise.
7192         * tests/test-memcmp.c (memcmp): Likewise.
7193         * tests/test-memmem.c (memmem): Likewise.
7194         * tests/test-memrchr.c (memrchr): Likewise.
7195         * tests/test-mkdir.c (mkdir): Likewise.
7196         * tests/test-mkdirat.c (mkdirat): Likewise.
7197         * tests/test-mkfifo.c (mkfifo): Likewise.
7198         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
7199         * tests/test-mknod.c (mknod): Likewise.
7200         * tests/test-nanosleep.c (nanosleep): Likewise.
7201         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
7202         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
7203         Likewise.
7204         * tests/test-open.c (open): Likewise.
7205         * tests/test-openat.c (openat): Likewise.
7206         * tests/test-perror.c (perror): Likewise.
7207         * tests/test-pipe2.c (pipe2): Likewise.
7208         * tests/test-poll.c (poll): Likewise.
7209         * tests/test-popen.c (popen, pclose): Likewise.
7210         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
7211         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
7212         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
7213         (posix_spawn_file_actions_destroy)
7214         (posix_spawn_file_actions_addclose)
7215         (posix_spawn_file_actions_addopen)
7216         (posix_spawn_file_actions_adddup2): Likewise.
7217         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
7218         * tests/test-pread.c (pread): Likewise.
7219         * tests/test-printf-posix.c (printf): Likewise.
7220         * tests/test-pty.c (openpty, forkpty): Likewise.
7221         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
7222         (random_r): Likewise.
7223         * tests/test-rawmemchr.c (rawmemchr): Likewise.
7224         * tests/test-readlink.c (readlink): Likewise.
7225         * tests/test-remove.c (remove): Likewise.
7226         * tests/test-rename.c (rename): Likewise.
7227         * tests/test-renameat.c (renameat): Likewise.
7228         * tests/test-rmdir.c (rmdir): Likewise.
7229         * tests/test-round1.c (round): Likewise.
7230         * tests/test-roundf1.c (roundf): Likewise.
7231         * tests/test-roundl.c (roundl): Likewise.
7232         * tests/test-setenv.c (setenv): Likewise.
7233         * tests/test-sigaction.c (sigaction): Likewise.
7234         * tests/test-sleep.c (sleep): Likewise.
7235         * tests/test-snprintf.c (snprintf): Likewise.
7236         * tests/test-sprintf-posix.c (sprintf): Likewise.
7237         * tests/test-stat.c (stat): Likewise.
7238         * tests/test-stpncpy.c (stpncpy): Likewise.
7239         * tests/test-strcasestr.c (strcasestr): Likewise.
7240         * tests/test-strchrnul.c (strchrnul): Likewise.
7241         * tests/test-strerror.c (strerror): Likewise.
7242         * tests/test-strsignal.c (strsignal): Likewise.
7243         * tests/test-strstr.c (strstr): Likewise.
7244         * tests/test-strtod.c (strtod): Likewise.
7245         * tests/test-strverscmp.c (strverscmp): Likewise.
7246         * tests/test-symlink.c (symlink): Likewise.
7247         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
7248         * tests/test-times.c (times): Likewise.
7249         * tests/test-trunc1.c (trunc): Likewise.
7250         * tests/test-truncf1.c (truncf): Likewise.
7251         * tests/test-truncl.c (truncl): Likewise.
7252         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
7253         Likewise.
7254         * tests/test-uname.c (uname): Likewise.
7255         * tests/test-unlink.c (unlink): Likewise.
7256         * tests/test-unlinkat.c (unlinkat): Likewise.
7257         * tests/test-unsetenv.c (unsetenv): Likewise.
7258         * tests/test-usleep.c (usleep): Likewise.
7259         * tests/test-utimensat.c (utimensat): Likewise.
7260         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
7261         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
7262         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
7263         * tests/test-vprintf-posix.c (vprintf): Likewise.
7264         * tests/test-vsnprintf.c (vsnprintf): Likewise.
7265         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
7266         * tests/test-wcrtomb.c (wcrtomb): Likewise.
7267         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
7268         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
7269         * tests/test-wcwidth.c (wcwidth): Likewise.
7270
7271         build: pull in conditional headers during GNULIB_POSIXCHECK
7272         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
7273         definitions from any conditionally-included headers.
7274         * lib/stdlib.in.h (includes): Likewise.
7275         * lib/unistd.in.h (includes): Likewise.
7276
7277 2009-12-24  Bruno Haible  <bruno@clisp.org>
7278
7279         * tests/test-argv-iter.c: Include header file being tested immediately
7280         after config.h.
7281         * tests/test-base64.c: Likewise.
7282         * tests/test-flock.c: Likewise.
7283         * tests/test-fsync.c: Likewise.
7284         * tests/test-getdate.c: Likewise.
7285         * tests/test-getndelim2.c: Likewise.
7286         * tests/test-isfinite.c: Likewise.
7287         * tests/test-isinf.c: Likewise.
7288         * tests/test-strerror.c: Likewise.
7289         * tests/test-strsignal.c: Likewise.
7290
7291 2009-12-23  Eric Blake  <ebb9@byu.net>
7292
7293         unistd: work around cygwin bug
7294         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
7295         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
7296         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7297
7298 2009-12-23  Bruno Haible  <bruno@clisp.org>
7299
7300         localename: More tests.
7301         * tests/test-localename.c (SIZEOF): New macro.
7302         (categories): New variable.
7303         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
7304         test_locale_name_default): Add test w.r.t. thread locale.
7305         (test_locale_name_thread): New function.
7306         (main): Invoke it.
7307
7308         localename: Make aware of thread locale.
7309         * lib/localename.h (gl_locale_name_thread): New declaration.
7310         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
7311         behaviour with respect to thread locale.
7312         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
7313         <langinfo.h>, glthread/lock.h.
7314         (SIZE_BITS): New macro.
7315         (string_hash): New function.
7316         (struct hash_node): New type.
7317         (HASH_TABLE_SIZE): New macro.
7318         (struniq_hash_table, struniq_lock): New variables.
7319         (struniq): New function.
7320         (gl_locale_name_thread): New function.
7321         (gl_locale_name): Invoke it.
7322         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
7323         * modules/localename (Depends-on): Add lock.
7324         Reported by Mike Gran <spk121@yahoo.com>.
7325
7326 2009-12-23  Eric Blake  <ebb9@byu.net>
7327
7328         va-args: new module
7329         * modules/va-args: New file.
7330         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
7331         * MODULES.html.sh (Core language properties): Mention it.
7332
7333         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
7334         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
7335         named alias for __attribute__((__unused__)).
7336         * lib/chown.c: Update client.
7337         * lib/fchmodat.c: Likewise.
7338         * lib/fts.c: Likewise.
7339         * lib/getdate.y: Likewise.
7340         * lib/getgroups.c: Likewise.
7341         * lib/getopt.c: Likewise.
7342         * lib/getugroups.c: Likewise.
7343         * lib/mkdir.c: Likewise.
7344         * lib/mkfifo.c: Likewise.
7345         * lib/mkfifoat.c: Likewise.
7346         * lib/mknod.c: Likewise.
7347         * lib/mknodat.c: Likewise.
7348         * lib/readlink.c: Likewise.
7349         * lib/se-context.in.h: Likewise.
7350         * lib/se-selinux.in.h: Likewise.
7351         * lib/sockets.c: Likewise.
7352         * lib/symlink.c: Likewise.
7353         * lib/symlinkat.c: Likewise.
7354         * lib/unicodeio.c: Likewise.
7355         * lib/unistr.h: Likewise.
7356         * tests/test-areadlink.c: Likewise.
7357         * tests/test-areadlinkat.c: Likewise.
7358         * tests/test-filenamecat.c: Likewise.
7359         * tests/test-fseeko.c: Likewise.
7360         * tests/test-ftello.c: Likewise.
7361         * tests/test-getdate.c: Likewise.
7362         * tests/test-getgroups.c: Likewise.
7363         * tests/test-gethostname.c: Likewise.
7364         * tests/test-quotearg.c: Likewise.
7365         * tests/test-version-etc.c: Likewise.
7366         * tests/test-xalloc-die.c: Likewise.
7367         * tests/test-xfprintf-posix.c: Likewise.
7368         * tests/test-xprintf-posix.c: Likewise.
7369         * tests/test-xvasprintf.c: Likewise.
7370
7371         tests: avoid compiler warnings
7372         * tests/test-fcntl.c (main): Delete unused parameters.
7373         * tests/test-freopen-safer.c (main): Likewise.
7374         * tests/test-xalloc-die.c (main): Mark unused parameters.
7375         * tests/test-fseeko.c (main): Likewise.
7376         * tests/test-ftello.c (main): Likewise.
7377         * tests/test-nanosleep.c (main): Avoid declaration warning.
7378         * tests/test-sleep.c (main): Likewise.
7379         * tests/test-unsetenv.c (main): Silence warning about string
7380         literal.
7381         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
7382
7383 2009-12-23  Bruno Haible  <bruno@clisp.org>
7384
7385         * tests/test-localename.c (test_locale_name): New function, extracted
7386         from main. Also test mixed situations.
7387         (test_locale_name_posix, test_locale_name_environ,
7388         test_locale_name_default): New functions.
7389         (main): Invoke them all.
7390         * modules/localename-tests (configure.ac): Test for newlocale.
7391
7392 2009-12-23  Bruno Haible  <bruno@clisp.org>
7393
7394         unistd: Ensure getcwd gets declared before being overridden.
7395         * lib/unistd.in.h: Conditionally include <io.h>.
7396
7397 2009-12-22  Bruno Haible  <bruno@clisp.org>
7398
7399         wchar: Diagnose broken combination of glibc and gcc versions and flags.
7400         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
7401         (gl_WCHAR_H): Invoke it.
7402         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
7403         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
7404         Reported by Karl Berry <karl@freefriends.org>.
7405
7406 2009-12-22  Eric Blake  <ebb9@byu.net>
7407
7408         math, unistd: avoid redundant includes
7409         * lib/math.in.h (isnan): No need to re-include <math.h>.
7410         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
7411
7412         getsubopt: work around cygwin bug
7413         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
7414         avoid conflicting with system getsubopt.
7415         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
7416         bug.
7417
7418         getopt: synchronize from glibc
7419         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
7420         parameter order.  Adjust all callers.
7421         (_getopt_internal_r, main): Adjust quoting in error messages.
7422         Drop considerations for outdated POSIX 1003.2 error message.
7423         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
7424         callers.
7425         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
7426
7427         test-getopt: test stderr behavior
7428         * modules/getopt-posix-tests (Depends-on): Add dup2.
7429         * tests/test-getopt.c (ASSERT): Avoid stderr.
7430         (main): Move stderr to a temporary file.
7431         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
7432         Instead, add parameter to inform caller if output occurred.
7433         (test_getopt): Adjust all existing tests to expect silence, and
7434         add new tests of leading ":".
7435         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7436         glibc shortcomings with leading "-:" or "+:" in optstring.
7437         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7438         Likewise.
7439         * doc/posix-functions/getopt.texi (getopt): Likewise.
7440
7441         test-getopt: enhance test
7442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
7443         supports optind=0.
7444         * tests/test-getopt.c (OPTIND_MIN): Move...
7445         * tests/test-getopt.h (OPTIND_MIN): ...here.
7446         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
7447         Require that optind=0 works, since modern BSD supports it in
7448         addition to optreset, and since coreutils expects it.
7449         (test_getopt_long_only): New test.
7450         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7451         glibc shortcomings with 'W;', and enforcement of optind=0.
7452         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7453         Likewise.
7454
7455 2009-12-21  Bruno Haible  <bruno@clisp.org>
7456
7457         localename: Improvements for MacOS X and Cygwin.
7458         * lib/localename.h (gl_locale_name_environ): New declaration.
7459         * lib/localename.c (gl_locale_name_environ): New function, extracted from
7460         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
7461         (gl_locale_name_posix): Invoke it.
7462         (gl_locale_name_default): Add comments. Use Windows native API also on
7463         Cygwin.
7464
7465 2009-12-21  Bruno Haible  <bruno@clisp.org>
7466
7467         Update list of Win32 locale ids.
7468         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
7469         (LANG_SAMI): Renamed from LANG_SAAMI.
7470         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
7471         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
7472         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
7473         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
7474         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
7475         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
7476         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
7477         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
7478         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
7479         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
7480         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
7481         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
7482         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
7483         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
7484         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
7485         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
7486         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
7487         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
7488         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
7489         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
7490         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
7491         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
7492         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
7493         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
7494         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
7495         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
7496         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
7497         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
7498         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
7499         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
7500         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
7501         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
7502         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
7503         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
7504         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
7505         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
7506         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
7507         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
7508         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
7509         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
7510         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
7511         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
7512         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
7513         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
7514         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
7515         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
7516         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
7517         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
7518         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
7519         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
7520         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
7521         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
7522         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
7523         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
7524         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
7525         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
7526         Add more languages and countries for Sami, Sorbian. Add more countries
7527         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
7528         for Pashto. Change country for Syriac, Tswana.
7529
7530 2009-12-21  Eric Blake  <ebb9@byu.net>
7531
7532         test-utimens: avoid spurious failure
7533         * tests/test-chown.h (nap): Factor...
7534         * tests/nap.h: ...into new file.
7535         * tests/test-lchown.h (nap): Avoid duplication.
7536         * tests/test-utimens-common.h (nap): Use shared implementation,
7537         necessary on file systems with 1-second resolution.
7538         * modules/chown-tests (Files): Include new file.
7539         * modules/fdutimensat-tests (Files): Likewise.
7540         * modules/futimens-tests (Files): Likewise.
7541         * modules/lchown-tests (Files): Likewise.
7542         * modules/openat-tests (Files): Likewise.
7543         * modules/utimens-tests (Files): Likewise.
7544         * modules/utimensat-tests (Files): Likewise.
7545
7546 2009-12-19  Eric Blake  <ebb9@byu.net>
7547
7548         futimens, utimensat: work around Linux bug
7549         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
7550         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7551         * lib/utimensat.c (rpl_utimensat): Work around it.
7552         * lib/futimens.c (rpl_futimens): Adjust comment.
7553
7554         utimens: work around Linux ctime bug
7555         * lib/utimens.c (detect_ctime_bug): New helper function.
7556         (update_timespec): Differentiate between workaround needed for
7557         this bug vs. what is needed for systems that lack utimensat.
7558         (fdutimens, lutimens): Work around bug.
7559
7560         utimens: check for ctime update
7561         * tests/test-utimens-common.h (check_ctime): Define.
7562         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
7563         * tests/test-futimens.h (test_futimens): Likewise.
7564         * tests/test-lutimens.h (test_lutimens): Likewise.
7565         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7566         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7567
7568 2009-12-19  Bruno Haible  <bruno@clisp.org>
7569
7570         dprintf-posix: Check against memory leak fixed on 2009-12-15.
7571         * tests/test-dprintf-posix2.sh: New file.
7572         * tests/test-dprintf-posix2.c: New file.
7573         * modules/dprintf-posix-tests (Files): Add them.
7574         (configure.ac): Check for getrlimit and setrlimit.
7575         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7576
7577 2009-12-19  Bruno Haible  <bruno@clisp.org>
7578
7579         fprintf-posix: Check against memory leak fixed on 2009-12-15.
7580         * tests/test-fprintf-posix3.sh: New file.
7581         * tests/test-fprintf-posix3.c: New file.
7582         * modules/fprintf-posix-tests (Files): Add them.
7583         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7584
7585 2009-12-19  Eric Blake  <ebb9@byu.net>
7586
7587         dirfd: fix prototype
7588         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
7589         * lib/dirfd.c (dirfd): Likewise.
7590
7591         canonicalize: reduce memory usage
7592         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
7593         allocation to size.
7594         Reported by Solar Designer <solar@openwall.com>.
7595
7596 2009-12-19  Bruno Haible  <bruno@clisp.org>
7597
7598         New module attribute 'Applicability'.
7599         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
7600         * gnulib-tool: New option --extract-applicability.
7601         (func_usage): Document it.
7602         (sed_extract_prog): Recognize it.
7603         (func_get_applicability): New function.
7604         (func_import): Generalize handling of 'link-warning' module.
7605         * modules/link-warning (Applicability): New section.
7606         * modules/arg-nonnull (Applicability): New section.
7607         Repoted by Simon Josefsson <simon@josefsson.org>.
7608
7609 2009-12-19  Bruno Haible  <bruno@clisp.org>
7610
7611         fflush: tweak
7612         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
7613         * lib/fseeko.c (rpl_fseeko): Likewise.
7614
7615 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
7616
7617         * lib/gl_list.h: Fix typo in comment.
7618
7619 2009-12-16  Eric Blake  <ebb9@byu.net>
7620
7621         fcntl: use to simplify other modules
7622         * modules/cloexec (Depends-on): Add fcntl.
7623         * modules/fchdir (Depends-on): Likewise.
7624         * modules/fd-safer-flag (Depends-on): Likewise.
7625         * modules/unistd-safer (Depends-on): Likewise.
7626         * modules/dup3 (configure.ac): Set module indicator.
7627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7628         missing.
7629         * lib/fchdir.c (_gl_register_dup): Fix comment.
7630         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7631         * lib/dup-safer.c (dup_safer): Likewise.
7632         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7633         * lib/dup3.c (dup3): Likewise.
7634         * tests/test-fchdir.c (main): Enhance test.
7635         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
7636
7637         fcntl: port portions of fcntl to mingw
7638         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7639         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7640         replacement for mingw.
7641         * modules/fcntl (Description): Update.
7642         (Depends-on): Add dup2.
7643         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7644         * modules/fcntl-h (Makefile.am): Substitute it.
7645         * lib/fcntl.in.h (fcntl): Update declaration.
7646         (F_DUPFD, F_GETFD): New macros, when needed.
7647         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7648         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7649         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7650         we now guarantee.
7651
7652         fcntl: work around cygwin bug in F_DUPFD
7653         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7654         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7655         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7656         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7657         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7658
7659         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7660         * modules/fcntl (Files): List new files.
7661         (configure.ac): Run a test.
7662         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7663         * lib/fcntl.c (rpl_fcntl): Likewise.
7664         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7665         (gl_FCNTL_H): Always replace fcntl.h.
7666         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7667         * lib/fcntl.in.h (fcntl): Declare replacement.
7668         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7669         needed, plus a witness.
7670         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7671         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7672         * tests/test-fcntl.c: New file.
7673         * modules/fcntl-tests: Likewise.
7674
7675         binary-io: avoid potential compilation warning
7676         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7677         directives.
7678
7679         fflush: avoid compilation error on NetBSD
7680         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7681         between off_t and fpos_t, since the latter is sometimes a struct.
7682         * lib/fseeko.c (rpl_fseeko): Likewise.
7683         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7684
7685 2009-12-15  Eric Blake  <ebb9@byu.net>
7686
7687         fcntl-h, stdio, sys_ioctl: fix declarations
7688         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7689         function must not take arguments.
7690         * lib/sys_ioctl.in.h (ioctl): Likewise.
7691         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7692         (open): Add a link warning.
7693
7694 2009-12-15  Jim Meyering  <meyering@redhat.com>
7695
7696         areadlink, areadlink-with-size: relax license to LGPLv2+
7697         * modules/areadlink (License): Relax to LGPLv2+.
7698         * modules/areadlink-with-size (License): Likewise.
7699
7700 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7701             Bruno Haible  <bruno@clisp.org>
7702
7703         *printf: Fix memory leak.
7704         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7705         * lib/vfprintf.c (vfprintf): Likewise.
7706         * lib/dprintf.c (dprintf): Likewise.
7707         * lib/vdprintf.c (vdprintf): Likewise.
7708
7709 2009-12-14  Eric Blake  <ebb9@byu.net>
7710
7711         accept4: adjust module dependencies
7712         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7713
7714         utimens: one more try at avoiding compiler warning
7715         * lib/utimens.c (lutimens): Lower scope of result.
7716
7717 2009-12-13  Bruno Haible  <bruno@clisp.org>
7718
7719         Move the malloc checking from module 'list' to new module 'xlist'.
7720         * modules/xlist: New file.
7721         * lib/gl_xlist.h: New file.
7722         * lib/gl_xlist.c: New file.
7723         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7724         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7725         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7726         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7727         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7728         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7729         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7730         gl_sortedlist_nx_add): New declarations.
7731         (struct gl_list_implementation): Rename and change methods accordingly.
7732         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7733         (gl_list_nx_create): Renamed from gl_list_create.
7734         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7735         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7736         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7737         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7738         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7739         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7740         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7741         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7742         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7743         gl_list_create_empty.
7744         (gl_list_nx_create): Renamed from gl_list_create.
7745         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7746         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7747         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7748         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7749         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7750         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7751         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7752         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7753         * lib/gl_array_list.c: Don't include xalloc.h.
7754         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7755         NULL upon out-of-memory.
7756         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7757         out-of-memory.
7758         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7759         Change return type to 'int'.
7760         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7761         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7762         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7763         upon out-of-memory.
7764         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7765         upon out-of-memory.
7766         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7767         upon out-of-memory.
7768         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7769         upon out-of-memory.
7770         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7771         out-of-memory.
7772         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7773         Update.
7774         (gl_array_list_implementation): Update.
7775         * lib/gl_carray_list.c: Don't include xalloc.h.
7776         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7777         Return NULL upon out-of-memory.
7778         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7779         out-of-memory.
7780         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7781         Change return type to 'int'.
7782         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7783         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7784         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7785         upon out-of-memory.
7786         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7787         upon out-of-memory.
7788         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7789         out-of-memory.
7790         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7791         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7792         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7793         Update.
7794         (gl_carray_list_implementation): Update.
7795         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7796         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7797         gl_linked_create_empty. Return NULL upon out-of-memory.
7798         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7799         out-of-memory.
7800         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7801         Change return type to 'int'. Return -1 upon out-of-memory.
7802         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7803         out-of-memory.
7804         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7805         upon out-of-memory.
7806         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7807         upon out-of-memory.
7808         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7809         NULL upon out-of-memory.
7810         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7811         upon out-of-memory.
7812         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7813         out-of-memory.
7814         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7815         Update.
7816         * lib/gl_linked_list.c: Don't include xalloc.h.
7817         (gl_linked_list_implementation): Update.
7818         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7819         (add_to_bucket): Change return type to 'int'.
7820         (gl_linkedhash_list_implementation): Update.
7821         * lib/gl_anytree_list1.h (free_subtree): New function.
7822         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7823         gl_tree_create_empty. Return NULL upon out-of-memory.
7824         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7825         Change return type to 'int'. Return -1 upon out-of-memory.
7826         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7827         out-of-memory.
7828         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7829         (gl_tree_remove_node): New function, moved here from
7830         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7831         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7832         Update.
7833         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7834         malloc, not xmalloc. Return NULL upon out-of-memory.
7835         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7836         out-of-memory.
7837         (gl_tree_remove_node_from_tree): New function, extracted from
7838         gl_tree_remove_node.
7839         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7840         upon out-of-memory.
7841         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7842         out-of-memory.
7843         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7844         upon out-of-memory.
7845         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7846         upon out-of-memory.
7847         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7848         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7849         not xmalloc. Return NULL upon out-of-memory.
7850         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7851         out-of-memory.
7852         (gl_tree_remove_node_from_tree): New function, extracted from
7853         gl_tree_remove_node.
7854         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7855         upon out-of-memory.
7856         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7857         out-of-memory.
7858         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7859         upon out-of-memory.
7860         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7861         upon out-of-memory.
7862         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7863         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7864         gl_anytree_list1.h before gl_anyavltree_list2.h.
7865         (gl_avltree_list_implementation): Update.
7866         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7867         gl_anytree_list1.h before gl_anyavltree_list2.h.
7868         (gl_rbtree_list_implementation): Update.
7869         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7870         Change return type to 'int'. Return -1 upon out-of-memory. Use
7871         __builtin_expect.
7872         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7873         (gl_avltreehash_list_implementation): Update.
7874         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7875         (gl_rbtreehash_list_implementation): Update.
7876         * modules/array-list (Depends-on): Remove xalloc.
7877         * modules/carray-list (Depends-on): Likewise.
7878         * modules/linked-list (Depends-on): Likewise.
7879         * modules/linkedhash-list (Depends-on): Likewise.
7880         * modules/avltree-list (Depends-on): Likewise.
7881         * modules/rbtree-list (Depends-on): Likewise.
7882         * modules/avltreehash-list (Depends-on): Likewise.
7883         * modules/rbtreehash-list (Depends-on): Likewise.
7884
7885         * modules/xsublist: New file.
7886         * lib/gl_xsublist.h: New file.
7887         * lib/gl_xsublist.c: New file.
7888         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7889         (gl_sublist_nx_create): New declaration.
7890         * lib/gl_sublist.c: Don't include xalloc.h.
7891         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7892         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7893         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7894         Change return type to 'int'. Return -1 upon out-of-memory.
7895         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7896         upon out-of-memory.
7897         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7898         NULL upon out-of-memory.
7899         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7900         upon out-of-memory.
7901         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7902         NULL upon out-of-memory.
7903         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7904         NULL upon out-of-memory.
7905         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7906         upon out-of-memory.
7907         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7908         (gl_sublist_list_implementation): Update.
7909         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7910         upon out-of-memory.
7911         * modules/sublist (Depends-on): Remove xalloc.
7912
7913         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7914         * tests/test-carray_list.c: Likewise.
7915         * tests/test-linked_list.c: Likewise.
7916         * tests/test-linkedhash_list.c: Likewise.
7917         * tests/test-avltree_list.c: Likewise.
7918         * tests/test-rbtree_list.c: Likewise.
7919         * tests/test-avltreehash_list.c: Likewise.
7920         * tests/test-rbtreehash_list.c: Likewise.
7921         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7922         * modules/carray-list-tests (Makefile.am): Likewise.
7923         * modules/linked-list-tests (Makefile.am): Likewise.
7924         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7925         * modules/avltree-list-tests (Makefile.am): Likewise.
7926         * modules/rbtree-list-tests (Makefile.am): Likewise.
7927         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7928         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7929
7930         * NEWS: Mention the changes.
7931
7932         * lib/clean-temp.c: Include gl_xlist.h.
7933         * modules/clean-temp (Depends-on): Add xlist.
7934
7935         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7936         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7937
7938         * tests/test-array_oset.c: Include gl_xlist.h.
7939         * modules/array-oset-tests (Depends-on): Add xlist.
7940
7941         Reported by José E. Marchesi <jemarch@gnu.org>.
7942
7943 2009-12-13  Bruno Haible  <bruno@clisp.org>
7944
7945         Move the malloc checking from module 'oset' to new module 'xoset'.
7946         * modules/xoset: New file.
7947         * lib/gl_xoset.h: New file.
7948         * lib/gl_xoset.c: New file.
7949         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7950         declarations.
7951         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7952         (struct gl_oset_implementation): Rename and change methods accordingly.
7953         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7954         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7955         'int'. Mark as __warn_unused_result__.
7956         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7957         gl_oset_create_empty.
7958         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7959         'int'.
7960         * lib/gl_array_oset.c: Don't include xalloc.h.
7961         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7962         malloc, not xmalloc.
7963         (grow): Change return type to 'int'. Don't call xalloc_die.
7964         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7965         to 'int'.
7966         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7967         'int'.
7968         (gl_array_oset_implementation): Update.
7969         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7970         gl_tree_create_empty.
7971         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7972         'int'.
7973         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7974         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7975         xmalloc.
7976         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7977         not xmalloc.
7978         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7979         xmalloc.
7980         (gl_avltree_oset_implementation): Update.
7981         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7982         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7983         xmalloc.
7984         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7985         not xmalloc.
7986         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7987         xmalloc.
7988         (gl_rbtree_oset_implementation): Update.
7989         * modules/array-oset (Depends-on): Remove xalloc.
7990         * modules/avltree-oset (Depends-on): Likewise.
7991         * modules/rbtree-oset (Depends-on): Likewise.
7992         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7993         * tests/test-avltree_oset.c: Likewise.
7994         * tests/test-rbtree_oset.c: Likewise.
7995         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7996         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7997         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7998         * NEWS: Mention the change.
7999
8000 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
8001
8002         maint.mk: allow a project to override release-prep commands
8003         * top/maint.mk (alpha, beta, stable): Move release-preparatory
8004         commands into a new rule.
8005         (release-prep): New rule.
8006         (release-prep-hook): New overridable variable.
8007
8008 2009-12-13  Bruno Haible  <bruno@clisp.org>
8009
8010         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
8011
8012 2009-12-13  Jim Meyering  <meyering@redhat.com>
8013
8014         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
8015         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
8016
8017 2009-12-12  Bruno Haible  <bruno@clisp.org>
8018
8019         duplocale: Tweak.
8020         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
8021
8022 2009-12-12  Karl Berry  <karl@gnu.org>
8023
8024         * config/srclist.txt (strtoll.c): tab changes, no more sync.
8025
8026 2009-12-12  Bruno Haible  <bruno@clisp.org>
8027
8028         * m4/po.m4: Undo incorrect untabification.
8029
8030 2009-12-12  Bruno Haible  <bruno@clisp.org>
8031
8032         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
8033         * modules/c-strtod (Depends-on): Add locale.
8034         * modules/c-strtold (Depends-on): Likewise.
8035
8036 2009-12-12  Bruno Haible  <bruno@clisp.org>
8037
8038         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
8039
8040 2009-12-11  Eric Blake  <ebb9@byu.net>
8041
8042         setenv: relax requirement in light of POSIX ruling
8043         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
8044         not NULL.
8045         * tests/test-setenv.c (main): Relax test.
8046         * tests/test-unsetenv.c (main): Likewise.
8047         * doc/posix-functions/setenv.texi (setenv): Document this.
8048         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8049
8050 2009-12-11  Bruno Haible  <bruno@clisp.org>
8051
8052         New module 'fd-safer-flag'.
8053         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
8054         * lib/dup-safer.c (dup_safer_flag): Remove function.
8055         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
8056         * lib/fd-safer.c (fd_safer_flag): Remove function.
8057         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
8058         * modules/cloexec (configure.ac): Drop indicator macro.
8059         * modules/fd-safer-flag: New file.
8060         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
8061         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
8062         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
8063
8064 2009-12-11  Bruno Haible  <bruno@clisp.org>
8065
8066         Tests for module 'nl_langinfo'.
8067         * modules/nl_langinfo-tests: New file.
8068         * tests/test-nl_langinfo.sh: New file.
8069         * tests/test-nl_langinfo.c: New file.
8070
8071         New module 'nl_langinfo'.
8072         * lib/nl_langinfo.c: New file.
8073         * m4/nl_langinfo.m4: New file.
8074         * modules/nl_langinfo: New file.
8075         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
8076
8077 2009-12-11  Bruno Haible  <bruno@clisp.org>
8078
8079         Tests for module 'langinfo'.
8080         * modules/langinfo-tests: New file.
8081         * tests/test-langinfo.c: New file.
8082
8083         New module 'langinfo'.
8084         * lib/langinfo.in.h: New file.
8085         * m4/langinfo_h.m4: New file.
8086         * modules/langinfo: New file.
8087         * doc/posix-headers/langinfo.texi: Mention the new module.
8088
8089 2009-12-11  Bruno Haible  <bruno@clisp.org>
8090
8091         * lib/config.charset: Untabify.
8092
8093 2009-12-11  Bruno Haible  <bruno@clisp.org>
8094
8095         * modules/unistd-safer (configure.ac): Drop indicator macro.
8096
8097 2009-12-11  Bruno Haible  <bruno@clisp.org>
8098
8099         Move pipe2-safer code to its own file.
8100         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
8101         * lib/pipe-safer.c (pipe2_safer): Remove function.
8102         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
8103         (Makefile.am): Add it to lib_SOURCES.
8104
8105 2009-12-10  Bruno Haible  <bruno@clisp.org>
8106
8107         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
8108
8109 2009-12-10  Bruno Haible  <bruno@clisp.org>
8110
8111         Declare which arguments expect non-NULL values, for GCC and clang.
8112         * build-aux/arg-nonnull.h: New file.
8113         * modules/arg-nonnull: New file.
8114         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
8115         (inet_ntop, inet_pton): Use it.
8116         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
8117         (closedir, dirfd, opendir, scandir, alphasort): Use it.
8118         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
8119         (open, openat): Use it.
8120         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
8121         (fnmatch): Use it.
8122         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
8123         (getopt, getopt_long, getopt_long_only): Use it.
8124         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
8125         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
8126         Use it.
8127         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
8128         (iconv_open): Use it.
8129         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
8130         (strtoimax, strtoumax): Use it.
8131         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
8132         (duplocale): Use it.
8133         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
8134         (frexp, frexpl): Use it.
8135         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
8136         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
8137         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
8138         (tsearch, tfind, tdelete, twalk): Use it.
8139         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
8140         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8141         sigpending): Use it.
8142         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
8143         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8144         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8145         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8146         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8147         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8148         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8149         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8150         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8151         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8152         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8153         Use it.
8154         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
8155         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
8156         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
8157         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
8158         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
8159         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
8160         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
8161         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
8162         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
8163         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
8164         strtoull, unsetenv): Use it.
8165         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
8166         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8167         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8168         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
8169         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
8170         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
8171         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
8172         (strcasecmp, strncasecmp): Use it.
8173         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
8174         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
8175         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
8176         rpl_setsockopt): Use it.
8177         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
8178         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
8179         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
8180         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
8181         (gettimeofday): Use it.
8182         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
8183         (times): Use it.
8184         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
8185         (uname): Use it.
8186         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
8187         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
8188         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
8189         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
8190         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
8191         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
8192         unlinkat, write): Use it.
8193         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
8194         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
8195         * lib/argv-iter.h: Include arg-nonnull.h.
8196         (_ATTRIBUTE_NONNULL_): Remove macro.
8197         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
8198         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
8199         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
8200         optimization.
8201         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
8202         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
8203         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
8204         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
8205         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
8206         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
8207         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
8208         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
8209         * modules/arpa_inet (Depends-on): Add arg-nonnull.
8210         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
8211         * modules/dirent (Depends-on): Add arg-nonnull.
8212         (Makefile.am): Insert arg-nonnull.h into dirent.h.
8213         * modules/fcntl-h (Depends-on): Add arg-nonnull.
8214         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
8215         * modules/fnmatch (Depends-on): Add arg-nonnull.
8216         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
8217         * modules/getopt-posix (Depends-on): Add arg-nonnull.
8218         (Makefile.am): Insert arg-nonnull.h into getopt.h.
8219         * modules/glob (Depends-on): Add arg-nonnull.
8220         (Makefile.am): Insert arg-nonnull.h into glob.h.
8221         * modules/iconv_open (Depends-on): Add arg-nonnull.
8222         (Makefile.am): Insert arg-nonnull.h into iconv.h.
8223         * modules/inttypes (Depends-on): Add arg-nonnull.
8224         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
8225         * modules/locale (Depends-on): Add arg-nonnull.
8226         (Makefile.am): Insert arg-nonnull.h into locale.h.
8227         * modules/math (Depends-on): Add arg-nonnull.
8228         (Makefile.am): Insert arg-nonnull.h into math.h.
8229         * modules/netdb (Depends-on): Add arg-nonnull.
8230         (Makefile.am): Insert arg-nonnull.h into netdb.h.
8231         * modules/search (Depends-on): Add arg-nonnull.
8232         (Makefile.am): Insert arg-nonnull.h into search.h.
8233         * modules/signal (Depends-on): Add arg-nonnull.
8234         (Makefile.am): Insert arg-nonnull.h into signal.h.
8235         * modules/spawn (Depends-on): Add arg-nonnull.
8236         (Makefile.am): Insert arg-nonnull.h into spawn.h.
8237         * modules/stdio (Depends-on): Add arg-nonnull.
8238         (Makefile.am): Insert arg-nonnull.h into stdio.h.
8239         * modules/stdlib (Depends-on): Add arg-nonnull.
8240         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
8241         * modules/string (Depends-on): Add arg-nonnull.
8242         (Makefile.am): Insert arg-nonnull.h into string.h.
8243         * modules/strings (Depends-on): Add arg-nonnull.
8244         (Makefile.am): Insert arg-nonnull.h into strings.h.
8245         * modules/sys_socket (Depends-on): Add arg-nonnull.
8246         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
8247         * modules/sys_stat (Depends-on): Add arg-nonnull.
8248         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
8249         * modules/sys_time (Depends-on): Add arg-nonnull.
8250         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
8251         * modules/sys_times (Depends-on): Add arg-nonnull.
8252         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
8253         * modules/sys_utsname (Depends-on): Add arg-nonnull.
8254         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
8255         * modules/time (Depends-on): Add arg-nonnull.
8256         (Makefile.am): Insert arg-nonnull.h into time.h.
8257         * modules/unistd (Depends-on): Add arg-nonnull.
8258         (Makefile.am): Insert arg-nonnull.h into unistd.h.
8259         * modules/wchar (Depends-on): Add arg-nonnull.
8260         (Makefile.am): Insert arg-nonnull.h into wchar.h.
8261         * modules/argv-iter (Depends-on): Add arg-nonnull.
8262         * tests/test-canonicalize.c (null_ptr): New function.
8263         (main): Use it.
8264         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
8265         (main): Use it.
8266         * tests/test-memmem.c (null_ptr): New function.
8267         (main): Use it.
8268         Reported by Jim Meyering.
8269
8270 2009-12-10  Bruno Haible  <bruno@clisp.org>
8271
8272         Use spaces for indentation, not tabs.
8273         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
8274         * m4/*.m4: Untabify.
8275         * build-aux/*.h: Untabify.
8276         * tests/**/*.[hc]: Untabify.
8277         * README: New section "Indent with spaces, not TABs", based on
8278         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
8279         * NEWS: Mention the change.
8280
8281 2009-12-10  Bruno Haible  <bruno@clisp.org>
8282
8283         pty test: Fix link error.
8284         * modules/pty-tests (Makefile.am): Add the default LDADD value to
8285         test_pty_LDADD.
8286
8287 2009-12-07  Simon Josefsson  <simon@josefsson.org>
8288
8289         * modules/pty: New file.
8290         * modules/pty-tests: New file.
8291         * m4/pty.m4: New file.
8292         * tests/test-pty.c: New file.
8293         * doc/glibc-headers/pty.texi: Modified.
8294         * doc/glibc-functions/forkpty.texi: Modified.
8295         * doc/glibc-functions/openpty.texi: Modified.
8296
8297 2009-12-10  Bruno Haible  <bruno@clisp.org>
8298
8299         Avoid syntax error in C++ mode.
8300         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
8301
8302 2009-12-10  Bruno Haible  <bruno@clisp.org>
8303
8304         Use sed with option -e.
8305         * gnulib-tool (func_version, func_emit_copyright_notice,
8306         func_emit_initmacro_end, func_import, func_create_testdir): Pass
8307         option -e to sed.
8308         * modules/link-warning (Makefile.am): Likewise.
8309
8310 2009-12-10  Jim Meyering  <meyering@redhat.com>
8311
8312         mgetgroups: do not write bytes beyond end of malloc'd buffer
8313         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
8314         username, we call getgroups with a one-element-shorter buffer,
8315         but still told it the length was original, max_n_groups.
8316
8317 2009-12-09  Eric Blake  <ebb9@byu.net>
8318
8319         cloexec: relax license
8320         * modules/cloexec (Maintainer): Add myself.
8321         (License): Use LGPL, not GPL.
8322
8323         link-warning: optimize generation
8324         * modules/link-warning (Makefile.am): Reduce process usage.
8325
8326 2009-12-09  Bruno Haible  <bruno@clisp.org>
8327
8328         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
8329         workaround was added on 2009-11-17.
8330
8331 2009-12-09  Jim Meyering  <meyering@redhat.com>
8332             Bruno Haible  <bruno@clisp.org>
8333
8334         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
8335         * modules/link-warning (Makefile.am): Make the comment-removing sed
8336         command more robust in the face of bootstrap-prepended comment lines.
8337
8338 2009-12-09  Bruno Haible  <bruno@clisp.org>
8339
8340         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
8341         most one group.
8342
8343 2009-12-09  Simon Josefsson <simon@josefsson.org>
8344             Bruno Haible  <bruno@clisp.org>
8345
8346         * build-aux/link-warning.h: Add copyright notice.
8347         * modules/link-warning (Makefile.am): Generate link-warning.h from
8348         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
8349         * NEWS: Mention change in link-warning module.
8350         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
8351         * modules/dirent (Makefile.am): Add dependency to dirent.h.
8352         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
8353         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
8354         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
8355         * modules/math (Makefile.am): Add dependency to math.h.
8356         * modules/search (Makefile.am): Add dependency to search.h.
8357         * modules/signal (Makefile.am): Add dependency to signal.h.
8358         * modules/spawn (Makefile.am): Add dependency to spawn.h.
8359         * modules/stdio (Makefile.am): Add dependency to stdio.h.
8360         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
8361         * modules/string (Makefile.am): Add dependency to string.h.
8362         * modules/strings (Makefile.am): Add dependency to strings.h.
8363         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
8364         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
8365         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
8366         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
8367         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
8368         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
8369         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
8370         * modules/unistd (Makefile.am): Add dependency to unistd.h.
8371         * modules/wchar (Makefile.am): Add dependency to wchar.h.
8372
8373 2009-12-09  Bruno Haible  <bruno@clisp.org>
8374
8375         fchdir: Optimize away rpl_fstat when possible.
8376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
8377         REPLACE_OPEN_DIRECTORY.
8378         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
8379
8380 2009-12-09  Bruno Haible  <bruno@clisp.org>
8381
8382         * lib/fchdir.c: Update comment.
8383
8384 2009-12-09  Bruno Haible  <bruno@clisp.org>
8385
8386         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
8387
8388 2009-12-08  Eric Blake  <ebb9@byu.net>
8389
8390         fchdir: avoid memory leak on re-registration.
8391         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
8392
8393 2009-12-08  Jim Meyering  <meyering@redhat.com>
8394
8395         init.sh: avoid Solaris 10 /bin/sh portability problem
8396         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
8397         sourced script:
8398           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
8399           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
8400           bar
8401         tests/init.sh relied on that, accepting a --set-path=DIR argument,
8402         and two tests used that idiom.
8403         * tests/init.sh: Update suggested usage comments.
8404         (path_prepend_): New function, to be used in place
8405         of the --src-path=DIR option.
8406         (setup_): Move PATH-prepending code into path_prepend_.
8407         * tests/test-pread.sh: Adapt to new usage.
8408         * tests/test-xalloc-die.sh: Likewise.
8409
8410 2009-12-08  Simon Josefsson  <simon@josefsson.org>
8411
8412         * doc/gnulib.texi (Glibc pty.h): Add.
8413         * doc/glibc-functions/forkpty.texi: Add.
8414         * doc/glibc-functions/openpty.texi: Add.
8415         Suggested by Bruno Haible.
8416
8417 2009-12-08  Eric Blake  <ebb9@byu.net>
8418
8419         fchdir: fix logic bugs
8420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
8421         * tests/test-fchdir.c (main): Enhance test.
8422         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
8423         is in use.
8424
8425         dup2: fix logic bugs
8426         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
8427         REPLACE_DUP2 to decide when rpl_dup2 is needed.
8428         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
8429         exists.
8430         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
8431
8432 2009-12-07  Eric Blake  <ebb9@byu.net>
8433
8434         unlink: fix m4 detection
8435         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
8436
8437         unistd-safer: add unit test
8438         * modules/unistd-safer-tests: New file.
8439         * tests/test-dup-safer.c: Likewise.
8440         * tests/test-cloexec.c (setmode): Avoid compiler warning.
8441         * tests/test-dup2.c (setmode): Likewise.
8442         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
8443
8444         cloexec: preserve text vs. binary across dup_cloexec
8445         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
8446         mode.
8447         * modules/dup2-tests (Depends-on): Add binary-io.
8448         * modules/cloexec-tests (Depends-on): Likewise.
8449         * tests/test-dup2.c (setmode, is_mode): New helpers.
8450         (main): Add tests that translation mode is preserved.
8451         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
8452         Reported by Bruno Haible.
8453
8454         mgetgroups: reduce duplicate listings
8455         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
8456         resulting array.
8457         * tests/test-chown.h (test_chown): Simplify client.
8458         * tests/test-lchown.h (test_lchown): Likewise.
8459
8460 2009-12-06  Bruno Haible  <bruno@clisp.org>
8461
8462         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
8463         value.
8464
8465 2009-12-06  Bruno Haible  <bruno@clisp.org>
8466
8467         * lib/progname.c: Include stdio.h, stdlib.h.
8468         (set_program_name): Reject a NULL argument.
8469
8470 2009-12-05  Eric Blake  <ebb9@byu.net>
8471
8472         pipe2-safer: new module
8473         * modules/pipe2-safer: New file.
8474         * lib/unistd-safer.h (pipe2_safer): New prototype.
8475         * lib/unistd--.h (pipe2): New wrapper.
8476         * lib/pipe-safer.c (pipe2_safer): New function.
8477         * modules/pipe (Depends-on): Add pipe2-safer.
8478         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
8479
8480         stdlib-safer: preserve cloexec flag for mkostemp[s]
8481         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
8482         fd_safer_flag.
8483
8484         unistd-safer: allow preservation of cloexec status via flag
8485         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
8486         prototypes.
8487         * lib/dup-safer.c (dup_safer_flag): New function.
8488         * lib/fd-safer.c (fd_safer_flag): Likewise.
8489         * modules/cloexec (configure.ac): Set witness.
8490
8491         test-dup2: enhance test
8492         * modules/dup2-tests (Depends-on): Add cloexec.
8493         * tests/test-dup2.c (main): Enhance test.
8494
8495         cloexec: add dup_cloexec
8496         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
8497         header and comments.
8498         * lib/cloexec.c (set_cloexec_flag): Add comments.
8499         (dup_cloexec): New function, with mingw implementation borrowed
8500         from...
8501         * lib/w32spawn.h (dup_noinherit): ...here.
8502         * modules/execute (Depends-on): Add cloexec.
8503         * modules/pipe (Depends-on): Likewise.
8504         * modules/cloexec (Depends-on): Add dup2.
8505         * modules/cloexec-tests (Files): New file.
8506         * tests/test-cloexec.c: Likewise.
8507
8508         test-xalloc-die: fix test for mingw
8509         * modules/xalloc-die-tests (Files): Add tests/init.sh.
8510         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
8511         directory and .exe suffix off argv[0] output.
8512
8513         test-fseeko: fix test for mingw
8514         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
8515         than undefining fseek, so test will pass on mingw.
8516
8517 2009-12-05  Bruno Haible  <bruno@clisp.org>
8518
8519         * lib/progname.h (set_program_name): Clarify specification.
8520         * lib/progname.c (set_program_name): Likewise.
8521         Reported by Jim Meyering.
8522
8523 2009-12-05  Jim Meyering  <meyering@redhat.com>
8524
8525         maint.mk: backslash-escape parens in default regexp
8526         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
8527         backslash-escape the literal parentheses.
8528
8529         maint.mk: news-date-check: use grep -E
8530         * top/maint.mk (today): Define a Make variable, not a...
8531         (news-date-check): ...shell variable.
8532         (news-date-regexp): Use the Make variable.
8533         Use grep's -E option.  Change the failing diagnostic to mention
8534         the variable, $(news-date-regexp).
8535
8536 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
8537
8538         maintainer-makefile: allow customization of NEWS entry format
8539         * top/maint.mk (news-date-regexp): New overridable variable.
8540         (news-date-check): Use it.
8541
8542 2009-12-04  Eric Blake  <ebb9@byu.net>
8543
8544         mgetgroups: add xgetgroups, and avoid ENOSYS failures
8545         * lib/mgetgroups.h (xgetgroups): New prototype.
8546         * lib/mgetgroups.c (xgetgroups): New wrapper.
8547         (mgetgroups): Handle ENOSYS.
8548         * modules/mgetgroups (Depends-on): Add realloc.
8549         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
8550
8551         mgetgroups: avoid argument promotion issues with -1
8552         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
8553         for invalid gid_t.
8554         * tests/test-chown.h (getegid, test_chown): Likewise.
8555         * tests/test-lchown.h (getegid, test_lchown): Likewise.
8556
8557 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
8558
8559         exclude: Fix header file problems.
8560         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
8561
8562 2009-12-01  Jim Meyering  <meyering@redhat.com>
8563
8564         fts: fts_open: do not let an empty string cause immediate failure
8565         This is required in support of GNU rm, for which the command
8566         "rm A '' B" must process and remove both A and B, in spite of
8567         the empty string argument.
8568         * lib/fts.c (fts_open): Do not let the presence of an empty string
8569         cause fts_open to fail immediately.  Most fts-using tools must be
8570         able to process all arguments, in order, and can be expected to
8571         diagnose such arguments themselves.
8572
8573 2009-11-30  Eric Blake  <ebb9@byu.net>
8574
8575         utimens: fix compilation error
8576         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
8577         Declare variable at right scope.
8578
8579 2009-11-29  Jim Meyering  <meyering@redhat.com>
8580
8581         bootstrap: handle perl-5.11's changed --version output
8582         * build-aux/bootstrap (get_version): Handle perl separately,
8583         since perl-5.11's --version output is different.
8584
8585 2009-11-28  Jim Meyering  <meyering@redhat.com>
8586
8587         userspec: depend on the inttostr module, too
8588         * modules/userspec (Depends-on): Add inttostr.
8589
8590         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
8591         * lib/userspec.c (parse_with_separator): Do not accept a user ID
8592         number of MAXUID when it evaluates to (uid_t) -1.
8593         Likewise for group ID.  Reported by Matt McCutchen in
8594         <http://savannah.gnu.org/bugs/?28113>
8595
8596         userspec: reformat to use spaces, not TABs
8597         * lib/userspec.c: Expand TABs to spaces.
8598         Add Emacs' "indent-tabs-mode: nil" hint.
8599
8600 2009-11-27  Eric Blake  <ebb9@byu.net>
8601
8602         getopt-gnu: flush out another BSD bug
8603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
8604         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
8605         flush out BSD bug.
8606         * tests/test-getopt.h (test_getopt): End lists with NULL.
8607         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8608         (test_getopt_long_posix): Enhance test.
8609         * modules/getopt-posix-tests (Depends-on): Add stdbool.
8610         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
8611         getopt-gnu.
8612         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8613         Likewise.
8614
8615 2009-11-27  Simon Josefsson  <simon@josefsson.org>
8616
8617         * modules/idpriv-droptemp-tests (Notice): Fix text.
8618
8619 2009-11-27  Jim Meyering  <meyering@redhat.com>
8620
8621         test-xalloc-die: avoid spurious failure due to libtool argv difference
8622         In a libtool-enabled project, this test would fail due to a difference
8623         in the emitted program name, e.g.,
8624         -test-xalloc-die: memory exhausted
8625         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8626         Use program to avoid that.
8627         * modules/xalloc-die-tests (Depends-on): Add progname.
8628         * tests/test-xalloc-die.c: Include progname.h".
8629         (program_name): Remove decl.
8630         (main): Call set_program_name.
8631         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8632
8633 2009-11-26  Richard Jones  <rjones@redhat.com>
8634
8635         w32sock: leave win32 error in place.
8636         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8637
8638 2009-11-26  Eric Blake  <ebb9@byu.net>
8639
8640         init.sh: suggest to use skip_ and fail_ functions in comments
8641         * tests/init.sh: Add a sentence.
8642
8643 2009-11-25  Bruno Haible  <bruno@clisp.org>
8644
8645         init.sh: add documentation in comments
8646         * tests/init.sh: Add some developer and user documentation.
8647
8648 2009-11-26  Jim Meyering  <meyering@redhat.com>
8649
8650         init.sh: accommodate even those who specify bogus srcdir manually
8651         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8652         configure-time tests to be sanitized, so that there is no need to
8653         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8654         (with no double quotes) suffices.  However, since tests may be
8655         invoked manually, and since you may explicitly set srcdir to the
8656         name of a directory containing spaces, do quote its uses here.
8657         * tests/test-pread.sh: Likewise.
8658         Suggested by Bruno Haible.
8659
8660         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8661         * tests/test-pread.sh: Write no data into the pipe, because
8662         test-pread actually reads none.  This avoids a diagnostic,
8663         "bash: echo: write error: Broken pipe", that arises in the unusual
8664         event something is ignoring SIGPIPE, and might be interpreted
8665         as some sort of failure.  Reported by Bruno Haible.
8666
8667 2009-11-25  Jim Meyering  <meyering@redhat.com>
8668
8669         test-pread: cover failure with ESPIPE and EINVAL
8670         * tests/test-pread.c (main): Test for failure, too.
8671         * tests/test-pread.sh: Invoke with stdin on a pipe.
8672         Suggested by Eric Blake.
8673
8674         pread: improvement and fix
8675         * modules/pread (Depends-on): Depend on lseek, for portability to
8676         e.g., mingw.  Suggested by Eric Blake.
8677         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8678
8679         unistd.in.h: correct declaration of pread
8680         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8681         Reported by Richard W.M. Jones.
8682
8683         test-pread.sh: distribute the test script
8684         * modules/pread-tests (Files): Include test-pread.sh.
8685
8686         test-pread.sh: clean up
8687         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8688         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8689         That is unnecessary, since it's always ".".
8690         Suggestion from Eric Blake.
8691
8692         test-pread.sh: make executable
8693         * tests/test-pread.sh: Set executable bit.
8694         Reported by Eric Blake.
8695
8696         correct typo in test-pread.sh
8697         * tests/test-pread.sh: Add #! line.
8698
8699         test pread
8700         * tests/test-pread.c: New file.
8701         * tests/test-pread.sh: Likewise.
8702         * modules/pread-tests: Likewise.
8703
8704         pread: new module
8705         * modules/pread: New file.
8706         * lib/unistd.in.h (pread): Define/declare.
8707         * lib/pread.c (pread): New file.
8708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8709         * modules/unistd (Makefile.am): Substitute witnesses.
8710         * doc/posix-functions/pread.texi (pread): Update.
8711         * MODULES.html.sh: Add pread.
8712
8713 2009-11-25  Jim Meyering  <meyering@redhat.com>
8714
8715         tests/init.sh: new file to be used via most *.sh tests
8716         * tests/init.sh: New file.
8717
8718 2009-11-25  Eric Blake  <ebb9@byu.net>
8719
8720         utimens: work around older Linux failure with symlinks
8721         * lib/utimens.c (lutimensat_works_really): New variable.
8722         (fdutimens, lutimens): Use it to manage kernels that support
8723         nanosecond times on files, but not on symlinks.
8724         Reported by OndÅ™ej Vašík.
8725
8726         utimes: fix configure grammar
8727         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8728
8729 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8730
8731         regex: Fix fastmap for multibyte character ranges.
8732         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8733         characters when a multibyte character range is included.
8734
8735 2009-11-22  Andy Wingo  <wingo@pobox.com>
8736
8737         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8738         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8739
8740 2009-11-24  Bruno Haible  <bruno@clisp.org>
8741
8742         doc: Most *_l functions exist in MacOS X 10.5.
8743         * doc/posix-functions/duplocale.texi: Update platforms list.
8744         * doc/posix-functions/freelocale.texi: Likewise.
8745         * doc/posix-functions/newlocale.texi: Likewise.
8746         * doc/posix-functions/uselocale.texi: Likewise.
8747         * doc/posix-functions/isalnum_l.texi: Likewise.
8748         * doc/posix-functions/isalpha_l.texi: Likewise.
8749         * doc/posix-functions/isblank_l.texi: Likewise.
8750         * doc/posix-functions/iscntrl_l.texi: Likewise.
8751         * doc/posix-functions/isdigit_l.texi: Likewise.
8752         * doc/posix-functions/isgraph_l.texi: Likewise.
8753         * doc/posix-functions/islower_l.texi: Likewise.
8754         * doc/posix-functions/isprint_l.texi: Likewise.
8755         * doc/posix-functions/ispunct_l.texi: Likewise.
8756         * doc/posix-functions/isspace_l.texi: Likewise.
8757         * doc/posix-functions/isupper_l.texi: Likewise.
8758         * doc/posix-functions/iswalnum_l.texi: Likewise.
8759         * doc/posix-functions/iswalpha_l.texi: Likewise.
8760         * doc/posix-functions/iswblank_l.texi: Likewise.
8761         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8762         * doc/posix-functions/iswctype_l.texi: Likewise.
8763         * doc/posix-functions/iswdigit_l.texi: Likewise.
8764         * doc/posix-functions/iswgraph_l.texi: Likewise.
8765         * doc/posix-functions/iswlower_l.texi: Likewise.
8766         * doc/posix-functions/iswprint_l.texi: Likewise.
8767         * doc/posix-functions/iswpunct_l.texi: Likewise.
8768         * doc/posix-functions/iswspace_l.texi: Likewise.
8769         * doc/posix-functions/iswupper_l.texi: Likewise.
8770         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8771         * doc/posix-functions/isxdigit_l.texi: Likewise.
8772         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8773         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8774         * doc/posix-functions/strcoll_l.texi: Likewise.
8775         * doc/posix-functions/strfmon_l.texi: Likewise.
8776         * doc/posix-functions/strftime_l.texi: Likewise.
8777         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8778         * doc/posix-functions/strxfrm_l.texi: Likewise.
8779         * doc/posix-functions/tolower_l.texi: Likewise.
8780         * doc/posix-functions/toupper_l.texi: Likewise.
8781         * doc/posix-functions/towctrans_l.texi: Likewise.
8782         * doc/posix-functions/towlower_l.texi: Likewise.
8783         * doc/posix-functions/towupper_l.texi: Likewise.
8784         * doc/posix-functions/wcscoll_l.texi: Likewise.
8785         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8786         * doc/posix-functions/wctrans_l.texi: Likewise.
8787         * doc/posix-functions/wctype_l.texi: Likewise.
8788         * doc/glibc-functions/strptime_l.texi: Likewise.
8789         * doc/glibc-functions/strtod_l.texi: Likewise.
8790         * doc/glibc-functions/strtof_l.texi: Likewise.
8791         * doc/glibc-functions/strtol_l.texi: Likewise.
8792         * doc/glibc-functions/strtold_l.texi: Likewise.
8793         * doc/glibc-functions/strtoll_l.texi: Likewise.
8794         * doc/glibc-functions/strtoul_l.texi: Likewise.
8795         * doc/glibc-functions/strtoull_l.texi: Likewise.
8796         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8797         * doc/glibc-functions/wcstod_l.texi: Likewise.
8798         * doc/glibc-functions/wcstof_l.texi: Likewise.
8799         * doc/glibc-functions/wcstol_l.texi: Likewise.
8800         * doc/glibc-functions/wcstold_l.texi: Likewise.
8801         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8802         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8803         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8804
8805 2009-11-24  Bruno Haible  <bruno@clisp.org>
8806
8807         duplocale: Fix logic bug.
8808         * lib/duplocale.c: Don't include <langinfo.h>.
8809         (_NL_LOCALE_NAME): Remove macro.
8810         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8811         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8812
8813 2009-11-23  Jim Meyering  <meyering@redhat.com>
8814
8815         test-update-copyright: don't hard-code /usr/bin/perl
8816         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8817         perl to print the current year.  Gilles Espinasse reported that
8818         the replaced use of perl was hard-coded as /usr/bin/perl.
8819
8820 2009-11-23  Bruno Haible  <bruno@clisp.org>
8821
8822         duplocale: Add support for glibc 2.3.x.
8823         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8824
8825 2009-11-22  Bruno Haible  <bruno@clisp.org>
8826
8827         vasnprintf: Tiny optimization.
8828         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8829         MacOS X.
8830
8831 2009-11-22  Bruno Haible  <bruno@clisp.org>
8832
8833         Tests for module 'duplocale'.
8834         * modules/duplocale-tests: New file.
8835         * tests/test-duplocale.c: New file.
8836
8837         New module 'duplocale'.
8838         * m4/duplocale.m4: New file.
8839         * lib/locale.in.h (duplocale): New declaration.
8840         * lib/duplocale.c: New file.
8841         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8842         gl_LOCALE_H_DEFAULTS): New macros.
8843         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8844         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8845         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8846         REPLACE_DUPLOCALE.
8847         * modules/duplocale: New file.
8848         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8849
8850 2009-11-22  Bruno Haible  <bruno@clisp.org>
8851
8852         * modules/locale-tests (configure.ac): Test for newlocale function.
8853         * tests/test-locale.c: When the system has extended locale functions,
8854         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8855
8856         locale: Make locale_t available when possible.
8857         * lib/locale.in.h: Include <xlocale.h> when it exists.
8858         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8859         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8860         * modules/locale (Depends-on): Add extensions.
8861         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8862         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8863
8864 2009-11-22  Bruno Haible  <bruno@clisp.org>
8865
8866         Add comments.
8867         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8868         invocation.
8869         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8870         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8871         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8872
8873 2009-11-22  Bruno Haible  <bruno@clisp.org>
8874
8875         error: account for the possibility of freopen (stdout).
8876         * lib/error.c: Include <unistd.h>.
8877         (flush_stdout): New function, extracted from error and error_at_line.
8878         Determine stdout's fd dynamically.
8879         (error, error_at_line): Invoke flush_stdout.
8880         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8881         * modules/error (Depends-on): Add unistd.
8882
8883 2009-11-22  Bruno Haible  <bruno@clisp.org>
8884
8885         diffseq: Add comment.
8886         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8887
8888 2009-11-22  Jim Meyering  <meyering@redhat.com>
8889
8890         c-stack: avoid defining an unused static function
8891         * lib/c-stack.c (find_stack_direction): Do not define this function
8892         when it will not be used.
8893
8894         diffseq: avoid spurious gcc warnings
8895         * lib/diffseq.h (IF_LINT2): Define.
8896         (compareseq): Use it to initialize two members of "part".
8897         This avoids two used-uninitialized warnings.
8898
8899 2009-11-21  Jim Meyering  <meyering@redhat.com>
8900
8901         c-stack: avoid "ignoring return value of `write'" warning
8902         * lib/c-stack.c: Include "ignore-value.h".
8903         (die): Explicitly ignore each write return value.
8904         * modules/c-stack (Depends-on): Add ignore-value.
8905
8906 2009-11-21  Bruno Haible  <bruno@clisp.org>
8907
8908         diffseq: reduce scope of variable 'best'.
8909         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8910         variable, earlier used for two different purposes.
8911
8912 2009-11-21  Jim Meyering  <meyering@redhat.com>
8913
8914         diffseq: remove useless assignment to "best"
8915         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8916         assignment.  At that point "best" is already guaranteed to be zero.
8917
8918 2009-11-20  Eric Blake  <ebb9@byu.net>
8919
8920         build: mention ftp redirector in release announcements
8921         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8922         values that used to come from cfg.mk; mention FTP redirect URL.
8923         * build-aux/announce-gen: Mention the mirror list.
8924         Suggested by Karl Berry.
8925
8926         nanosleep: improve port to mingw
8927         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8929         LIB_NANOSLEEP, but only when needed.
8930         * modules/select (Link): Document LIBSOCKET.
8931         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8932         enough.
8933
8934         nanosleep: work around cygwin bug
8935         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8936         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8937         bug.
8938         (getnow): Delete, not needed.
8939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8940         LIB_CLOCK_GETTIME.
8941         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8942         clock-time, gettime.
8943         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8944         bug.
8945         * modules/nanosleep-tests: New test.
8946         * tests/test-nanosleep.c: New file.
8947
8948         sleep: work around cygwin bug
8949         * lib/sleep.c (rpl_sleep): Work around the bug.
8950         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8951         (gl_PREREQ_SLEEP): Delete unused macro.
8952         * modules/sleep (Depends-on): Add verify.
8953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8954         * modules/unistd (Makefile.am): Substitute witness.
8955         * lib/unistd.in.h (sleep): Update prototype.
8956         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8957         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8958         * modules/sleep-tests (Depends-on): Check for alarm.
8959
8960 2009-11-20  Jim Meyering  <meyering@redhat.com>
8961
8962         maint.mk: improve sc_prohibit_magic_number_exit
8963         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8964         so it does not match uses like System.exit(1).
8965         Add comments showing how to correct all offenders.
8966
8967 2009-11-19  Eric Blake  <ebb9@byu.net>
8968
8969         xalloc-die-tests: add missing library
8970         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8971
8972         test-xvasprintf: silence compiler warnings
8973         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8974         empty string from gcc.
8975
8976 2009-11-19  Jim Meyering  <meyering@redhat.com>
8977
8978         xfreopen: new module, from coreutils
8979         * modules/xfreopen: New module.
8980         * lib/xfreopen.c: New file.
8981         * lib/xfreopen.h: New file.
8982         * MODULES.html.sh (File stream based Input/Output"): Add it.
8983
8984 2009-11-19  Eric Blake  <ebb9@byu.net>
8985
8986         manywarnings: depend on warnings
8987         * modules/manywarnings (Depends-on): Add warnings.
8988
8989         build: avoid compiler warnings
8990         * lib/select.c (rpl_select): Delete unused variable.
8991         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8992
8993 2009-11-18  Eric Blake  <ebb9@byu.net>
8994
8995         tests: avoid false negative with --with-packager
8996         * tests/test-version-etc.sh: Discard packager information.
8997         * tests/test-argp-version-etc-1.sh: Likewise.
8998         Reported by Mike Frysinger.
8999
9000         utimens: fix regression on Solaris
9001         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
9002         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
9003         can only change fd timestamps via futimesat.  Instead, use an
9004         additional witness macro to avoid BSD bug.
9005         Reported by Jim Meyering.
9006
9007 2009-11-17  Eric Blake  <ebb9@byu.net>
9008
9009         usleep: use it to simplify tests
9010         * modules/stat-time-tests (Depends-on): Add usleep.
9011         (configure.ac): Drop usleep check.
9012         * modules/chown-tests (Depends-on, configure.ac): Likewise.
9013         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
9014         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
9015         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
9016         * modules/openat-tests (Depends-on, configure.ac): Likewise.
9017         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
9018         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
9019         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
9020         Likewise.
9021         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
9022         * tests/test-lchown.h (nap): Likewise.
9023         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
9024         * tests/test-stat-time.c (nap): Likewise.
9025         * tests/test-utimens-common.h (nap): Update comments.
9026
9027         usleep: new module
9028         * modules/usleep: New file.
9029         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
9030         * lib/usleep.c (usleep): Likewise.
9031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9032         * modules/unistd (Makefile.am): Substitute witnesses.
9033         * lib/unistd.in.h (usleep): Add declaration.
9034         * doc/pastposix-functions/usleep.texi (usleep): Document this.
9035         * MODULES.html.sh (Date and time): Likewise.
9036         * modules/usleep-tests (Depends-on): New test.
9037         * tests/test-usleep.c: New file.
9038
9039         chown: work around OpenBSD bug
9040         * lib/chown.c (rpl_chown): Work around the bug.
9041         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
9042         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
9043         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
9044         * modules/chown (Depends-on): Add stdbool.
9045         * modules/lchown (Depends-on): Likewise.
9046         * doc/posix-functions/chown.texi (chown): Document the bug.
9047         * doc/posix-functions/lchown.texi (lchown): Likewise.
9048         * tests/test-lchown.h (test_chown): Relax test.
9049
9050         mkstemp: avoid conflict with C++ keyword template
9051         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
9052         * lib/mkostemp.c (mkostemp): Likewise.
9053         * lib/mkostemps.c (mkostemps): Likewise.
9054         * lib/mkstemp.c (mkstemp): Likewise.
9055         * lib/mkstemps.c (mkstemps): Likewise.
9056
9057         xalloc-die-tests: optimize
9058         * tests/test-xalloc-die.sh: Reduce number of processes.
9059
9060 2009-11-17  Simon Josefsson  <simon@josefsson.org>
9061
9062         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
9063         patch from ludo@gnu.org (Ludovic Courtès).
9064
9065 2009-11-17  Jim Meyering  <meyering@redhat.com>
9066
9067         version-etc: use proper license string
9068         * modules/version-etc (License): Use LGPL, not LGPLv3+.
9069         * modules/version-etc-fsf: Likewise.
9070
9071 2009-11-17  Simon Josefsson  <simon@josefsson.org>
9072
9073         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
9074         printed to stdout.  Deal with EOL differences.
9075
9076 2009-11-17  Eric Blake  <ebb9@byu.net>
9077
9078         unsetenv: work around Solaris bug
9079         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
9080         * lib/unsetenv.c (rpl_unsetenv): Work around it.
9081         Reported by Jim Meyering.
9082
9083         vasnprintf: avoid compiler warnings
9084         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
9085         variables.
9086         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
9087
9088 2009-11-17  Simon Josefsson  <simon@josefsson.org>
9089
9090         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
9091         settings since xalloc-die is no longer the self test,
9092         xalloc-die.sh is.
9093
9094 2009-11-17  Jim Meyering  <meyering@redhat.com>
9095
9096         test-xalloc-die.sh: make the code agree with the commit log
9097         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
9098         at the end, just in case you happen to have a test-xalloc-die
9099         program in some other PATH directory.
9100
9101         test-xalloc-die.sh: fix a portability bug
9102         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
9103         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
9104         Otherwise, argv[0] (as often seen in diagnostics) would be too
9105         system-dependent, sometimes with, and sometimes without the leading "./".
9106
9107         version-etc-fsf: relax license to LGPLv3+
9108         * modules/version-etc-fsf (License): Relax license.
9109
9110 2009-11-16  Eric Blake  <ebb9@byu.net>
9111
9112         xalloc-die-tests: avoid printing null pointer
9113         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
9114         shell script.
9115         * tests/test-xalloc-die.c (program_name): Declare.
9116         * tests/test-xalloc-die.sh (tmpfiles): New file.
9117
9118         setenv, unsetenv: work around various bugs
9119         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
9120         (setenv) [HAVE_SETENV]: Work around bugs.
9121         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
9122         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
9123         for bugs.
9124         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
9125         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
9126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
9127         * modules/stdlib (Makefile.am): Update substitutions.
9128         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
9129         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
9130         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
9131         * modules/setenv-tests: New test.
9132         * modules/unsetenv-tests: Likewise.
9133         * tests/test-setenv.c: New file.
9134         * tests/test-unsetenv.c: Likewise.
9135
9136 2009-11-16  Jim Meyering  <meyering@redhat.com>
9137
9138         version-etc: relax license to LGPLv3+
9139         * modules/version-etc (License): Relax license.
9140
9141         better AC_REQUIRE expanded-before-required-warning avoidance
9142         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
9143         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
9144         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
9145         which is no longer needed.
9146
9147 2009-11-16  Eric Blake  <ebb9@byu.net>
9148
9149         test-freading: clean up temporary file
9150         * tests/test-freading.c (main): Remove file on success, and use
9151         ASSERT more liberally.
9152         Reported by Jim Meyering.
9153
9154 2009-11-16  Jim Meyering  <meyering@redhat.com>
9155
9156         avoid new AC_REQUIRE expanded-before-required warnings
9157         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
9158         merely using it.
9159         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
9160         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
9161
9162 2009-11-15  Simon Josefsson  <simon@josefsson.org>
9163
9164         * tests/test-xalloc-die.c: New file.
9165         * modules/xalloc-die-tests: New file.
9166         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
9167         XFAIL_TESTS so it can be appended by modules.
9168
9169 2009-11-15  Simon Josefsson  <simon@josefsson.org>
9170
9171         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
9172         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
9173
9174 2009-11-14  Eric Blake  <ebb9@byu.net>
9175
9176         fnmatch: avoid compiler warning
9177         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
9178         to silence compiler warning about mismatch signedness in ?:.
9179         Reported by Robert Millan.
9180
9181         intprops: add double-inclusion guard
9182         * lib/intprops.h: Allow idempotent includes.
9183         Suggested by Bruce Korb.
9184
9185         openat: detect Solaris fchownat bug
9186         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
9187         penalizing glibc chownat when only lchownat is broken.
9188         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
9189         trailing slash bugs.
9190         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
9191         * modules/openat-tests (Files): Include more files.
9192         (Depends-on): Add mgetgroups, sleep, stat-time.
9193         (configure.ac): Add additional checks.
9194         (Makefile.am): Build new test.
9195         * tests/test-fchownat.c: New file.
9196
9197         lchown: detect Solaris and FreeBSD bug
9198         * lib/lchown.c (rpl_lchown): Work around bug.
9199         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
9200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9201         * modules/unistd (Makefile.am): Populate it.
9202         * lib/unistd.in.h (lchown): Update declaration.
9203         * doc/posix-functions/lchown.texi (lchown): Document the bug.
9204         * modules/lchown-tests: New file.
9205         * tests/test-lchown.h (test_lchown): Likewise.
9206         * tests/test-lchown.c (main): Likewise.
9207
9208         chown: detect Solaris and FreeBSD bug
9209         * lib/chown.c (rpl_chown): Work around bug.
9210         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
9211         (gl_PREREQ_CHOWN): Delete.
9212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9213         * modules/unistd (Makefile.am): Populate it.
9214         * lib/unistd.in.h (chown): Update declaration.
9215         * lib/lchown.c (chown): Update client.
9216         * modules/lchown (Depends-on): Add lstat.
9217         * doc/posix-functions/chown.texi (chown): Document the bug.
9218         * doc/posix-functions/getgroups.texi (getgroups): Document
9219         getgroups pitfall.
9220         * modules/chown-tests: New file.
9221         * tests/test-chown.h (test_chown): Likewise.
9222         * tests/test-chown.c (main): Likewise.
9223
9224 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
9225
9226         gnulib-tool: correctly detect absence of m4 directories
9227         * gnulib-tool: Avoid extra newline on data passed to wc -l.
9228
9229 2009-11-14  Jim Meyering  <meyering@redhat.com>
9230
9231         maint.mk: Prohibit inclusion of "xalloc.h" without use.
9232         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9233
9234 2009-11-14  John W. Eaton  <jwe@gnu.org>
9235
9236         strftime.h: wrap funtion declaration in extern "C" block
9237         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
9238
9239 2009-11-13  Eric Blake  <ebb9@byu.net>
9240
9241         getgroups: avoid compiler warning
9242         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
9243
9244         getgroups: work around FreeBSD bug
9245         * lib/getgroups.c (rpl_getgroups): Work around the bug.
9246         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
9247         * doc/posix-functions/getgroups.texi (getgroups): Document it.
9248         * tests/test-getgroups.c (main): Fix buffer overrun.
9249
9250         getgroups: avoid compilation failure
9251         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
9252         * modules/getgroups (Depends-on): Add stdint.
9253
9254 2009-11-13  Jim Meyering  <meyering@redhat.com>
9255
9256         test-getgroups: avoid compilation failure
9257         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
9258
9259 2009-11-13  Eric Blake  <ebb9@byu.net>
9260
9261         mgetgroups: new module, taken from coreutils
9262         * modules/mgetgroups: New file.
9263         * lib/mgetgroups.h: Likewise.
9264         * lib/mgetgroups.c (mgetgroups): Likewise.
9265         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
9266         * MODULES.html.sh (Users and groups): Mention it.
9267
9268         getgroups: don't expose GETGROUPS_T to user
9269         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
9270         an element at a time if GETGROUPS_T is wrong size.
9271         * lib/getugroups.h (getugroups): Change signature.
9272         * lib/unistd.in.h (getgroups): Likewise.
9273         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
9274         signature needs fixing.
9275         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
9276         AC_TYPE_GETGROUPS.
9277         * modules/group-member (Depends-on): Add getgroups.
9278         * lib/group-member.c (group_info, get_group_info): Use gid_t.
9279         (group_member): Rely on getgroups replacement.
9280         * lib/getugroups.c (getugroups): Use gid_t.
9281         * tests/test-getgroups.c (main): Likewise.
9282         * NEWS: Mention the signature change.
9283         * doc/posix-functions/getgroups.texi (getgroups): Mention the
9284         problem with signature.
9285         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
9286         GETGROUPS_T is still useful for setgroups.
9287
9288         getgroups, getugroups: provide stubs for mingw
9289         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
9290         * lib/getugroups.c (getugroups): Likewise.
9291         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
9292         function.  Modernize replacement scheme.
9293         (gl_PREREQ_GETGROUPS): Delete.
9294         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
9295         * modules/getgroups (configure.ac): Declare witness.
9296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
9297         * modules/unistd (Depends-on): Substitute witness.
9298         * lib/unistd.in.h (getgroups): Declare replacement.
9299
9300         getgroups: avoid calling exit
9301         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
9302         drop xalloc.
9303         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
9304         dependencies.
9305         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
9306         exiting, in the rare case of malloc failure.
9307
9308         getgroups: fix logic error
9309         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
9310         has more than 20 groups.
9311         * modules/getgroups-tests: New test.
9312         * tests/test-getgroups.c: New file.
9313
9314 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9315
9316         * tests/test-base64.c: Improve.
9317
9318 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9319
9320         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
9321         Blake <ebb9@byu.net>.
9322
9323 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9324
9325         * tests/test-xvasprintf.c: Add %s%s related checks.
9326
9327 2009-11-12  Eric Blake  <ebb9@byu.net>
9328
9329         version-etc: match standards.texi style
9330         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
9331         and use <> only for URLs.
9332
9333 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
9334
9335         fts: do not fail on a submount during traversal
9336         * lib/fts.c (fts_build): Read the stat info again after opening
9337         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
9338         Original report at http://bugzilla.redhat.com/501848.
9339
9340 2009-11-12  Jim Meyering  <meyering@redhat.com>
9341
9342         bootstrap: sync from coreutils
9343         * build-aux/bootstrap (bootstrap_epilogue): New function.
9344         Use git_modules_config in one more place.  This make bootstrap's
9345         --gnulib-srcdir option more useful for testing.
9346
9347         bootstrap: generalize autoheader check
9348         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
9349         AC_CONFIG_HEADERS.
9350
9351 2009-11-11  Eric Blake  <ebb9@byu.net>
9352
9353         mkfifoat: use new modules for Solaris and BSD bugs
9354         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
9355         * lib/mkfifoat.c (mknodat): Split...
9356         * lib/mknodat.c (mknodat): ...into new file.
9357         * modules/mkfifoat (Files): Ship new file.
9358         (Depends-on): Add mkfifo, mknod.
9359         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
9360         (Depends-on): Add symlink.
9361         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
9362         redundant with test_mkfifo.h.
9363         (do_mkfifoat, do_mknodat): New helpers.
9364
9365         mknod: new module
9366         * modules/mknod: New file.
9367         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
9368         * lib/mknod.c (mknod): Likewise.
9369         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
9370         defaults.
9371         * modules/sys_stat (Makefile.am): Substitute them.
9372         * lib/sys_stat.in.h (mknod): Declare replacement.
9373         * MODULES.html.sh (Support for systems lacking POSIX:2008):
9374         Document it.
9375         * doc/posix-functions/mknod.texi (mknod): Likewise.
9376         * modules/mknod-tests: New test.
9377         * tests/test-mknod.c: Likewise.
9378
9379         mkfifo: new module
9380         * modules/mkfifo: New file.
9381         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9382         * lib/mkfifo.c (mkfifo): Likewise.
9383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
9384         defaults.
9385         * modules/sys_stat (Makefile.am): Substitute them.
9386         * lib/sys_stat.in.h (mkfifo): Declare replacement.
9387         * MODULES.html.sh (Support for systems lacking POSIX:2008):
9388         Document it.
9389         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
9390         * modules/mkfifo-tests: New test.
9391         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
9392         from test-mkfifoat.c.
9393         * tests/test-mkfifo.c: New file.
9394
9395         readlink: detect FreeBSD bug
9396         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
9397         slash on symlink.
9398         * doc/posix-functions/readlink.texi (readlink): Document the bug.
9399         * tests/test-readlink.h (test_readlink): Enhance test.
9400
9401         symlink: detect FreeBSD bug
9402         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
9403         slash on symlink.
9404         * doc/posix-functions/symlink.texi (symlink): Document the bug.
9405         * tests/test-symlink.h (test_symlink): Enhance test.
9406
9407 2009-11-10  Eric Blake  <ebb9@byu.net>
9408
9409         link: detect FreeBSD bug
9410         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
9411         symlink.
9412         * doc/posix-functions/link.texi (link): Document the bug.
9413         * tests/test-link.h (test_link): Enhance test.
9414         * tests/test-linkat.c (main): Update caller.
9415
9416         unlink, remove: detect FreeBSD bug
9417         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
9418         slash on symlink.
9419         * doc/posix-functions/unlink.texi (unlink): Document the bug.
9420         * doc/posix-functions/remove.texi (remove): Likewise.
9421         * tests/test-unlink.h (test_unlink): Enhance test.
9422         * tests/test-remove.c (main): Likewise.
9423
9424 2009-11-09  Eric Blake  <ebb9@byu.net>
9425
9426         rename: detect FreeBSD bug
9427         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
9428         slash on symlink.
9429         * modules/renameat-tests (Depends-on): Add filenamecat.
9430         * tests/test-rename.h (test_rename): Allow one more errno.
9431         * tests/test-renameat.c (main): Likewise.
9432         * doc/posix-functions/rename.texi (rename): Document the bug.
9433
9434         open: detect FreeBSD bug
9435         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
9436         symlink.
9437         * doc/posix-functions/open.texi (open): Document the bug.
9438         * doc/posix-functions/utimes.texi (utimes): Likewise.
9439         * tests/test-open.h (test_open): Add parameters, and test symlink
9440         handling.
9441         * tests/test-open.c (main): Adjust caller.
9442         * tests/test-fcntl-safer.c (main): Likewise.
9443         * modules/open-tests (Depends-on): Add stdbool, symlink.
9444         * modules/fcntl-safer-tests (Depends-on): Likewise.
9445         * tests/test-openat.c (main): Add test-open tests.
9446
9447         stat: detect FreeBSD bug
9448         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
9449         symlink.
9450         * doc/posix-functions/stat.texi (stat): Document the bug.
9451         * tests/test-stat.h (test_stat_func): Add argument.
9452         * tests/test-stat.c (main): Adjust caller.
9453         * tests/test-fstatat.c (main): Likewise.
9454         * modules/stat-tests (Depends-on): Add stdbool, symlink.
9455         Reported by Jim Meyering.
9456
9457 2009-11-09  James Youngman  <jay@gnu.org>
9458
9459         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
9460         * lib/strftime.c: Correct placement of #include "ignore-value.h".
9461
9462 2009-11-08  Jim Meyering  <meyering@redhat.com>
9463
9464         utimens: remove invalid futimesat call
9465         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
9466         It used the file descriptor of the target file as the DIR_FD
9467         parameter and NULL as the file name.  That caused failure with
9468         errno == EFAULT on FreeBSD-8.0-rc2
9469
9470 2009-11-07  Eric Blake  <ebb9@byu.net>
9471
9472         fflush, freadseek: use fseeko, not fseek
9473         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9474         (clear_ungetc_buffer): Avoid potential problems on large files.
9475         * lib/freadseek.c (freadseek): Likewise.
9476         * modules/freadseek (Depends-on): Add fseeko.
9477         * modules/fseek (configure.ac): Set a witness.
9478         * tests/test-fflush.c (main): Use fseeko.
9479         * tests/test-fpurge.c (fseek): Disable link warning.
9480         * tests/test-freadable.c (fseek): Likewise.
9481         * tests/test-freading.c (fseek): Likewise.
9482         * tests/test-fseeko.c (fseek): Likewise.
9483         * tests/test-ftell.c (fseek): Likewise.
9484         * tests/test-ftello.c (fseek): Likewise.
9485         * tests/test-fwritable.c (fseek): Likewise.
9486         * tests/test-fwriting.c (fseek): Likewise.
9487
9488 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9489
9490         * modules/memchr (Depends-on): Drop getpagesize dependency.
9491
9492 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9493
9494         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
9495         Reported by Ludovic Courtès.
9496         * build-aux/pmccabe2html: Improve example usage.
9497         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
9498
9499 2009-11-06  Jim Meyering  <meyering@redhat.com>
9500
9501         do-release-commit-and-tag: New module.
9502         Automate the release-commit and tag process.
9503         * build-aux/do-release-commit-and-tag: New script, from coreutils.
9504         * modules/do-release-commit-and-tag: New file.
9505         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9506
9507 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9508
9509         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
9510         because test-select.c uses inet_pton.
9511
9512 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9513
9514         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
9515         GETADDRINFO_LIB.  Bump serial number.
9516         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
9517         Suggested by Eric Blake <ebb9@byu.net>.
9518
9519 2009-11-05  Eric Blake  <ebb9@byu.net>
9520
9521         strtod: detect darwin bug
9522         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
9523         Reported by Leo Davis.
9524
9525         freopen-safer: new module
9526         * modules/freopen-safer: New module.
9527         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
9528         * lib/freopen-safer.c (freopen_safer): New file.
9529         * lib/stdio-safer.h (freopen_safer): New declaration.
9530         * lib/stdio--.h (freopen): New override.
9531         * MODULES.html.sh (File stream based Input/Output): Mention it.
9532         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
9533         freopen-safer module.
9534         * doc/posix-functions/stderr.texi (stderr): Likewise.
9535         * doc/posix-functions/stdin.texi (stdin): Likewise.
9536         * doc/posix-functions/stdout.texi (stdout): Likewise.
9537         * modules/freopen-safer-tests: New test.
9538         * tests/test-reopen-safer.c: New file.
9539
9540 2009-11-05  Jim Meyering  <meyering@redhat.com>
9541
9542         maint.mk: Prohibit inclusion of "close-stream.h" without use.
9543         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9544
9545 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9546
9547         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
9548
9549 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9550
9551         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
9552
9553 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9554
9555         Fix link error.
9556         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9557         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9558
9559 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9560
9561         * tests/test-func.c: Also test value of __func__.
9562
9563 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9564
9565         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
9566         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
9567
9568 2009-11-05  Bruno Haible  <bruno@clisp.org>
9569
9570         Fix link error.
9571         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9572         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9573         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
9574
9575 2009-11-05  Bruno Haible  <bruno@clisp.org>
9576
9577         Tests for module 'inet_pton'.
9578         * modules/inet_pton-tests: New file.
9579         * tests/test-inet_pton.c: New file.
9580
9581 2009-11-05  Bruno Haible  <bruno@clisp.org>
9582
9583         Tests for module 'inet_ntop'.
9584         * modules/inet_ntop-tests: New file.
9585         * tests/test-inet_ntop.c: New file.
9586
9587 2009-11-04  Eric Blake  <ebb9@byu.net>
9588
9589         stdlib-safer: wrap all mkstemp variants
9590         * modules/mkostemp (configure.ac): Set witness.
9591         * modules/mkostemps (configure.ac): Likewise.
9592         * modules/mkstemps (configure.ac): Likewise.
9593         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
9594         (mkstemps_safer): Wrap more functions.
9595         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
9596         wrapping.
9597         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
9598         (mkstemps_safer): Implement the wrappers.
9599
9600         mkstemps, mkostemps: new modules
9601         * modules/mkostemps: New module.
9602         * modules/mkstemps: Likewise.
9603         * lib/mkostemps.c (mkostemps): New file.
9604         * lib/mkstemps.c (mkstemps): Likewise.
9605         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
9606         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
9607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
9608         * modules/stdlib (Makefile.am): Substitute them.
9609         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
9610         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
9611         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9612         * doc/gnulib.texi (Glibc stdlib.h): Include them.
9613         * MODULES.html.sh (File system functions): Mention them.
9614
9615         tempname: resync from glibc
9616         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
9617         same values for __GT_FILE as glibc.  Abort even when assertions
9618         are disabled.
9619         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9620         match its value otherwise.  Allow idempotent inclusion.
9621         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9622         * lib/mkostemp.c (mkostemp): Likewise.
9623         * lib/mkstemp.c (mkstemp): Likewise.
9624         * lib/tmpfile.c (tmpfile): Likewise.
9625         * NEWS: Document this.
9626
9627         utimens: fix use of futimens on older Linux
9628         * lib/utimens.c (fdutimens): Use updated, rather than original,
9629         timespec to avoid bug in older Linux kernel.
9630         Reported by Simon Josefsson.
9631
9632 2009-11-04  Bruno Haible  <bruno@clisp.org>
9633
9634         Make num_processors more flexible and consistent.
9635         * lib/nproc.h (enum nproc_query): New type.
9636         (num_processors): Add a 'query' argument.
9637         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9638         (num_processors): Add a 'query' argument. Test the value of the
9639         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9640         mingw, count the number of CPUs available for the current process.
9641         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9642         Check for sched_getaffinity and sched_getaffinity_np.
9643         * modules/nproc (Depends-on): Add c-ctype, extensions.
9644         * NEWS: Mention the change.
9645
9646 2009-11-03  Bruno Haible  <bruno@clisp.org>
9647
9648         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9649
9650 2009-11-03  Jim Meyering  <meyering@redhat.com>
9651
9652         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9653         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9654         if it is defined.
9655
9656 2009-11-02  Eric Blake  <ebb9@byu.net>
9657
9658         mktime, timegm: share common declaration
9659         * lib/mktime-internal.h: New file.
9660         * lib/mktime.c: Use it rather than open-coding a declaration.
9661         * lib/timegm.c: Likewise.
9662         * modules/mktime (Files): Ship it.
9663         * modules/timegm (Files): Likewise.
9664         Suggested by Bruno Haible.
9665
9666         test-update-copyright: update test to match script changes
9667         * tests/test-update-copyright.sh: Avoid hard-coding perl
9668         location.  Don't update *.bak created by earlier runs.
9669
9670 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9671             Simon Josefsson  <simon@josefsson.org>
9672             Bruno Haible  <bruno@clisp.org>
9673
9674         Fix link error on Solaris 8.
9675         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9676         also in libnsl. Define also INET_PTON_LIB.
9677         * modules/inet_pton (Link): New section.
9678
9679 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9680             Bruno Haible  <bruno@clisp.org>
9681
9682         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9683         * modules/inet_ntop (Link): New section.
9684         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9685
9686 2009-11-02  Eric Blake  <ebb9@byu.net>
9687
9688         maint: avoid compiler warnings in m4 macros
9689         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9690         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9691
9692 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9693
9694         * m4/pmccabe2html.m4: Remove file.
9695         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9696         function.  Change maintainer.
9697         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9698         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9699         Courtès).
9700
9701 2009-10-31  Eric Blake  <ebb9@byu.net>
9702
9703         fseeko: fix m4 regression
9704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9705         regression from 2009-10-27.
9706         Reported by Ralf Wildenhues.
9707
9708 2009-10-31  Jim Meyering  <meyering@redhat.com>
9709
9710         inttostr: aesthetics and improved (compile-time) safety
9711         Define inttype_is_signed rather than inttype_is_unsigned,
9712         since the sole use is via "#if inttype_is_signed".
9713         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9714         inttype_is_unsigned.
9715         * lib/offtostr.c (inttype_is_signed): Likewise.
9716         * lib/uinttostr.c (inttype_is_signed): Likewise.
9717         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9718         * lib/inttostr.c (inttostr): Use verify to cross-check the
9719         inttype_is_signed value and the signedness of the actual type.
9720         * modules/inttostr (Depends-on): Add verify.
9721
9722 2009-10-30  Eric Blake  <ebb9@byu.net>
9723
9724         build: avoid compiler warnings
9725         * lib/fchmodat.c (lchmod): Mark unused variables.
9726         * lib/getopt.c (_getopt_initialize): Likewise.
9727         * lib/mktime.c (__mktime_internal): Provide prototype.
9728         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9729         older gcc that do not understand #pragma GCC diagnostic.
9730         * lib/uinttostr.c (inttype_is_unsigned): Define.
9731         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9732
9733 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9734
9735         stat: fix compilation on AIX
9736         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9737         only see struct stat64.
9738
9739 2009-10-30  Eric Blake  <ebb9@byu.net>
9740
9741         exclude: make more robust
9742         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9743         rather than masking a coding bug.
9744         Suggested by Bruno Haible.
9745
9746 2009-10-30  Jim Meyering  <meyering@redhat.com>
9747
9748         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9749         Rather than putting #!/usr/bin/perl on the first line,
9750         start with a variant of what's recommended by "man perlrun" that
9751         invokes the first "perl" program from your shell's search path.
9752         * build-aux/gitlog-to-changelog: Replace #!... as above.
9753         Add a "Local Variables" perl mode setting.
9754         Prompted by a patch from Ludovic Courtès.
9755         Improved by Eric Blake.
9756         * build-aux/useless-if-before-free: Likewise.
9757         * build-aux/announce-gen: Likewise.
9758         * build-aux/update-copyright: Likewise.
9759
9760 2009-10-29  Eric Blake  <ebb9@byu.net>
9761
9762         filenamecat-lgpl: adjust clients
9763         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9764         filenamecat.
9765         * modules/renameat (Depends-on): Likewise.
9766
9767         filenamecat: split into filenamecat-lgpl
9768         * modules/filenamecat-lgpl: New module.
9769         * modules/filenamecat (Files): Move library-safe files into
9770         filenamecat-lgpl.
9771         (Depends-on): Add filenamecat-lgpl.
9772         (configure.ac): Declare witness.
9773         * lib/filenamecat.h (file_name_concat): Only declare when using
9774         GPL module.
9775         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9776         Move...
9777         * lib/filenamecat-lgpl.c: ...into new file.
9778         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9779         (gl_FILE_NAME_CONCAT): Use it.
9780         * MODULES.html.sh (File system functions): Mention new module.
9781
9782         argp: avoid memory leak
9783         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9784         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9785         base_name, since the latter malloc()s and can call exit().
9786         Leak introduced 2006-07-03.
9787
9788         dirname-lgpl: adjust clients that don't need full dirname
9789         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9790         * modules/filenamecat (Depends-on): Likewise.
9791         * modules/linkat (Depends-on): Likewise.
9792         * modules/mkancesdirs (Depends-on): Likewise.
9793         * modules/mkdir (Depends-on): Likewise.
9794         * modules/openat (Depends-on): Likewise.
9795         * modules/savewd (Depends-on): Likewise.
9796         * modules/rename (Depends-on): Likewise.
9797         (License): Relax license.
9798         * modules/mkdir-tests (Depends-on): Drop progname.
9799         (Makefile.am): Delete unneeded LDADD.
9800         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9801
9802         dirname: split into dirname-lgpl
9803         * modules/dirname-lgpl: New module.
9804         * modules/dirname (Files): Move library-safe files into
9805         dirname-lgpl.
9806         (Depends-on): Add dirname-lgpl.
9807         (configure.ac): Declare witness.
9808         * modules/double-slash-root (License): Relax license.
9809         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9810         module.
9811         * lib/dirname.c (dir_len, mdir_name): Move...
9812         * lib/dirname-lgpl.c: ...into new file.
9813         * lib/basename.c (last_component, base_len): Move...
9814         * lib/basename-lgpl.c: ...into new file.
9815         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9816         (gl_DIRNAME): Use it.
9817         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9818         Mention new module.
9819         * modules/dirname-tests (Depends-on): Add progname.
9820         * tests/test-dirname.c (program_name): Delete.
9821
9822         mkdir: make safe for libraries
9823         * modules/mkdir (Depends-on): Drop xalloc.
9824         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9825         exit.
9826
9827         tests: avoid some compiler warnings
9828         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9829         literals.
9830         * tests/test-memchr.c (main): Avoid type mismatch.
9831         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9832         * tests/test-base64.c (main): Likewise.
9833         * tests/test-getdelim.c (main): Likewise.
9834         * tests/test-gethostname.c (main): Likewise.
9835         * tests/test-getline.c (main): Likewise.
9836         * tests/test-netinet_in.c (main): Likewise.
9837         * tests/test-select.c (open_server_socket, main): Likewise.
9838         * tests/test-select-stdin.c (main): Likewise.
9839         * tests/test-sockets.c (main): Likewise.
9840         * tests/test-strsignal.c (main): Likewise.
9841         * tests/test-sys_select.c (main): Likewise.
9842         * tests/test-sys_socket.c (main): Likewise.
9843         * tests/test-u64.c (main): Likewise.
9844         * tests/test-xfprintf-posix.c (main): Likewise.
9845         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9846
9847         sockets: avoid compiler warning
9848         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9849
9850         maint: detect usage(1) and other suspicious exits
9851         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9852
9853 2009-10-29  Jim Meyering  <meyering@redhat.com>
9854
9855         timespec: long-to-int truncation could make timespec_cmp malfunction
9856         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9857         a multiple of 2^32 nanoseconds as no difference.
9858
9859 2009-10-28  Jim Meyering  <meyering@redhat.com>
9860
9861         fprintftime: wrap macro code argument in "do {...} while(0)"
9862         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9863         cpy macro must be a statement that can be followed by a semicolon.
9864         Now that the else clause contains a comment and is hence longer
9865         than one line, I require curly braces.  That in turn requires
9866         that we wrap this code block in the standard do...while(0).
9867
9868         fprintftime: remove stray semicolon from previous change
9869         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9870
9871         fprintftime: avoid a warning about ignored fwrite return value
9872         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9873         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9874         that is unsafe.
9875         * modules/fprintftime (Depends-on): Add ignore-value.
9876
9877         exclude: avoid an unwarranted warning
9878         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9879
9880 2009-10-27  Eric Blake  <ebb9@byu.net>
9881
9882         fseek: avoid compilation failure when fflush is replaced
9883         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9884         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9885         module is in use.
9886         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9887         module is not in use; since REPLACE_FSEEK worked otherwise.
9888         (GNULIB_FTELLO): Likewise for ftell.
9889         Reported by Ian Beckwith and others.
9890
9891 2009-10-27  Bruno Haible  <bruno@clisp.org>
9892
9893         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9894         Reported by Jim Meyering.
9895
9896 2009-10-27  Jim Meyering  <jim@meyering.net>
9897             Bruno Haible  <bruno@clisp.org>
9898
9899         Avoid warning despite dropping the return value of fwrite.
9900         * lib/unicodeio.c: Include ignore-value.h.
9901         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9902         * modules/unicodeio (Depends-on): Add ignore-value.
9903
9904 2009-10-26  Eric Blake  <ebb9@byu.net>
9905
9906         areadlinkat: fix fallback path
9907         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9908         pointer and zero.
9909
9910 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9911
9912         Use a better IO block size for modern systems
9913         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9914         * lib/md2.c: Likewise.
9915         * lib/md4.c: Likewise.
9916         * lib/md5.c: Likewise.
9917         * lib/sha1.c: Likewise.
9918         * lib/sha256.c: Likewise.
9919         * lib/sha512.c: Likewise.
9920
9921 2009-10-22  Eric Blake  <ebb9@byu.net>
9922
9923         tests: avoid several compiler warnings
9924         * tests/test-getcwd.c (main): Avoid buffer underflow.
9925         * tests/test-getdate.c (main): String literals are not safe with
9926         putenv, so use setenv.  Declare unused argument.
9927         * modules/getdate-tests (Depends-on): Add setenv.
9928         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9929         problems with string literals in char *.
9930         * tests/test-hash.c (main): Avoid shadowing declaration.
9931         (insert_new): Treat string literals as char const *.
9932         * tests/test-getopt.h (test_getopt): Likewise.
9933         (getopt_loop): Alter types to minimize casting elsewhere.
9934         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9935         (test_getopt_long_posix): Likewise.
9936         (do_getopt_long): Add wrapper to minimize casting.
9937         * tests/test-atexit.c (clear_temp_file): Use void.
9938         * tests/test-areadlink-with-size.c (main): Declare unused
9939         arguments.
9940         * tests/test-areadlink.c (main): Likewise.
9941         * tests/test-areadlinkat-with-size.c (main): Likewise.
9942         * tests/test-areadlinkat.c (main): Likewise.
9943         * tests/test-canonicalize-lgpl.c (main): Likewise.
9944         * tests/test-canonicalize.c (main): Likewise.
9945         * tests/test-dirent-safer.c (main): Likewise.
9946         * tests/test-dirname.c (main): Likewise.
9947         * tests/test-dup2.c (main): Likewise.
9948         * tests/test-fchdir.c (main): Likewise.
9949         * tests/test-fcntl-h.c (main): Likewise.
9950         * tests/test-fcntl-safer.c (main): Likewise.
9951         * tests/test-fdopendir.c (main): Likewise.
9952         * tests/test-fdutimensat.c (main): Likewise.
9953         * tests/test-fflush.c (main): Likewise.
9954         * tests/test-filenamecat.c (main): Likewise.
9955         * tests/test-filevercmp.c (main): Likewise.
9956         * tests/test-fopen-safer.c (main): Likewise.
9957         * tests/test-fopen.c (main): Likewise.
9958         * tests/test-fpending.c (main): Likewise.
9959         * tests/test-fpurge.c (main): Likewise.
9960         * tests/test-freading.c (main): Likewise.
9961         * tests/test-fstatat.c (main): Likewise.
9962         * tests/test-fsync.c (main): Likewise.
9963         * tests/test-futimens.c (main): Likewise.
9964         * tests/test-getndelim2.c (main): Likewise.
9965         * tests/test-gettimeofday.c (main): Likewise.
9966         * tests/test-getopt.c (main): Likewise.
9967         * tests/test-i-ring.c (main): Likewise.
9968         * tests/test-inttypes.c (main): Likewise.
9969         * tests/test-link.c (main): Likewise.
9970         * tests/test-lstat.c (main): Likewise.
9971         * tests/test-math.c (main): Likewise.
9972         * tests/test-md5.c (main): Likewise.
9973         * tests/test-memchr2.c (main): Likewise.
9974         * tests/test-memrchr.c (main): Likewise.
9975         * tests/test-mkdir.c (main): Likewise.
9976         * tests/test-mkdirat.c (main): Likewise.
9977         * tests/test-mkfifoat.c (main): Likewise.
9978         * tests/test-open.c (main): Likewise.
9979         * tests/test-openat-safer.c (main): Likewise.
9980         * tests/test-openat.c (main): Likewise.
9981         * tests/test-quotearg.c (main): Likewise.
9982         * tests/test-rawmemchr.c (main): Likewise.
9983         * tests/test-readlink.c (main): Likewise.
9984         * tests/test-remove.c (main): Likewise.
9985         * tests/test-rename.c (main): Likewise.
9986         * tests/test-renameat.c (main): Likewise.
9987         * tests/test-rmdir.c (main): Likewise.
9988         * tests/test-sha1.c (main): Likewise.
9989         * tests/test-signal.c (main): Likewise.
9990         * tests/test-sigaction.c (main): Likewise.
9991         * tests/test-stat.c (main): Likewise.
9992         * tests/test-stat-time.c (main): Likewise.
9993         * tests/test-stddef.c (main): Likewise.
9994         * tests/test-stdint.c (main): Likewise.
9995         * tests/test-stdio.c (main): Likewise.
9996         * tests/test-stdlib.c (main): Likewise.
9997         * tests/test-strchrnul.c (main): Likewise.
9998         * tests/test-strerror.c (main): Likewise.
9999         * tests/test-string.c (main): Likewise.
10000         * tests/test-strtod.c (main): Likewise.
10001         * tests/test-strverscmp.c (main): Likewise.
10002         * tests/test-symlink.c (main): Likewise.
10003         * tests/test-symlinkat.c (main): Likewise.
10004         * tests/test-sys_stat.c (main): Likewise.
10005         * tests/test-sys_time.c (main): Likewise.
10006         * tests/test-time.c (main): Likewise.
10007         * tests/test-unistd.c (main): Likewise.
10008         * tests/test-unlink.c (main): Likewise.
10009         * tests/test-unlinkat.c (main): Likewise.
10010         * tests/test-utimens.c (main): Likewise.
10011         * tests/test-utimensat.c (main): Likewise.
10012         * tests/test-version-etc.c (main): Likewise.
10013         * tests/test-wchar.c (main): Likewise.
10014         * tests/test-wctype.c (main): Likewise.
10015         * tests/test-xprintf-posix.c (main): Likewise.
10016         * tests/test-posixtm.c (main): Likewise.
10017         (STREQ): Delete unused macro.
10018         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
10019         shadowed variables.
10020         * tests/test-memchr.c (main): Likewise.
10021
10022 2009-10-21  Eric Blake  <ebb9@byu.net>
10023
10024         areadlinkat: avoid failure on older glibc
10025         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
10026         rather than mis-comparing 0 against FUNC_RESULT of char*.
10027
10028 2009-10-21  Bruno Haible  <bruno@clisp.org>
10029
10030         * modules/stpncpy (License): Relicense under LGPLv2+.
10031         Reported by David Lutterkort <lutter@redhat.com>.
10032
10033 2009-10-20  Eric Blake  <ebb9@byu.net>
10034
10035         utimensat: work around Solaris 9 bug
10036         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
10037         has trailing slash bugs.
10038         * tests/test-lutimens.h (test_lutimens): Enhance test.
10039         * tests/test-utimens.h (test_utimens): Likewise.
10040         * doc/posix-functions/utime.texi (utime): Enhance documentation.
10041         * doc/posix-functions/utimes.texi (utimes): Likewise.
10042         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10043         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
10044         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
10045         * doc/posix-functions/futimens.texi (futimens): Likewise.
10046
10047         fdutimensat: new module
10048         * modules/fdutimensat: New file.
10049         * lib/fdutimensat.c (fdutimensat): Likewise.
10050         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
10051         * MODULES.html.sh (File system functions): Mention module.
10052         * modules/fdutimensat-tests: New test.
10053         * tests/test-fdutimensat.c: Likewise.
10054
10055         doc: regenerate INSTALL
10056         * doc/INSTALL: Reflect recent autoconf update.
10057         * doc/INSTALL.ISO: Likewise.
10058         * doc/INSTALL.UTF-8: Likewise.
10059
10060 2009-10-20  Pádraig Brady  <P@draigBrady.com>
10061
10062         acl: warn if ACL support is not detected
10063         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
10064
10065 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
10066
10067         * lib/nproc.h: Add extern "C" block for C++.
10068
10069 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
10070             Bruno Haible  <bruno@clisp.org>
10071
10072         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
10073         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
10074         * doc/posix-functions/isalpha.texi: Likewise.
10075         * doc/posix-functions/isblank.texi: Likewise.
10076         * doc/posix-functions/iscntrl.texi: Likewise.
10077         * doc/posix-functions/isdigit.texi: Likewise.
10078         * doc/posix-functions/isgraph.texi: Likewise.
10079         * doc/posix-functions/islower.texi: Likewise.
10080         * doc/posix-functions/isprint.texi: Likewise.
10081         * doc/posix-functions/ispunct.texi: Likewise.
10082         * doc/posix-functions/isspace.texi: Likewise.
10083         * doc/posix-functions/isupper.texi: Likewise.
10084         * doc/posix-functions/isxdigit.texi: Likewise.
10085
10086 2009-10-18  Bruno Haible  <bruno@clisp.org>
10087
10088         Tests for module 'isblank'.
10089         * modules/isblank-tests: New file.
10090         * tests/test-isblank.c: New file.
10091
10092         New module 'isblank'.
10093         * lib/isblank.c: New file.
10094         * m4/isblank.m4: New file.
10095         * modules/isblank: New file.
10096         * doc/posix-functions/isblank.texi: Mention the new module.
10097
10098 2009-10-18  Bruno Haible  <bruno@clisp.org>
10099
10100         New module 'ctype'.
10101         * lib/ctype.in.h: New file.
10102         * m4/ctype.m4: New file.
10103         * modules/ctype: New file.
10104         * doc/posix-headers/ctype.texi: Mention the new module.
10105
10106 2009-10-18  Jim Meyering  <meyering@redhat.com>
10107
10108         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
10109         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
10110         right after its initialization, rather than farther down.
10111         Keeping these in close proximity makes it easier to ensure
10112         that each such variable is initialized.  E.g.,
10113
10114             LIB_CLOCK_GETTIME=
10115             AC_SUBST([LIB_CLOCK_GETTIME])
10116
10117         This change also increments these serial numbers.
10118         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
10119         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
10120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10121
10122 2009-10-18  Bruno Haible  <bruno@clisp.org>
10123
10124         Don't let environment variables perturb build.
10125         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
10126         (gl_PREREQ_GETHRXTIME): ... not here.
10127
10128 2009-10-18  Bruno Haible  <bruno@clisp.org>
10129
10130         Avoid symlink attack in localcharset module.
10131         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
10132         (O_NOFOLLOW): Define fallback.
10133         (get_charset_aliases): Don't open the file if it is a symbolic link.
10134         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
10135         gl_FCNTL_H.
10136         (gl_FCNTL_H): Require it.
10137         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
10138         * modules/localcharset (Files): Add m4/fcntl_h.m4.
10139         Reported by Fergal Glynn <fglynn@veracode.com>.
10140
10141 2009-10-18  Bruno Haible  <bruno@clisp.org>
10142
10143         Implement nproc for mingw.
10144         * lib/nproc.c: Include <windows.h>
10145         (num_processors): On native Windows platforms, try GetSystemInfo.
10146
10147 2009-10-18  Bruno Haible  <bruno@clisp.org>
10148
10149         Implement nproc for IRIX.
10150         * lib/nproc.c: Include <sys/sysmp.h>.
10151         (num_processors): On IRIX systems, try sysmp.
10152         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
10153
10154 2009-10-18  Bruno Haible  <bruno@clisp.org>
10155
10156         Implement nproc for HP-UX.
10157         * lib/nproc.c: Include <sys/pstat.h>
10158         (num_processors): On HP-UX systems, try pstat_getdynamic.
10159         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
10160         pstat_getdynamic.
10161
10162 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
10163             Bruno Haible  <bruno@clisp.org>
10164
10165         Implement nproc for NetBSD, OpenBSD.
10166         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
10167         (ARRAY_SIZE): New macro.
10168         (num_processors): On BSD systems, try sysctl of HW_NCPU.
10169         * m4/nproc.m4: New file.
10170         * modules/nproc (Files): Add m4/nproc.m4.
10171         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
10172         (Makefile.am): Instead, augment lib_SOURCES.
10173
10174 2009-10-18  Bruno Haible  <bruno@clisp.org>
10175
10176         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
10177         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
10178         sys/param.h.
10179
10180 2009-10-16  Eric Blake  <ebb9@byu.net>
10181
10182         utimensat: new module
10183         * modules/utimensat: New file.
10184         * lib/utimensat.c (utimensat): Likewise.
10185         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10186         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
10187         so we can work around Linux bugs.
10188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10189         * modules/sys_stat (Makefile.am): Substitute them.
10190         * lib/sys_stat.in.h (utimensat): Declare it.
10191         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10192         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10193         * modules/utimensat-tests: New test.
10194         * tests/test-utimensat.c: Likewise.
10195
10196         utimens: let lutimens work on non-symlinks
10197         * lib/utimens.c (lutimens): Fall back to utimens rather than
10198         failing with ENOSYS, when file is not a symlink.
10199         (utimens): Reduce redirection.
10200         * tests/test-lutimens.h (test_lutimens): Update test to cover
10201         non-symlinks.
10202         * tests/test-utimens.h (test_utimens): Update test to cover
10203         symlinks.
10204         * tests/test-utimens.c (main): Update caller.
10205
10206         utimens: cache whether utimensat syscall works
10207         * lib/utimens.c (utimensat_works_really): New cache variable.
10208         (fdutimens, lutimens): Use it to avoid failing syscall.
10209
10210         test-stat-time, test-utimens: improve portability
10211         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
10212         ext4 on alpha, and for cygwin.
10213         * tests/test-utimens-common.h: New file.
10214         (nap): Factor delays into single function.
10215         * tests/test-lutimens.h (test_lutimens): Use new header.
10216         * tests/test-futimens.h (test_futimens): Likewise.
10217         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
10218         timestamps to occur from same machine, as was done previously for
10219         test_utimens.
10220         * modules/utimens-tests (Files): Ship new file.
10221         * modules/futimens-tests (Files): Likewise.
10222         Reported in part by Jim Meyering.
10223
10224         sys_stat: sort replacement declarations
10225         * lib/sys_stat.in.h: Sort declarations.
10226         * lib/futimens.c (futimens): Fix typo.
10227
10228 2009-10-15  Jim Meyering  <meyering@redhat.com>
10229
10230         don't let environment settings perturb build
10231         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
10232         could cause a configure-time and/or build-time malfunction.
10233         Typically, a configure-time function-in-library test is performed
10234         via code like this:
10235
10236           LIB_VAR=
10237           AC_SUBST([LIB_VAR])
10238           prefix_saved_LIBS=$LIBS
10239             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
10240                        [test "$ac_cv_search_FUNC" = "none required" ||
10241                         LIB_VAR=$ac_cv_search_FUNC])
10242           LIBS=$prefix_saved_LIBS
10243
10244         However, in each of the files affected by this change, the LIB_VAR=
10245         initialization was omitted.  Thus, when set in the environment, its
10246         value would propagate into generated Makefiles when FUNC is not found
10247         in LIB_NAME.
10248         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
10249         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
10250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10251
10252 2009-10-14  Eric Blake  <ebb9@byu.net>
10253
10254         fchdir: avoid infinite recursion in mingw
10255         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
10256         recursing.
10257
10258         test-stat-time: port to mingw
10259         * tests/test-stat-time.c (force_unlink): Return a value.
10260         (test_ctime) [W32]: Fix compilation error.
10261         (nap): Don't call usleep with too large an argument.  Use
10262         force_unlink.
10263         * doc/pastposix-functions/usleep.texi (usleep): Document the
10264         portability issue.
10265
10266 2009-10-13  Jim Meyering  <meyering@redhat.com>
10267
10268         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
10269         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
10270         * modules/pipe-filter-ii: Likewise.
10271         * modules/sys_socket-tests: Likewise.
10272         * modules/tsearch-tests: Likewise.
10273         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
10274         (check): Depend on it.
10275
10276 2009-10-12  Eric Blake  <ebb9@byu.net>
10277
10278         utimens-tests: port to NFS file systems
10279         * tests/test-utimens.h (test_utimens): Refactor utimecmp
10280         comparisons to avoid spurious failures from timestamp drift
10281         between NFS machines.
10282
10283 2009-10-12  Eric Blake  <ebb9@byu.net>
10284
10285         stat-time-tests: minor cleanups
10286         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
10287         * tests/test-stat-time.c (nap): Separate assignment from call.
10288         Suggested by Paolo Bonzini and Bruno Haible.
10289
10290         sys_stat: guarantee struct timespec
10291         * lib/sys_stat.in.h (includes): Always include <time.h>
10292         * modules/sys_stat (Depends-on): Add time.
10293         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
10294         mode_t permission values.
10295         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
10296         get at subsecond timestamps.
10297
10298 2009-10-10  Eric Blake  <ebb9@byu.net>
10299
10300         futimens: new module
10301         * modules/futimens: New file.
10302         * lib/futimens.c (futimens): Likewise.
10303         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
10304         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
10305         we can work around Linux bugs.
10306         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10307         * modules/sys_stat (Makefile.am): Substitute them.
10308         * lib/sys_stat.in.h (futimens): Declare it.
10309         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10310         * doc/posix-functions/futimens.texi (futimens): Likewise.
10311         * modules/futimens-tests: New test.
10312         * tests/test-futimens.c: Likewise.
10313
10314         utimens: introduce fdutimens
10315         * lib/utimens.h (fdutimens): New prototype.
10316         * lib/utimens.c (gl_futimens): Move guts...
10317         (fdutimens): ...to new interface.
10318         * tests/test-utimens.c (do_fdutimens): Use it.
10319
10320         utimens: add UTIME_NOW and UTIME_OMIT support
10321         * lib/utimens.c (validate_timespec, update_timespec): New helper
10322         functions.
10323         (gl_futimens, lutimens): Use them.
10324         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
10325         stdbool, sys_stat.
10326         (Link): Mention resulting library dependency.
10327         * modules/utimecmp (Link): Likewise.
10328         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
10329         (Makefile.am): Pick up library dependency.
10330         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
10331         definition.
10332         * tests/test-sys_stat.c: Test the definitions.
10333         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
10334         * NEWS: Document library dependency.
10335
10336         utimecmp: support symlink timestamps
10337         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
10338         hashing when possible.  Use pathconf when available.
10339         (SYSCALL_RESOLUTION): Recognize tighter resolution.
10340         * modules/utimecmp (Depends-on): Add lstat.
10341
10342         utimens: add lutimens interface
10343         * lib/utimens.c (lutimens): New function.
10344         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
10345         * lib/utimens.h (lutimens): Declare new interface.
10346         * tests/test-utimens.c (main): Enhance test.
10347         * tests/test-lutimens.h (test_lutimens): New file.
10348         * modules/utimens-tests (Files): Distribute it.
10349         (Depends-on): Add symlink.
10350         (configure.ac): Check for usleep.
10351
10352         utimens: validate futimens usage
10353         * lib/utimens.c (gl_futimens): Require valid fd up front, using
10354         fewer syscalls on failure later on.  Avoid compiler warning on
10355         mingw.
10356         * modules/utimens (Depends-on): Add dup2.
10357
10358         utimens: add test
10359         * modules/utimens-tests: New test.
10360         * tests/test-utimens.h: New file.
10361         * tests/test-futimens.h: Likewise.
10362         * tests/test-utimens.c: Likewise.
10363
10364         doc: mention timestamp portability issues
10365         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
10366         instead.
10367         * doc/posix-functions/utime.texi (utime): Likewise.
10368         * doc/posix-functions/utimes.texi (utimes): Likewise.
10369         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
10370         instead.
10371         * doc/posix-functions/futimens.texi (futimens): Mention utimens
10372         module.
10373         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10374         Mention weakness with symlink timestamps.
10375         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
10376         to utimensat/futimens instead.
10377         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
10378
10379         test-dup2: enhance test
10380         * tests/test-dup2.c (main): Also check AT_FDCWD.
10381
10382         test-stat-time: avoid more spurious failures
10383         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
10384         xfs; and avoid race if the two timestamps cross quantization edge.
10385
10386         relocatable: prefer 'file system' over 'filesystem'
10387         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
10388         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
10389         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
10390         * doc/relocatable.texi (Enabling Relocatability): Likewise.
10391         * lib/relocatable.c (compute_curr_prefix): Likewise.
10392
10393 2009-10-10  Jim Meyering  <meyering@redhat.com>
10394
10395         stat-time-tests: check for the usleep function
10396         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
10397
10398 2009-10-10  Bruno Haible  <bruno@clisp.org>
10399
10400         * modules/xnanosleep: Put the Link section after the Include section.
10401
10402 2009-10-09  Eric Blake  <ebb9@byu.net>
10403
10404         dup2: work around FreeBSD 6.1 bug
10405         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
10406         * doc/posix-functions/dup2.texi (dup2): Document it.
10407         Reported by Nelson H. F. Beebe and Jim Meyering.
10408
10409         test-stat-time: port to buggy NFS clients
10410         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
10411         (test_ctime): Also skip test if mtime and ctime are skewed.
10412
10413         maint: prefer 'file system' over 'filesystem'
10414         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10415         * doc/posix-functions/lstat.texi (lstat): Likewise.
10416         * lib/file-has-acl.c (file_has_acl): Likewise.
10417         * lib/fwriteerror.c [TEST]: Likewise.
10418         * tests/test-areadlink.h (test_areadlink): Likewise.
10419         * tests/test-areadlinkat-with-size.c (main): Likewise.
10420         * tests/test-areadlinkat.c (main): Likewise.
10421         * tests/test-canonicalize-lgpl.c (main): Likewise.
10422         * tests/test-canonicalize.c (main): Likewise.
10423         * tests/test-fstatat.c (main): Likewise.
10424         * tests/test-linkat.c (main): Likewise.
10425         * tests/test-lstat.h (test_lstat_func): Likewise.
10426         * tests/test-mkdir.h (test_mkdir): Likewise.
10427         * tests/test-readlink.h (test_readlink): Likewise.
10428         * tests/test-remove.c (main): Likewise.
10429         * tests/test-rename.h (test_rename): Likewise.
10430         * tests/test-renameat.c (main): Likewise.
10431         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10432         * tests/test-symlink.h (test_symlink): Likewise.
10433         * tests/test-symlinkat.c (main): Likewise.
10434         * tests/test-unlink.h (test_unlink_func): Likewise.
10435         * tests/test-unlinkat.c (main): Likewise.
10436
10437         maint: make realtime library usage explicit
10438         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
10439         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
10440         * modules/settime (Link): Likewise.
10441         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
10442
10443         test-stat-time: speed up execution
10444         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
10445         warning on mingw.
10446         (nap): New helper function.
10447         (prepare_test): Use it to reduce sleep time.
10448         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
10449         execution.
10450         * modules/stat-time-tests (configure.ac): Check for usleep.
10451
10452 2009-10-09  Jim Meyering  <meyering@redhat.com>
10453
10454         selinux-h: always use getfilecon wrappers
10455         * lib/getfilecon.c: New file.
10456         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
10457         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
10458         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
10459         (fgetfilecon): Provide a stub.
10460         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
10461         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
10462         file unconditionally.
10463         When <selinux/selinux.h> is found, arrange to use wrappers.
10464         * modules/selinux-h (Files): Add getfilecon.c.
10465         (Makefile.am): Substitute include-next-related bits
10466         into the now-always-generated selinux/selinux.h file.
10467         * doc/glibc-functions/lgetfilecon.texi: New file.
10468         * doc/glibc-functions/fgetfilecon.texi: New file.
10469         * doc/glibc-functions/getfilecon.texi: New file.
10470         * doc/glibc-functions/getfilecon-desc.texi: New file.
10471         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
10472         which to pull in the new files.
10473         * MODULES.html.sh (Misc): Add selinux-h.
10474
10475 2009-10-08  Jim Meyering  <meyering@redhat.com>
10476
10477         unistd: fix comment typo
10478         * lib/unistd.in.h (euidaccess): Fix a comment typo.
10479
10480 2009-10-08  Eric Blake  <ebb9@byu.net>
10481
10482         areadlink: use SIZE_MAX consistently
10483         * modules/areadlink (Depends-on): Add stdint.
10484         * modules/areadlink-with-size (Depends-on): Likewise.
10485         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
10486         gives NULL; drop sys/types, since unistd gives size_t; and add
10487         stdint for SIZE_MAX.
10488         (SIZE_MAX): Rely on headers.
10489         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
10490         and add stdint.
10491         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
10492         (SIZE_MAX): Likewise.
10493         (INITIAL_BUF_SIZE): Turn into enum.
10494         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
10495
10496 2009-10-08  Jim Meyering  <meyering@redhat.com>
10497
10498         areadlinkat: avoid compilation failure
10499         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
10500         Fix typo in comment.
10501
10502 2009-10-07  Eric Blake  <ebb9@byu.net>
10503
10504         areadlinkat-with-size: new module
10505         * modules/areadlinkat-with-size: New module.
10506         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
10507         * lib/areadlink.h (areadlinkat): Declare it.
10508         * MODULES.html.sh (File system functions): Mention it.
10509         * modules/areadlinkat-with-size-tests: New test.
10510         * tests/test-areadlinkat-with-size.c: New file.
10511
10512         xreadlinkat: new module
10513         * modules/xreadlinkat: New module.
10514         * lib/xreadlinkat.c (xreadlinkat): New file.
10515         * lib/xreadlink.h (xreadlinkat): Declare it.
10516         * MODULES.html.sh (File system functions): Mention it.
10517
10518         areadlinkat: new module
10519         * lib/at-func.c (FUNC_FAIL): New define.
10520         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
10521         * modules/areadlinkat: New module.
10522         * lib/linkat.c (areadlinkat): Move...
10523         * lib/areadlinkat.c (areadlinkat): ...to new file.
10524         * lib/areadlink.h (areadlinkat): Declare it.
10525         * modules/linkat (Depends-on): Add areadlinkat.
10526         * MODULES.html.sh (File system functions): Mention it.
10527         * modules/areadlinkat-tests: New test.
10528         * tests/test-areadlinkat.c: New file.
10529
10530         areadlink, areadlink-with-size: add tests
10531         * modules/areadlink-tests: New test.
10532         * modules/areadlink-with-size-tests: Likewise.
10533         * tests/test-areadlink.h: New file.
10534         * tests/test-areadlink.c: Likewise.
10535         * tests/test-areadlink-with-size.c: Likewise.
10536
10537         maint: minor cleanups
10538         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
10539         _UNUSED_PARAMETER_ instead.
10540         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
10541         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
10542         * modules/linkat-tests (Files): Distribute test-link.h.
10543
10544         openat, utimens: whitespace cleanup
10545         * lib/openat.c: Prefer space throughout, rather than mix of 8
10546         spaces vs. tabs.
10547         * lib/at-func.c: Likewise.
10548         * lib/utimens.c: Likewise.
10549
10550         openat: avoid using wrong fd
10551         * lib/openat.c (openat_permissive): Reject user's fd if saving the
10552         working directory chooses same fd.
10553         * lib/at-func.c (AT_FUNC_NAME): Likewise.
10554
10555         mkdir, mkdirat: fix cygwin 1.5.x bug
10556         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
10557         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
10558         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
10559         bug.
10560         (gl_PREREQ_MKDIR): Delete unused macro.
10561         * modules/mkdir (Files): Track file rename.
10562         (configure.ac): Update macro name.
10563         * modules/openat (Depends-on): Add mkdir.
10564         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
10565
10566         mkdir, mkdirat: add tests
10567         * modules/mkdir-tests: New test.
10568         * tests/test-mkdir.h: New file.
10569         * tests/test-mkdir.c: Likewise.
10570         * tests/test-mkdirat.c: Likewise.
10571         * modules/openat-tests (Files): Add new files.
10572         (Makefile.am): Run new test.
10573
10574 2009-10-06  Eric Blake  <ebb9@byu.net>
10575
10576         doc: tweak *at function documentation
10577         * doc/posix-functions/faccessat.texi (faccessat): Mention
10578         known issue with replacement.
10579         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
10580         * doc/posix-functions/linkat.texi (linkat): Likewise.
10581         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10582         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10583         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10584         * doc/posix-functions/renameat.texi (renameat): Likewise.
10585         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10586
10587         openat: fix GNU/Hurd bug in unlinkat
10588         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
10589         broken.
10590         * doc/posix-functions/unlink.texi (unlink): Document this.
10591         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
10592
10593         fdopendir: fix GNU/Hurd bug
10594         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
10595         allowing non-directory fds.
10596         * lib/fdopendir.c (rpl_fdopendir): Work around it.
10597         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10598         * modules/dirent (Makefile.am): Substitute it.
10599         * lib/dirent.in.h (fdopendir): Declare replacement.
10600         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
10601         * tests/test-fdopendir.c (main): Test something other than
10602         /dev/null, since on Hurd that behaves like a directory.
10603
10604         test-symlink: port to GNU/Hurd
10605         * tests/test-symlink.h (test_symlink): Relax expected errno.
10606
10607         doc: tweak more cygwin information
10608         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
10609         now compatible with glibc.
10610         * doc/posix-functions/getopt.texi (getopt): Likewise.
10611
10612         getopt-gnu: add another test
10613         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
10614         guarantee behavior relied on by m4.
10615         * tests/test-getopt.c (main): Use it.
10616         * modules/getopt-posix-tests (Depends-on): Add setenv.
10617         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10618
10619         getopt: fix compilation on darwin
10620         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10621         include.
10622         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10623         Reported by Ludovic Courtès.
10624
10625 2009-10-06  Bruno Haible  <bruno@clisp.org>
10626
10627         * modules/size_max (Description): Discourage its use.
10628         Reported by Simon Josefsson.
10629
10630 2009-10-06  Jim Meyering  <meyering@redhat.com>
10631
10632         linkat: avoid compilation failure
10633         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10634
10635 2009-10-05  Eric Blake  <ebb9@byu.net>
10636
10637         linkat: support Linux 2.6.17
10638         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10639         linkat on Linux, but allow cache variable override.
10640         * lib/linkat.c (rpl_linkat): Define override.
10641         * modules/linkat (Depends-on): Add symlinkat.
10642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10643         * modules/unistd (Makefile.am): Substitute it.
10644         * lib/unistd.in.h (linkat): Declare replacement.
10645         Reported by Pádraig Brady.
10646
10647         quotearg: port test to systems with C.UTF-8 locale
10648         * tests/test-quotearg.c (struct result_strings): Add another
10649         member, differentiating between C.ASCII and C.UTF-8 handling.
10650         (compare_strings): Add parameter.
10651         (main): Adjust all callers.
10652
10653         getopt: avoid clash with FreeBSD _getopt_internal
10654         * lib/getopt.in.h (_getopt_internal): Override the name.
10655         * lib/getopt_int.h (includes): Pick up any overrides.
10656         Reported by Reuben Thomas.
10657
10658         hash: allow C89 compilation
10659         * lib/hash.c (check_tuning): Move declaration before statement.
10660         Reported by Reuben Thomas.
10661
10662 2009-10-05  Karl Berry  <karl@gnu.org>
10663
10664         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10665
10666 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10667             Bruno Haible  <bruno@clisp.org>
10668
10669         * lib/uname.c (uname): Use a table-driven algorithm to compute
10670         Windows NT versions.
10671
10672 2009-10-04  Bruno Haible  <bruno@clisp.org>
10673
10674         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10675         program_invocation_short_name.
10676         * modules/progname (configure.ac): Test for presence of
10677         program_invocation_short_name.
10678         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10679
10680 2009-10-04  Bruno Haible  <bruno@clisp.org>
10681
10682         * lib/progname.c (set_program_name): Fix comment.
10683         Reported by Jim Meyering.
10684
10685 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10686             Bruno Haible  <bruno@clisp.org>
10687
10688         * lib/uname.c: Include <string.h>.
10689         (uname): Do only one call to GetVersionEx in the common case.
10690
10691 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10692             Bruno Haible  <bruno@clisp.org>
10693
10694         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10695         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10696         (uname): Add support for Windows CE and various non-x86 CPU types.
10697
10698 2009-10-03  Bruno Haible  <bruno@clisp.org>
10699
10700         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10701         invocation to tests/configure.ac.
10702         Reported by Ian Beckwith <ianb@erislabs.net>.
10703
10704 2009-10-02  Eric Blake  <ebb9@byu.net>
10705
10706         fchdir: avoid compiler warning
10707         * lib/fchdir.c (canonicalize_file_name)
10708         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10709
10710         test-open: support mingw errno values
10711         * tests/test-open.h (test_open): Relax test.
10712         * tests/test-fopen.h (test_fopen): Likewise.
10713         * tests/test-openat-safer.c (main): Likewise.
10714
10715         open: fix opening directory on mingw
10716         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10717
10718         test-open: on GNU/Hurd, /dev/null is a directory
10719         * tests/test-fopen.h (main): Rename...
10720         (test_fopen): ...to this.  Use a guaranteed non-directory when
10721         confirming open behavior on trailing slash.
10722         * tests/test-openat-safer.c (main): Likewise.
10723         * tests/test-open.h (main): Likewise....
10724         (test_open): ...to this.
10725         * tests/test-fopen.c (main): Adjust caller.
10726         * tests/test-fopen-safer.c (main): Likewise.
10727         * tests/test-open.c (main): Likewise.
10728         * tests/test-fcntl-safer.c (main): Likewise.
10729         Reported by Samuel Thibault.
10730
10731         rename, fchdir: don't ignore chdir failure
10732         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10733         * lib/rename.c (rpl_rename) [W32]: Likewise.
10734         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10735         an empty destination directory if source cannot be renamed,
10736         although there is still possibility for failure.
10737         * doc/posix-functions/rename.texi (rename): Document the race.
10738         Reported by Jim Meyering.
10739
10740         maint: cleanup whitespace in recent commits
10741         * lib/rename.c (rpl_rename): Remove tabs.
10742         * tests/test-link.h (test_link): Likewise.
10743         * lib/fchdir.c (get_name): Likewise.
10744         Reported by Jim Meyering.
10745
10746 2009-10-02  Ben Pfaff  <blp@gnu.org>
10747
10748         relocatable-prog-wrapper: Add missing dependency on
10749         double-slash-root.
10750         * modules/relocatable-prog-wrapper: Add dependency.
10751         Reported by Ian Beckwith <ianb@erislabs.net>.
10752
10753 2009-10-02  Eric Blake  <ebb9@byu.net>
10754
10755         renameat: fix Solaris bugs
10756         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10757         needed fixing.
10758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10759         * modules/stdio (Makefile.am): Substitute it.
10760         * lib/stdio.in.h (renameat): Declare replacement.
10761         * lib/renameat.c (rpl_renameat): Implement fix.
10762
10763         renameat: new module
10764         * modules/renameat: New file.
10765         * lib/renameat.c (renameat): Likewise.
10766         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10768         * modules/stdio (Makefile.am): Substitute them.
10769         * lib/stdio.in.h (renameat): Declare it.
10770         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10771         * doc/posix-functions/renameat.texi (renameat): Likewise.
10772         * modules/renameat-tests: New test.
10773         * tests/test-renameat.c: Likewise.
10774
10775         rename: fix mingw bugs
10776         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10777         directory overwrite bugs.
10778
10779         rename: fix another cygwin 1.5 bug
10780         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10781         checks.
10782         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10783         unnecessary cygwin workarounds.  Also work around bug with moving
10784         full directory onto an empty one.
10785         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10786
10787         rename-dest-slash: merge into rename module
10788         * modules/rename-dest-slash (Status): Mark obsolete.
10789         (Depends-on): Add rename.
10790         (Files): Let rename do it all.
10791         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10792         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10793         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10794         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10795         * lib/rename.c (rpl_rename): Update comments.
10796
10797         rename: fix cygwin 1.5.x bugs
10798         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10799         * lib/rename.c (rpl_rename): Work around them.
10800         * modules/rename (Depends-on): Add same-inode.
10801
10802         rename: fix Solaris 10 bug
10803         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10804         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10805         was the only bug.
10806
10807         rename: fix Solaris 9 bug
10808         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10809         on non-directory.  Avoid calling exit.
10810         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10811         strdup.
10812         * modules/rename-tests (Depends-on): Drop lstat.
10813         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10814         (gl_PREREQ_RENAME): Delete unused macro.
10815
10816         rename-dest-slash: fix NetBSD bug
10817         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10818         links.
10819         * modules/rename-dest-slash (Depends-on): Add same-inode.
10820
10821         rename-tests: new test, exposes several platform bugs
10822         * modules/rename-tests: New file.
10823         * tests/test-rename.h: Likewise.
10824         * tests/test-rename.c: Likewise.
10825         * doc/posix-functions/rename.texi (rename): Improve documentation,
10826         including bugs that will eventually be fixed in gnulib.
10827
10828 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10829
10830         * lib/uname.c: Include <stdlib.h>
10831         (uname): Assume version info is available.
10832
10833 2009-10-02  Jim Meyering  <meyering@redhat.com>
10834
10835         gnu-web-doc-update: correct --help output
10836         * build-aux/gnu-web-doc-update: Make --help output relevant.
10837
10838         gnu-web-doc-update: add standard options
10839         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10840
10841         gnu-web-doc-update: New module.
10842         Use this script to automatically update the on-line web documentation
10843         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10844         * modules/gnu-web-doc-update: New file, from coreutils.
10845         * build-aux/gnu-web-doc-update: New script.
10846
10847 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10848
10849         link: LoadLibrary is not needed.
10850         * lib/link.c: Use GetModuleHandle.
10851
10852 2009-10-01  Eric Blake  <ebb9@byu.net>
10853
10854         getopt: bump serial number
10855         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10856         change.
10857
10858         tests: tighten link, rmdir, and remove tests
10859         * tests/test-link.h (includes): No need to use <config.h> here.
10860         Clean up if directory hard link was created, otherwise test for
10861         trailing '.'.
10862         * tests/test-linkat.c (main): Simplify.
10863         * tests/test-remove.c (main): Enhance test for trailing '.'.
10864         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10865
10866 2009-10-01  Jim Meyering  <meyering@redhat.com>
10867
10868         maint.mk: requiring "make major" was annoying, for a "minor" release.
10869         What is intended is "stable", to contrast with alpha and beta,
10870         so require "make stable", not "make major".
10871         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10872         (get_tool_versions): Likewise.
10873         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10874
10875 2009-09-30  Ben Pfaff  <blp@gnu.org>
10876
10877         Fix broken build of replacement for Windows tmpfile().
10878         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10879         flags argument added along with the 'mkostemp' module.
10880
10881 2009-09-28  Bruno Haible  <bruno@clisp.org>
10882
10883         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10884         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10885         to 'remove_elt'.
10886         (gl_list_remove): Update.
10887         * lib/gl_list.c (gl_list_remove): Update.
10888         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10889         to 'remove_elt'.
10890         (gl_oset_remove): Update.
10891         * lib/gl_list.c (gl_oset_remove): Update.
10892         Reported by Eric Blake.
10893
10894 2009-09-28  Eric Blake  <ebb9@byu.net>
10895
10896         doc: mention yet more cygwin 1.7 status
10897         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10898         cygwin.
10899         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10900         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10901
10902         argp: fix test failure
10903         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10904         that are not upper-case.  Pass correct range to tolower.
10905
10906 2009-09-27  Jim Meyering  <meyering@redhat.com>
10907
10908         test-yesno: work around sparc-dash here-document infelicity
10909         Without this change, the literal \177 byte in a here document
10910         would make dash 0.5.5.1-3 access uninitialized memory.
10911         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10912         Instead, use a marker, "@", and filter through tr to create the desired
10913         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10914
10915 2009-09-27  Bruno Haible  <bruno@clisp.org>
10916
10917         Disable untested support for new flavours of ACLs on AIX.
10918         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10919         progress.
10920         * lib/set-mode-acl.c (qset_acl): Likewise.
10921
10922 2008-12-07  Bruno Haible  <bruno@clisp.org>
10923
10924         Add support for new flavours of ACLs on AIX. (Untested.)
10925         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10926         (file_has_acl): Add support for newer AIX.
10927         * lib/set-mode-acl.c (qset_acl): Likewise.
10928         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10929         Rainer Tammer <tammer@tammer.net>.
10930
10931 2009-09-26  Eric Blake  <ebb9@byu.net>
10932
10933         argp: fix compilation of getopt
10934         * lib/getopt.in.h (includes): Use different guard than glibc.
10935         Reported by Sergey Poznyakoff.
10936
10937         doc: mention more cygwin 1.7 status
10938         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10939         bug.
10940         * doc/posix-functions/execl.texi (execl): Likewise.
10941         * doc/posix-functions/execle.texi (execle): Likewise.
10942         * doc/posix-functions/execlp.texi (execlp): Likewise.
10943         * doc/posix-functions/execv.texi (execv): Likewise.
10944         * doc/posix-functions/execve.texi (execve): Likewise.
10945         * doc/posix-functions/execvp.texi (execvp): Likewise.
10946         * doc/glibc-functions/canonicalize_file_name.texi
10947         (canonicalize_file_name): Cygwin 1.7 now provides this.
10948         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10949         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10950         on AT_SYMLINK_NOFOLLOW.
10951
10952 2009-09-24  Eric Blake  <ebb9@byu.net>
10953
10954         test-linkat: make test more robust
10955         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10956
10957         getopt: fix inclusion guards for cygwin
10958         * modules/getopt-posix (Depends-on): Add include-next.
10959         (Makefile.am): Substitute more items in replacement header.
10960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10961         <getopt.h>.
10962         * lib/getopt.in.h (includes): Use split inclusion guard, and
10963         prefer <getopt.h> over include <unistd.h> when one is present.
10964         (option): Also override name of 'struct option'.
10965
10966         same-inode: revert prior change; it is not yet ready
10967         * NEWS: Undo mention of this change.
10968         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10969         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10970         * lib/cycle-check.c (cycle_check): Likewise.
10971         * lib/same.c (same_name): Likewise.
10972         * lib/at-func2.c (at_func2): Likewise.
10973
10974 2009-09-23  Eric Blake  <ebb9@byu.net>
10975
10976         linkat: new module
10977         * modules/linkat: New file.
10978         * lib/at-func2.c (at_func2): Likewise.
10979         * lib/linkat.c (linkat): Likewise.
10980         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10981         * lib/openat-priv.h (at_func2): Add declaration.
10982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10983         * modules/unistd (Makefile.am): Substitute them.
10984         * lib/unistd.in.h (linkat): Declare it.
10985         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10986         * doc/posix-functions/linkat.texi (linkat): Likewise.
10987         * doc/posix-functions/link.texi (link): Tweak wording.
10988         * tests/test-link.c (main): Move guts...
10989         * tests/test-link.h (test_link): ...into new file.
10990         * modules/linkat-tests: New test.
10991         * tests/test-linkat.c: Likewise.
10992         * modules/link-tests (Files): Ship new file.
10993         (Depends-on): Add stdbool.
10994
10995         dirname: add library-safe mdir_name
10996         * lib/dirname.h (mdir_name): New prototype.
10997         * lib/dirname.c (dir_name): Move guts...
10998         (mdir_name): ...to new function that avoids xalloc_die.
10999
11000         fchdir: another mingw fix
11001         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
11002         * lib/fchdir.c (get_name): New helper method; skips canonicalize
11003         on mingw (where it has not yet been ported), and make it optional
11004         elsewhere.
11005         (_gl_register_fd): Use it.
11006
11007         same-inode: make SAME_INODE tri-state, to port to mingw
11008         * NEWS: Mention this change.
11009         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
11010         st_ino always being 0.
11011         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
11012         * lib/cycle-check.c (cycle_check): Likewise.
11013         * lib/same.c (same_name): Likewise.
11014
11015         lstat: avoid mingw compilation error
11016         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
11017         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
11018         lstat ourselves.
11019         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
11020         was adequate.
11021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
11022         the checks for lstat.
11023         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
11024
11025         link: fix test failure on Solaris 9
11026         * lib/link.c (rpl_link): Don't assume link will catch bogus
11027         trailing slash on source.
11028
11029         test-symlinkat: enhance test
11030         * tests/test-readlink.c (main): Move guts...
11031         * tests/test-readlink.h (test_readlink): ...into new file.
11032         * tests/test-symlink.c (main): Move guts...
11033         * tests/test-symlink.h (test_symlink): ...into new file.
11034         * tests/test-symlinkat.c (main): Use new files for further
11035         coverage.
11036         (do_symlink, do_readlink): New helper functions.
11037         * modules/symlink-tests (Files): Ship new file.
11038         (Depends-on): Add stdbool.
11039         * modules/readlink-tests (Files): Ship new file.
11040         (Depends-on): Add stdbool.
11041         * modules/symlinkat-tests (Files): Use new files.
11042
11043 2009-09-23  Eric Blake  <ebb9@byu.net>
11044
11045         readlink: document portability issue with symlink length
11046         * doc/posix-functions/lstat.texi (lstat): Mention that some file
11047         systems have bogus st_size on symlinks, and mention the
11048         areadlink-with-size module.
11049         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
11050         * doc/posix-functions/readlink.texi (readlink): Mention the
11051         areadlink module, and ERANGE failure.
11052         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11053         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
11054
11055         readlink: fix Solaris 9 bug with trailing slash
11056         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
11057         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
11058         * doc/posix-functions/readlink.texi (readlink): Document this.
11059         * modules/readlink-tests: New test.
11060         * tests/test-readlink.c: Likewise.
11061
11062         readlink: fix cygwin 1.5.x bug with return type
11063         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
11064         * lib/unistd.in.h (readlink): Use ssize_t.
11065         * lib/readlink.c (readlink): Likewise.
11066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11067         * modules/unistd (Makefile.am): Substitute it.
11068         * lib/unistd.in.h (readlink): Declare replacement.
11069         * doc/posix-functions/readlink.texi (readlink): Document this.
11070
11071         symlink: use throughout gnulib
11072         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
11073         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
11074         symlink is not used.
11075         * modules/symlinkat (Depends-on): Add symlink.
11076         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11077         * modules/canonicalize-tests (Depends-on): Likewise.
11078         * modules/lstat-tests (Depends-on): Likewise.
11079         * modules/openat-tests (Depends-on): Likewise.
11080         * modules/remove-tests (Depends-on): Likewise.
11081         * modules/rmdir-tests (Depends-on): Likewise.
11082         * modules/unlink-tests (Depends-on): Likewise.
11083         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
11084         * tests/test-canonicalize.c (symlink): Likewise.
11085         * tests/test-fstatat.c (symlink): Likewise.
11086         * tests/test-lstat.c (symlink): Likewise.
11087         * tests/test-remove.c (symlink): Likewise.
11088         * tests/test-rmdir.c (symlink): Likewise.
11089         * tests/test-unlink.c (symlink): Likewise.
11090         * tests/test-unlinkat.c (symlink): Likewise.
11091
11092         symlink: new module, for Solaris 9 bug
11093         * modules/symlink: New file.
11094         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11095         * lib/symlink.c: Likewise.
11096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11097         * modules/unistd (Makefile.am): Substitute them.
11098         * lib/unistd.in.h (symlink): Declare replacement.
11099         * MODULES.html.sh (File system functions): Mention it.
11100         * doc/posix-functions/symlink.texi (symlink): Likewise.
11101         * modules/symlink-tests: New test.
11102         * tests/test-symlink.c: Likewise.
11103
11104 2009-09-23  Bruno Haible  <bruno@clisp.org>
11105
11106         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
11107         when needed.
11108         Test case: gnulib-tool --import --with-tests atexit inttypes.
11109         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
11110
11111 2009-09-23  Bruno Haible  <bruno@clisp.org>
11112
11113         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
11114         subcommand, not in a subshell.
11115
11116 2009-09-22  Eric Blake  <ebb9@byu.net>
11117
11118         unistd: sort replacement declarations
11119         * lib/unistd.in.h: Sort declarations.
11120
11121         open, openat: minor optimization
11122         * lib/open.c (open): If open succeeded, len is non-zero.
11123         * lib/openat.c (rpl_openat): Likewise.
11124
11125         link-follow: ensure correct result
11126         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
11127         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
11128         distinguish between possible failures.
11129
11130 2009-09-21  Eric Blake  <ebb9@byu.net>
11131
11132         fts: avoid compiler warning
11133         * lib/fts.c (dirent_inode_sort_may_be_useful)
11134         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
11135
11136 2009-09-19  Bruno Haible  <bruno@clisp.org>
11137
11138         * lib/progreloc.c (canonicalize_file_name): New declaration.
11139
11140 2009-09-19  Eric Blake  <ebb9@byu.net>
11141
11142         link: fix quoting
11143         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
11144
11145         openat: fix openat bugs on Solaris 9
11146         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
11147         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
11148         * modules/openat (Depends-on): Add open.
11149         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
11150         * modules/fcntl-h (Makefile.am): Substitute it.
11151         * lib/fcntl.in.h (openat): Declare replacement.
11152         * doc/posix-functions/openat.texi (openat): Document this.
11153
11154         openat: move fstatat and unlinkat into correct files
11155         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
11156         compiled.
11157         * lib/openat.c (fstatat, unlinkat): Move...
11158         * lib/fstatat.c (fstatat): ...into correct files.
11159         * lib/unlinkat.c (unlinkat): Likewise.
11160
11161         openat: fix unlinkat bugs on Solaris 9
11162         * lib/unlinkat.c (unlinkat): New file.
11163         * modules/openat (Depends-on): Add unlink.
11164         (Files): Distribute it.
11165         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
11166         trailing slash behavior is broken.
11167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11168         * modules/unistd (Makefile.am): Substitute it.
11169         * lib/unistd.in.h (unlinkat): Declare replacement.
11170         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
11171
11172         openat: fix fstatat bugs on Solaris 9
11173         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
11174         stat.
11175         * doc/posix-functions/fstatat.texi (fstatat): Document this.
11176
11177         test-unlinkat: enhance test, to expose Solaris 9 bug
11178         * tests/test-unlink.c (main): Factor guts...
11179         * tests/test-unlink.h (test_rmdir_func): ...into new file.
11180         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
11181         * tests/test-rmdir.c (main): Adjust caller.
11182         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
11183         (unlinker): New helper function.
11184         (rmdirat): Enhance check.
11185         * modules/rmdir-tests (Depends-on): Add stdbool.
11186         * modules/unlink-tests (Depends-on): Likewise.
11187         (Files): Add test-unlink.h.
11188         * modules/openat-tests (Files): Likewise.
11189         (Depends-on): Add unlinkdir.
11190
11191         test-fstatat: new test, to expose Solaris 9 bugs
11192         * tests/test-stat.c (main): Factor guts...
11193         * tests/test-stat.h (test_stat_func): ...into new file.
11194         * tests/test-lstat.c (main): Factor guts...
11195         * tests/test-lstat.h (test_lstat_func): ...into new file.
11196         * tests/test-fstatat.c: New file.
11197         * modules/stat-tests (Files): Add test-stat.h.
11198         * modules/lstat-tests (Files): Add test-lstat.h.
11199         (Depends-on): Add stdbool.
11200         * modules/openat-tests (Depends-on): Add pathmax.
11201         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
11202         (Makefile.am): Run new test.
11203
11204         remove: new module, for mingw and Solaris 9 bugs
11205         * modules/remove: New file.
11206         * lib/remove.c: Likewise.
11207         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
11208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
11209         * modules/stdio (Makefile.am): Use them.
11210         * lib/stdio.in.h (remove): Declare replacement.
11211         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11212         * doc/posix-functions/remove.texi (remove): Likewise.
11213         * modules/remove-tests: New test.
11214         * tests/test-remove.c: Likewise.
11215
11216         unlink: new module, for Solaris 9 bug
11217         * modules/unlink: New file.
11218         * lib/unlink.c: Likewise.
11219         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11221         * modules/unistd (Makefile.am): Use them.
11222         * lib/unistd.in.h (stat): Declare replacement.
11223         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11224         * doc/posix-functions/unlink.texi (unlink): Likewise.
11225         * modules/unlink-tests: New test.
11226         * tests/test-unlink.c: Likewise.
11227
11228         lstat: fix Solaris 9 bug
11229         * lib/lstat.c (lstat): Also check for trailing slash on
11230         non-symlink, non-directories.  Use stat module to simplify logic.
11231         * doc/posix-functions/lstat.texi (lstat): Document it.
11232         * modules/lstat-tests (Depends-on): Add errno, same-inode.
11233         (configure.ac): Check for symlink.
11234         * tests/test-lstat.c (main): Add more tests.
11235
11236         stat: add as dependency to other modules
11237         * modules/chown (Depends-on): Add stat.
11238         * modules/euidaccess (Depends-on): Likewise.
11239         * modules/fchdir (Depends-on): Likewise.
11240         * modules/isdir (Depends-on): Likewise.
11241         * modules/link (Depends-on): Likewise.
11242         * modules/lstat (Depends-on): Likewise.
11243         * modules/mkdir-p (Depends-on): Likewise.
11244         * modules/modechange (Depends-on): Likewise.
11245         * modules/open (Depends-on): Likewise.
11246         * modules/readlink (Depends-on): Likewise.
11247         * modules/same (Depends-on): Likewise.
11248
11249         stat: fix Solaris 9 bug
11250         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
11251         slash.
11252         * lib/stat.c (rpl_stat): Work around it.
11253         * doc/posix-functions/stat.texi (stat): Update documentation.
11254
11255         stat: new module, for mingw bug
11256         * modules/stat: New file.
11257         * lib/stat.c: Likewise.
11258         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11259         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11260         * modules/sys_stat (Makefile.am): Use them.
11261         * lib/sys_stat.in.h (stat): Declare replacement.
11262         * lib/openat.c (fstatat): Deal with lstat and stat being function
11263         macros.
11264         * modules/openat (Depends-on): Add inline.
11265         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11266         * doc/posix-functions/stat.texi (stat): Likewise.
11267         * modules/stat-tests: New test.
11268         * tests/test-stat.c: Likewise.
11269
11270 2009-09-19  Jim Meyering  <meyering@redhat.com>
11271
11272         syntax-check: detect unnecessary inclusion of canonicalize.h
11273         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
11274
11275 2009-09-19  Eric Blake  <ebb9@byu.net>
11276
11277         canonicalize-lgpl: adjust clients to use correct header
11278         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
11279         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
11280         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
11281         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
11282         * lib/progreloc.c (includes): Likewise.
11283
11284 2009-09-19  Jim Meyering  <meyering@redhat.com>
11285
11286         test-posixtm.c: correct a comment
11287         * tests/test-posixtm.c: Correct first-line comment.
11288         Spotted by Eric Blake.
11289
11290 2009-09-16  Jim Meyering  <meyering@redhat.com>
11291
11292         posixtm-tests: make T const-correct; add a test case
11293         * tests/test-posixtm.c (T): Declare const.
11294         Add a test for -(2^31+1).
11295         Remove useless can-succeed-only-in-2002 test.
11296
11297         posixtm-tests: adjust the sole failing test
11298         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
11299         expected output matches what mktime now produces.  Cross-checked via
11300         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
11301
11302         posixtm: move #ifdef'd tests into a new module
11303         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
11304         * tests/test-posixtm.c: ... this new file.
11305         * modules/posixtm-tests: New module.
11306
11307 2009-09-19  Eric Blake  <ebb9@byu.net>
11308
11309         openat: simplify use of at-func.c
11310         * lib/at-func.c (includes): Include prerequisites here, to
11311         simplify requirements on client files.
11312         * lib/openat-priv.h: Add double-inclusion guard.
11313         * lib/faccessat.c (includes): Simplify.
11314         * lib/fchmodat.c (includes): Likewise.
11315         * lib/fchownat.c (includes): Likewise.
11316         * lib/mkdirat.c (includes): Likewise.
11317         * lib/mkfifoat.c (includes): Likewise.
11318         * lib/symlinkat.c (includes): Likewise.
11319
11320         openat: allow return of fd 0
11321         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
11322         * modules/save-cwd (Depends-on): Replace fcntl-safer with
11323         unistd-safer.
11324         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
11325         <fcntl.h>; this module does not leak fds.
11326         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
11327         must be allowed to return 0, leaving openat_safer to add the
11328         safety.
11329         (openat_permissive): Avoid writing to just-opened fd 2 if
11330         restoring the current directory fails.
11331         * lib/openat-die.c (openat_restore_fail): Add comment.
11332         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
11333         (save_cwd): Guarantee safe fd, but without use of open_safer.
11334         * tests/test-openat.c: New test.
11335         * modules/openat-tests (Files, Makefile.am): Distribute and build
11336         new file.
11337
11338         relocatable-prog-wrapper: fix build
11339         * modules/relocatable-prog-wrapper (Files): Update name of
11340         canonicalize m4 file, broken on 2009-09-17.
11341         Reported by emad hajjar <aleppos@hotmail.com>.
11342
11343 2009-09-19  Bruno Haible  <bruno@clisp.org>
11344
11345         * lib/safe-alloc.h: Use the standard header with GPL copyright.
11346         * lib/safe-alloc.c: Likewise.
11347         Reported by Ian Beckwith <ianb@erislabs.net>.
11348
11349 2009-09-18  Bruno Haible  <bruno@clisp.org>
11350
11351         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
11352         Reported by <erobles@sensacd.com.mx>.
11353
11354 2009-09-17  Eric Blake  <ebb9@byu.net>
11355
11356         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
11357         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
11358         slashes when checking if last component is missing.
11359         * tests/test-canonicalize.c (main): Test this.
11360
11361         canonicalize, canonicalize-lgpl: honor // if distinct from /
11362         * modules/canonicalize (Files): Add double-slash-root.m4.
11363         * modules/canonicalize-lgpl (Files): Likewise.
11364         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
11365         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
11366         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
11367         fallback definition.
11368         (canonicalize_filename_mode): Use it to protect //.
11369         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
11370         (__realpath): Likewise.
11371         * tests/test-canonicalize.c (main): Test this.
11372         * tests/test-canonicalize-lgpl.c (main): Likewise.
11373         * modules/canonicalize-tests (Depends-on): Add same-inode.
11374         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11375
11376         canonicalize-lgpl: fix glibc bug with trailing slash
11377         * m4/canonicalize-lgpl.m4: Move contents...
11378         * m4/canonicalize.m4: ...here.
11379         (gl_CANONICALIZE_LGPL): Factor realpath check...
11380         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
11381         glibc 2.3.5 bug, fixed 2005-04-27.
11382         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
11383         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
11384         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
11385         * modules/canonicalize-lgpl (Files): Manage file rename.
11386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11387         * modules/stdlib (Makefile.am): Substitute witness.
11388         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
11389         is needed.
11390         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
11391         replacement is required.
11392         * lib/canonicalize.c (canonicalize_file_name): Likewise.
11393         * doc/glibc-functions/canonicalize_file_name.texi
11394         (canonicalize_file_name): Document this.
11395         * doc/posix-functions/realpath.texi (realpath): Likewise.
11396
11397         canonicalize-lgpl: reject non-directory with trailing slash
11398         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
11399         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
11400         catches failures in glibc 2.3.5.
11401         * tests/test-canonicalize.c (main): Likewise.
11402
11403         canonicalize-lgpl: use native realpath if it works
11404         * lib/canonicalize-lgpl.c (realpath): Guard with
11405         FUNC_REALPATH_WORKS.
11406         * lib/stdlib.in.h (realpath): Make declaration optional based on
11407         HAVE_REALPATH.
11408         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
11409         native realpath works.
11410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11411         * modules/stdlib (Makefile.am): Substitute witness.
11412
11413         canonicalize, canonicalize-lgpl: use <stdlib.h>
11414         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
11415         (Include): Mention <stdlib.h>.
11416         (configure.ac): Mention functions we provide.
11417         * modules/canonicalize (configure.ac): Likewise.
11418         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
11419         realpath if canonicalize_file_name is missing.
11420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
11421         * modules/stdlib (Makefile.am): Substitute witnesses.
11422         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
11423         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
11424         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
11425         * NEWS: Document this.
11426         * doc/glibc-functions/canonicalize_file_name.texi
11427         (canonicalize_file_name): Likewise.
11428         * doc/posix-functions/realpath.texi (realpath): Likewise.
11429         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
11430
11431         test-canonicalize: consolidate into single C program
11432         * tests/test-canonicalize.sh: Delete; move setup into...
11433         * tests/test-canonicalize.c (main): ...the program, making it
11434         easier to run in debugger.  Add some tests.
11435         * modules/canonicalize-tests (Files): Remove unused file.
11436         (Depends-on): Add progname.
11437         (configure.ac, Makefile.am): Simplify.
11438
11439         test-canonicalize-lgpl: consolidate into single C program
11440         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
11441         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
11442         easier to run in debugger.  Add some tests.
11443         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
11444         (configure.ac, Makefile.am): Simplify.
11445
11446         canonicalize: avoid resolvepath
11447         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
11448         unnecessary checks.
11449         * lib/canonicalize.c (includes): Simplify.
11450         (canonicalize_file_name): Drop resolvepath implementation.
11451         * modules/canonicalize (Depends-on): Drop filenamecat.
11452
11453         canonicalize: don't lose errno
11454         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
11455         over calls to free.
11456
11457         canonicalize: simplify errno handling
11458         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
11459         assignment.
11460
11461         canonicalize, canonicalize-lgpl: update module dependencies
11462         * modules/canonicalize (Depends-on): Add extensions, lstat,
11463         pathmax, stdlib.
11464         (Files): Drop pathmax.h.
11465         (configure.ac): Adjust macro name.
11466         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
11467         lstat, stdlib, sys_stat.
11468         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
11469         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
11470         extensions.
11471         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
11472         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
11473         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
11474         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
11475         declaration, if available.
11476         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
11477         we can rely on the readlink module.
11478         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
11479         (includes): Use <unistd.h> unconditionally.
11480
11481 2009-09-17  Eric Blake  <ebb9@byu.net>
11482
11483         maint: make Include sections of modules consistent
11484         * modules/alloca: Use only header name; no need to list #include.
11485         * modules/alloca-opt: Likewise.
11486         * modules/arpa_inet: Likewise.
11487         * modules/canon-host: Likewise.
11488         * modules/configmake: Likewise.
11489         * modules/dirent: Likewise.
11490         * modules/eealloc: Likewise.
11491         * modules/environ: Likewise.
11492         * modules/fchdir: Likewise.
11493         * modules/fcntl: Likewise.
11494         * modules/fcntl-h: Likewise.
11495         * modules/gethrxtime: Likewise.
11496         * modules/gettime: Likewise.
11497         * modules/ignore-value: Likewise.
11498         * modules/inet_ntop: Likewise.
11499         * modules/inet_pton: Likewise.
11500         * modules/inttypes: Likewise.
11501         * modules/isnand-nolibm: Likewise.
11502         * modules/isnanf-nolibm: Likewise.
11503         * modules/mbchar: Likewise.
11504         * modules/mbfile: Likewise.
11505         * modules/mbiter: Likewise.
11506         * modules/mbuiter: Likewise.
11507         * modules/netdb: Likewise.
11508         * modules/netinet_in: Likewise.
11509         * modules/nproc: Likewise.
11510         * modules/pagealign_alloc: Likewise.
11511         * modules/poll: Likewise.
11512         * modules/printf-frexp: Likewise.
11513         * modules/pthread: Likewise.
11514         * modules/putenv: Likewise.
11515         * modules/random_r: Likewise.
11516         * modules/relocatable-prog: Likewise.
11517         * modules/search: Likewise.
11518         * modules/select: Likewise.
11519         * modules/selinux-h: Likewise.
11520         * modules/settime: Likewise.
11521         * modules/signal: Likewise.
11522         * modules/size_max: Likewise.
11523         * modules/socklen: Likewise.
11524         * modules/ssize_t: Likewise.
11525         * modules/stdarg: Likewise.
11526         * modules/stdbool: Likewise.
11527         * modules/stddef: Likewise.
11528         * modules/stdint: Likewise.
11529         * modules/stdio: Likewise.
11530         * modules/stdlib: Likewise.
11531         * modules/string: Likewise.
11532         * modules/strings: Likewise.
11533         * modules/sys_file: Likewise.
11534         * modules/sys_ioctl: Likewise.
11535         * modules/sys_select: Likewise.
11536         * modules/sys_socket: Likewise.
11537         * modules/sys_stat: Likewise.
11538         * modules/sys_time: Likewise.
11539         * modules/sys_times: Likewise.
11540         * modules/sys_utsname: Likewise.
11541         * modules/sys_wait: Likewise.
11542         * modules/sysexits: Likewise.
11543         * modules/time: Likewise.
11544         * modules/times: Likewise.
11545         * modules/tmpfile: Likewise.
11546         * modules/trim: Likewise.
11547         * modules/unistd: Likewise.
11548         * modules/wchar: Likewise.
11549         * modules/wctype: Likewise.
11550
11551 2009-09-17  Bruno Haible  <bruno@clisp.org>
11552
11553         Make getdate.y compile on QNX and NetBSD 5 / i386.
11554         * m4/getdate.m4 (gl_GETDATE): Conditionally define
11555         TIME_T_FITS_IN_LONG_INT.
11556         * lib/getdate.y (long_time_t): New type.
11557         (relative_time): Change type of 'seconds' field to long_time_t.
11558         (get_date): Update types of local variables. Check against overflow
11559         during conversion from long_time_t to time_t.
11560         Reported by Matt Kraai <kraai@ftbfs.org>
11561         and Hasso Tepper <hasso@netbsd.org>.
11562
11563 2009-09-17  Bruno Haible  <bruno@clisp.org>
11564
11565         * modules/COPYING: Update copyright years.
11566         * modules/README: Likeiwse.
11567         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
11568         Reported by Ian Beckwith <ianb@erislabs.net>.
11569
11570 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11571
11572         * users.txt: Update references for gnuit package.
11573
11574 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11575
11576         * m4/getdelim.m4: Fix typo in copyright line.
11577
11578 2009-09-17  Bruno Haible  <bruno@clisp.org>
11579
11580         * lib/atoll.c: Use the standard header with GPL copyright.
11581         * lib/argz.in.h: Likewise.
11582         * lib/glob.c: Likewise.
11583         * lib/glob-libc.h: Likewise.
11584         * lib/random_r.c: Likewise.
11585         * lib/siglist.h: Likewise.
11586         * lib/strsignal.c: Likewise.
11587         Reported by Ian Beckwith <ianb@erislabs.net>.
11588
11589 2009-09-17  Eric Blake  <ebb9@byu.net>
11590
11591         rmdir: ensure correct dependency order
11592         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
11593
11594 2009-09-17  Bruno Haible  <bruno@clisp.org>
11595
11596         Disable assertion that fails on NetBSD 5 / i386.
11597         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
11598         Reported by Sam Steingold <sds@gnu.org>
11599         and Hasso Tepper <hasso@netbsd.org>.
11600
11601 2009-09-16  Eric Blake  <ebb9@byu.net>
11602
11603         unlinkdir: port to mingw
11604         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
11605         on which no one can unlink a directory.
11606
11607         stdlib: sort witness names
11608         * modules/stdlib (Makefile.am): Sort replacements.
11609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11610         * lib/stdlib.in.h: Likewise.
11611
11612         parse-duration-tests: avoid link failure
11613         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
11614         LIBINTL.
11615         Reported by Tom G. Christensen.
11616
11617         openat-tests: ensure unlinkat behaves like rmdir
11618         * tests/test-rmdir.c (main): Factor guts...
11619         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11620         * modules/rmdir-tests (Files): Ship new file.
11621         * modules/openat-tests: New test.
11622         * tests/test-unlinkat.c: Likewise.
11623
11624         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11625         * modules/rmdir-errno (Status, Notice): Now obsolete.
11626
11627         rmdir: work around cygwin 1.5.x and mingw bugs
11628         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11629         * lib/rmdir.c (rmdir): Work around it.
11630         * modules/rmdir (Status, Notice): No longer obsolete.
11631         (Files): Add dos.m4.
11632         (Depends-on): Add unistd.
11633         (configure.ac): Set witnesses.
11634         (License): Relax to LGPLv2+.
11635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11636         * modules/unistd (Makefile.am): Substitute witnesses.
11637         * lib/unistd.in.h (rmdir): Declare replacement.
11638         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11639         * modules/rmdir-tests: New tests.
11640         * tests/test-rmdir.c: Likewise.
11641
11642 2009-09-15  Eric Blake  <ebb9@byu.net>
11643
11644         fchdir: improve use of replacement functions
11645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11646         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11647         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11648         REPLACE_CLOSEDIR.
11649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11650         * modules/sys_stat (Makefile.am): Substitute correct witness.
11651         * modules/dirent (Makefile.am): Likewise.
11652         * modules/unistd (Makefile.am): Likewise.
11653         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11654         * lib/unistd.in.h (dup): Likewise.
11655         * lib/sys_stat.in.h (fstat): Likewise.
11656
11657         maint: ignore gnulib-tool temp files
11658         * .gitignore: Ignore files created during gnulib-tool --test.
11659
11660 2009-09-13  Jim Meyering  <meyering@redhat.com>
11661
11662         posixtm: don't reject a time that specify "60" as the number of seconds
11663         * lib/posixtm.c (posixtime): The code to reject invalid dates
11664         would also reject a time specified with the .60 suffix.
11665         But POSIX allows that, in order to accommodate leap seconds.
11666         So don't reject it.
11667         (main): Adjust tests accordingly.
11668         * modules/posixtm (Depends-on): Add stpcpy.
11669
11670 2009-09-11  Jim Meyering  <meyering@redhat.com>
11671
11672         announce-gen: include [$release_type] in emitted Subject:
11673         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11674         e.g., [stable] in the emitted Subject: line.
11675
11676 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11677
11678         Remove obsolete macros from several modules.
11679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11680         obsolete Autoconf macros with their modern counterparts.
11681         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11682         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11684         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11685         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11686         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11688         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11689         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11690         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11691         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11692         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11693         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11694         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11695         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11696         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11697         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11698         * m4/time_r.m4 (gl_TIME_R): Likewise.
11699         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11700         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11701         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11702
11703         Fix copyright header in build-aux scripts.
11704         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11705         recommendation.
11706         * build-aux/ncftpput-ftp: Likewise.
11707         * build-aux/update-copyright: Likewise.
11708
11709 2009-09-09  Eric Blake  <ebb9@byu.net>
11710
11711         test-link: allow Linux choice of errno
11712         * tests/test-link.c (main): Relax test for alternate error.
11713
11714         strndup: fix improper m4 caching
11715         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11716         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11717         (gl_PREREQ_STRNDUP): Delete.
11718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11719         * modules/string (Makefile.am): Substitute it.
11720         * lib/string.in.h (strndup): Modernize prototype.
11721
11722         getcwd: port to mingw
11723         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11724         different from the POSIX assumptions made throughout the getcwd
11725         module; fortunately, the mingw getcwd does not need replacement.
11726         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11727         * modules/getcwd-tests: New test.
11728         * tests/test-getcwd.c: Likewise.
11729
11730         link: fix platform bugs
11731         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11732         * lib/link.c (link): Work around them.  Fix related mingw bug.
11733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11734         * modules/unistd (Makefile.am): Substitute it.
11735         * lib/unistd.in.h (link): Declare replacement.
11736         * doc/posix-functions/link.texi (link): Document this.
11737         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11738
11739         test-link: consolidate into single C program, test more cases
11740         * tests/test-link.sh: Delete.
11741         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11742         at least Cygwin and Solaris.
11743         * modules/link-tests (Files): Remove unused file.
11744         (Depends-on): Add errno, sys_stat.
11745         (Makefile.am): Simplify.
11746
11747 2009-09-08  Bruno Haible  <bruno@clisp.org>
11748
11749         Work around towlower, towupper bug on mingw.
11750         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11751         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11752         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11753         * doc/posix-functions/towupper.texi: Likewise.
11754         Reported by Eric Blake.
11755
11756 2009-09-08  Jim Meyering  <meyering@redhat.com>
11757
11758         build: don't try to run autoheader if we don't use it
11759         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11760         is not used in configure.ac.
11761
11762 2009-09-08  Eric Blake  <ebb9@byu.net>
11763
11764         euidaccess: fix compilation error
11765         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11766
11767         rawmemchr: relax license
11768         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11769         okay.
11770         Reported by Jim Meyering.
11771
11772         mkfifoat: new module
11773         * modules/mkfifoat: New file.
11774         * lib/mkfifoat.c: Likewise.
11775         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11777         * modules/sys_stat (Makefile.am): Use them.
11778         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11779         * MODULES.html.sh (File system functions): Mention module.
11780         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11781         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11782         * modules/mkfifoat-tests: New test.
11783         * tests/test-mkfifoat.c: Likewise.
11784
11785         strchrnul: relax license
11786         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11787         okay.
11788         Reported by Jim Meyering.
11789
11790 2009-09-08  Eric Blake  <ebb9@byu.net>
11791
11792         fstatat: fix compilation on Solaris
11793         * lib/fstatat.c (includes): Add fcntl.h.
11794         Reported by Pádraig Brady.
11795
11796 2009-09-07  Eric Blake  <ebb9@byu.net>
11797
11798         rename: modernize replacement
11799         * modules/rename (Depends-on): Add stdio.
11800         (configure.ac): Declare witness.
11801         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11802         stdio take care of replacement.
11803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11804         * modules/stdio (Makefile.am): Substitute them.
11805         * lib/stdio.in.h (rename): Declare replacement.
11806         * lib/rename.c (includes): Allow cross-compilation to non-windows
11807         machines.
11808         * doc/posix-functions/rename.texi (rename): Improve
11809         documentation.
11810
11811         stdio: sort witness names
11812         * modules/stdio (Makefile.am): Sort replacements.
11813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11814         * lib/stdio.in.h: Likewise.
11815
11816         getcwd: minor cleanups
11817         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11818         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11819
11820         openat: provide more convenience names
11821         * modules/faccessat (configure.ac): Add C witness.
11822         * lib/unistd.in.h (readlinkat): Fix typo.
11823         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11824         convenience wrappers.
11825         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11826         wrappers in syntax checks.
11827
11828 2009-09-06  Eric Blake  <ebb9@byu.net>
11829
11830         doc: fix comments in recent patches
11831         * lib/faccessat.c: Mention correct function.
11832         * lib/fchmodat.c: Likewise.
11833         * lib/fchownat.c: Likewise.
11834         * lib/symlinkat.c: Likewise.
11835         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11836         constants.
11837
11838         faccessat, symlinkat: continue cleanup of previous patch
11839         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11840         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11841         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11843         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11844         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11845         set.
11846
11847 2009-09-06  Bruno Haible  <bruno@clisp.org>
11848
11849         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11850         (fstatat): Declare if GNULIB_FSTATAT is set.
11851         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11852         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11853         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11854         * modules/fcntl-h (Files): Remove m4/openat.m4.
11855         * modules/sys_stat (Files): Remove m4/openat.m4.
11856         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11857         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11858         * modules/unistd (Files): Remove m4/openat.m4.
11859         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11860         GNULIB_OPENAT.
11861         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11862         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11863         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11864         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11865         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11866         gl_OPENAT_DEFAULTS.
11867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11868         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11869         Don't require gl_OPENAT_DEFAULTS.
11870         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11871         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11872         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11873         (gl_OPENAT_DEFAULTS): Remove macro.
11874
11875 2009-09-06  Bruno Haible  <bruno@clisp.org>
11876
11877         * modules/openat (configure.ac): Remove unneeded witness.
11878
11879 2009-09-06  Bruno Haible  <bruno@clisp.org>
11880
11881         Set errno to ENOSYS when a function is entirely unsupported.
11882         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11883         EOPNOTSUPP.
11884         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11885         * modules/chown (Depends-on): Remove errno.
11886
11887 2009-09-06  Bruno Haible  <bruno@clisp.org>
11888
11889         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11890
11891 2009-09-06  Bruno Haible  <bruno@clisp.org>
11892
11893         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11894
11895 2009-09-06  Ben Pfaff  <blp@gnu.org>
11896             Bruno Haible  <bruno@clisp.org>
11897
11898         Work around a glibc bug in strtok_r.
11899         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11900         Undefine if UNDEFINE_STRTOK_R is set.
11901         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11903         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11904         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11905         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11906         UNDEFINE_STRTOK_R.
11907         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11908
11909 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11910
11911         exclude: minor fix
11912         * lib/exclude.c: Include wctype.h
11913
11914 2009-09-06  Akim Demaille  <demaille@gostai.com>
11915
11916         bootstrap: improve error message
11917         * build-aux/bootstrap (find_tool): Upon failure, report the list
11918         of candidates.
11919         Honor the initial value of the envvar.
11920
11921 2009-09-05  Eric Blake  <ebb9@byu.net>
11922
11923         symlinkat: new module
11924         * modules/symlinkat: New file.
11925         * lib/symlinkat.c: Likewise.
11926         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11928         * modules/unistd (Makefile.am): Use them.
11929         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11930         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11931         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11932         * MODULES.html.sh (File system functions): Mention module.
11933         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11934         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11935         * modules/symlinkat-tests: New test.
11936         * tests/test-symlinkat.c: Likewise.
11937
11938         test-openat-safer: add more checks
11939         * tests/test-openat-safer.c (main): Check more code paths.
11940
11941 2009-09-05  Jim Meyering  <meyering@redhat.com>
11942
11943         syntax-check: detect unnecessary inclusion of openat.h
11944         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11945
11946 2009-09-05  Bruno Haible  <bruno@clisp.org>
11947
11948         Support towlower, towupper.
11949         * doc/posix-functions/towlower.texi: Mention module wctype.
11950         * doc/posix-functions/towupper.texi: Likewise.
11951         * lib/wctype.in.h (towlower, towupper): New functions.
11952         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11953         (ASSERT): New macro.
11954         (e): New variable.
11955         (main): Test also towlower, towupper. Test WEOF argument.
11956         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11957
11958 2009-09-05  Bruno Haible  <bruno@clisp.org>
11959
11960         Fix conversion behaviour when the input is invalid.
11961         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11962         mark occurring in first pass of indirect conversion.
11963         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11964         input.
11965         Found by clang's static analyzer.
11966
11967 2009-09-05  Bruno Haible  <bruno@clisp.org>
11968
11969         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11970         where direct conversion is possible.
11971
11972 2009-09-04  Eric Blake  <ebb9@byu.net>
11973
11974         openat: fail with ENOENT on empty name
11975         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11976         buffer.
11977
11978         link-follow: fix logic bug in prior patch
11979         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11980         reversed sense of yes and no in prior patch.  Avoid confusing
11981         compilation failure with desired semantics.
11982
11983         link-follow: accomodate mingw and cross-compilation
11984         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11985         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11986         cross-compilation results to -1, to make linkat easier to
11987         implement when cross-compiling.  Trivially support mingw.
11988         * modules/link-follow (configure.ac): Call new name.
11989         * NEWS: Mention this.
11990
11991 2009-09-03  Eric Blake  <ebb9@byu.net>
11992
11993         faccessat: compile replacement
11994         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11995         needed.
11996
11997         fts: fix compilation error
11998         * lib/fts.c (includes): Re-add "openat.h", for
11999         openat_needs_fchdir.
12000
12001         faccessat: new module
12002         * modules/faccessat: New file.
12003         * lib/faccessat.c: Likewise.
12004         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
12005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12006         * modules/unistd (Makefile.am): Use it.
12007         * lib/unistd.in.h (faccessat): Declare it.
12008         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
12009         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
12010         * MODULES.html.sh (File system functions): Mention it.
12011         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
12012         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
12013
12014         euidaccess: prefer POSIX over non-standard implementation
12015         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
12016         * lib/euidaccess.c (euidaccess): Use it if available.
12017
12018         openat: make template easier to use
12019         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
12020         AT_FUNC_F2 to be undefined.
12021         (VALIDATE_FLAG): New macro; use it to reject bad flags.
12022         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
12023         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
12024         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
12025         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
12026         Likewise.
12027         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
12028         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
12029         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
12030         Likewise.
12031
12032         openat: declare in POSIX headers
12033         * NEWS: Mention this.
12034         * modules/openat (configure.ac): Declare witnesses.
12035         (Depends-on): Add fcntl-h, sys_stat, unistd.
12036         (Include): Mention correct headers.
12037         * modules/fcntl-h (Depends-on): Add link-warning.
12038         (Files): Add openat.m4.
12039         (Makefile.am): Substitute witnesses.
12040         * modules/sys_stat (Files, Makefile.am): Likewise.
12041         * modules/unistd (Files, Makefile.am): Likewise.
12042         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
12043         (gl_OPENAT_DEFAULTS): New macro.
12044         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
12045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
12046         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
12047         (SYS_STAT_H): Remove unused variable.
12048         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
12049         * lib/fcntl--.h (includes): Remove unneeded header.
12050         * lib/openat-safer.c (includes): Likewise.
12051         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
12052         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
12053         appropriate headers.
12054         (__OPENAT_PREFIX): Delete.
12055         * lib/fcntl.in.h (openat): Provide declaration.
12056         (AT_FDCWD): Fix Solaris bug.
12057         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
12058         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
12059         * lib/fchmodat.c (includes):  Adjust to find declaration.
12060         * lib/fchownat.c (includes): Likewise.
12061         * lib/mkdirat.c (includes): Likewise.
12062         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
12063         still visible.
12064
12065 2009-09-02  Eric Blake  <ebb9@byu.net>
12066
12067         errno: use consistently
12068         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
12069         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
12070         * lib/canonicalize.c (ELOOP): Likewise.
12071         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
12072         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
12073         * lib/lchown.c (EOPNOTSUPP): Likewise.
12074         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
12075         * lib/savewd.c (ESTALE): Likewise.
12076         * lib/settime.c (ENOSYS): Likewise.
12077         * lib/utimens.c (ENOSYS): Likewise.
12078         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
12079         * lib/chdir-safer.c (ELOOP): Likewise.
12080         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
12081         * modules/c-stack (Depends-on): Add errno.
12082         * modules/canonicalize (Depends-on): Likewise.
12083         * modules/chdir-safer (Depends-on): Likewise.
12084         * modules/fdopendir (Depends-on): Likewise.
12085         * modules/inet_ntop (Depends-on): Likewise.
12086         * modules/inet_pton (Depends-on): Likewise.
12087         * modules/lchown (Depends-on): Likewise.
12088         * modules/openat (Depends-on): Likewise.
12089         * modules/savewd (Depends-on): Likewise.
12090         * modules/settime (Depends-on): Likewise.
12091         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
12092
12093         fts: avoid leaking fds
12094         * modules/fts (Depends-on): Add cloexec.
12095         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
12096         flag.
12097
12098         fts: make directory fds more robust
12099         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
12100         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
12101
12102         backupfile, chdir-long, fts, savedir: make safer
12103         * lib/backupfile.c (includes): Use "dirent--.h", since
12104         numbered_backup can write to stderr during readdir.
12105         * lib/savedir.c (includes): Likewise.
12106         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
12107         emulation can write to stderr on failure.
12108         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
12109         * lib/getcwd.c: Document why opendir_safer is unused.
12110         * lib/glob.c: Likewise.
12111         * lib/scandir.c: Likewise.
12112         * lib/openat-proc.c: Likewise, for open_safer.
12113         * modules/backupfile (Depends-on): Add dirent-safer.
12114         * modules/savedir (Depends-on): Likewise.
12115         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
12116         * modules/chdir-long (Depends-on): Add openat-safer.
12117
12118         openat-safer: new module
12119         * modules/openat-safer: New file.
12120         * lib/openat-safer.c: Likewise.
12121         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
12122         * lib/fcntl-safer.h (openat_safer): Declare.
12123         * lib/fcntl--.h (openat): Override.
12124         * MODULES.html.sh (File descriptor based I/O): Mention it.
12125         * lib/openat.h: Add double-inclusion guards.
12126         * lib/openat.c (includes): Only include "fcntl-safer.h", not
12127         "fcntl--.h", so we can implement openat.
12128         * modules/openat-safer-tests: New test.
12129         * tests/test-openat-safer.c: New file.
12130
12131         dirent-safer: new module
12132         * modules/dirent-safer: New file.
12133         * lib/dirent--.h: Likewise.
12134         * lib/dirent-safer.h: Likewise.
12135         * lib/opendir-safer.c: Likewise.
12136         * m4/dirent-safer.m4: Likewise.
12137         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
12138         * modules/dirent-safer-tests: New test.
12139         * tests/test-dirent-safer.c: New file.
12140         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
12141
12142         fdopendir: optimize on mingw
12143         * lib/unistd.in.h (_gl_directory_name): New prototype.
12144         * lib/fchdir.c (_gl_directory_name): Implement it.
12145         (fchdir): Use it to simplify implementation.
12146         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
12147         fchdir, when available, to avoid calling [f]chdir().
12148
12149         fdopendir: split into its own module
12150         * lib/openat.c (fdopendir): Move...
12151         * lib/fdopendir.c: ...into new file.
12152         * modules/fdopendir: New module.
12153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
12154         * modules/openat (Depends-on): Add fdopendir.
12155         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
12156         fdopendir here.
12157         * modules/savedir (Depends-on): Only need fdopendir, not full
12158         openat.
12159         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
12160         * lib/openat.h (fdopendir): Drop prototype.
12161         * lib/dirent.in.h (fdopendir): Provide prototype.
12162         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
12163         * modules/dirent (Makefile.am): Substitute them.
12164         * MODULES.html.sh (File system functions): Mention it.
12165         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
12166         * modules/fdopendir-tests: New file.
12167         * tests/test-fdopendir.c: Likewise.
12168
12169         fchdir: use more consistent macro convention
12170         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
12171         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
12172         REPLACE_FCHDIR, rather than relying on config.h macros.
12173         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
12174         inside a single make-time REPLACE_FCHDIR block, rather than using
12175         the config.h FCHDIR_REPLACEMENT.
12176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
12177         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
12178         Manage fstat replacement.
12179         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
12180         REPLACE_FCHDIR.
12181         * modules/sys_stat (Files): Add m4/unistd_h.m4.
12182         (Makefile.am): Substitute REPLACE_FCHDIR.
12183         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
12184         FCHDIR_REPLACEMENT.
12185         * lib/dup-safer.c (dup_safer): Likewise.
12186         * lib/dup2.c (rpl_dup2): Likewise.
12187         * lib/dup3.c (rpl_dup3): Likewise.
12188         * lib/open.c (rpl_open): Likewise.
12189
12190         fchdir: simplify error handling, and support dup3
12191         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
12192         stdbool, malloc-posix, realloc-posix.
12193         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
12194         (ensure_dirs_slot): Return false on allocation failure.
12195         (rpl_dup2): Delete.
12196         (_gl_register_dup): New function.
12197         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
12198         (_gl_register_fd): Close fd on allocation failure.
12199         * lib/fcntl.in.h (_gl_register_fd): Update signature.
12200         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
12201         prototype.
12202         (rpl_dup2_fchdir): Delete prototype.
12203         * lib/open.c (open): Update caller.
12204         * lib/dup2.c (dup2): Track fchdir metadata.
12205         * lib/dup3.c (dup3): Likewise.
12206         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
12207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
12208
12209 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12210
12211         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
12212         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
12213         don't pass arguments to AC_OUTPUT.
12214
12215 2009-09-02  Bruno Haible  <bruno@clisp.org>
12216
12217         * modules/mkdtemp (License): Relicense under LGPLv2+.
12218         Reported by Paolo Bonzini.
12219
12220 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12221
12222         Replace uses of obsolete autoconf macros in Jim's modules.
12223         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
12224         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
12225         can evoke a warning from autoconf when run with -Wobsolete
12226         enabled.  They were declared obsolete for good reasons (see
12227         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
12228         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
12229         should not continue using the deprecated macros.
12230         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
12231         obsolete Autoconf macros with modern counterparts.
12232         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12233         * m4/dos.m4 (gl_AC_DOS): Likewise.
12234         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
12235         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12236         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
12237         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
12238         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
12239         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
12240         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
12241         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
12242         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
12243         Likewise.
12244         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12245         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12246         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
12247         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
12248         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
12249         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
12250
12251 2009-09-01  Eric Blake  <ebb9@byu.net>
12252
12253         fchdir: fix off-by-one bug in previous patch
12254         * lib/fchdir.c (rpl_fstat): Use correct bounds.
12255         (_gl_unregister_fd): Delete useless if.
12256
12257 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
12258
12259         maint.mk: sort the list of syntax-check rules
12260         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
12261         easier to get a sense of progress when the rules are run sequentially
12262         and take a long time.
12263
12264 2009-09-01  Simon Josefsson  <simon@josefsson.org>
12265
12266         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
12267         * modules/netinet_in: Likewise.
12268         * modules/sys_file: Likewise.
12269         * modules/sys_ioctl: Likewise.
12270         * modules/sys_select: Likewise.
12271         * modules/sys_socket: Likewise.
12272         * modules/sys_stat: Likewise.
12273         * modules/sys_time: Likewise.
12274         * modules/sys_times: Likewise.
12275         * modules/sys_utsname: Likewise.
12276         * modules/sys_wait: Likewise.
12277
12278 2009-09-01  Jim Meyering  <meyering@redhat.com>
12279
12280         fts: help ensure that return values are not ignored
12281         * lib/fts_.h (__GNUC_PREREQ): Define.
12282         (__attribute_warn_unused_result__): Define.
12283         (fts_children, fts_close, fts_open, fts_read): Declare with
12284         __attribute_warn_unused_result__.
12285
12286         fts: fts_close now fails also when closing a dir file descriptor fails
12287         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
12288         and propagate to caller, along with errno.
12289
12290         announce-gen: correct formatting in --help output
12291         * build-aux/announce-gen (usage): Move the one-line description in
12292         --help output "up", to where it belongs, just after Usage:.
12293
12294 2009-08-31  Eric Blake  <ebb9@byu.net>
12295
12296         fchdir: port to mingw
12297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
12298         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
12299         opened, then use a substitute.
12300         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
12301         replacement.
12302         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
12303         (_gl_register_fd): No need to check stat if open already filters
12304         all directories.
12305         (fchdir): Fix error condition to match POSIX.
12306         * modules/fchdir (Depends-on): Add sys_stat.
12307         * doc/posix-functions/open.texi (open): Document the limitation.
12308         * modules/fchdir-tests: New file.
12309         * tests/test-fchdir.c: Likewise.
12310
12311         canonicalize: allow cross-testing from cygwin to mingw
12312         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
12313         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
12314         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
12315         Likewise.
12316         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
12317         target does not support symlinks.
12318         * tests/test-canonicalize-lgpl.sh: Likewise.
12319
12320         chown: avoid compilation warning on mingw
12321         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
12322         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
12323         mingw.
12324         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
12325         * modules/chown (Depends-on): Add errno.
12326
12327 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12328
12329         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
12330         command.
12331
12332 2009-08-31  Jim Meyering  <meyering@redhat.com>
12333
12334         canonicalize: remove useless initialization
12335         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
12336         initialization of local, "end".
12337
12338 2009-08-30  Bruno Haible  <bruno@clisp.org>
12339
12340         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
12341         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
12342         ENOSYS.
12343
12344 2009-08-30  Bruno Haible  <bruno@clisp.org>
12345
12346         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
12347         /usr/xpg4/bin/tr when it exists.
12348         * tests/test-pipe-filter-gi1.sh: Likewise.
12349
12350 2009-08-30  Bruno Haible  <bruno@clisp.org>
12351
12352         Work around deficient /usr/bin/id program on Solaris.
12353         * tests/test-file-has-acl.sh (ID): New variable.
12354         * tests/test-set-mode-acl.sh (ID): Likewise.
12355         * tests/test-copy-acl.sh (ID): Likewise.
12356         * tests/test-copy-file.sh (ID): Likewise.
12357
12358 2009-08-30  Bruno Haible  <bruno@clisp.org>
12359
12360         New module 'xstriconveh'.
12361         * lib/xstriconveh.h: New file.
12362         * lib/xstriconveh.c: New file.
12363         * modules/xstriconveh: New file.
12364
12365 2009-08-30  Bruno Haible  <bruno@clisp.org>
12366
12367         Make it easier to use mem_cd_iconveh.
12368         * lib/striconveh.h (iconveh_t): New type.
12369         (iconveh_open, iconveh_close): New declarations.
12370         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
12371         with a single 'const iconveh_t *' argument.
12372         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
12373         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
12374         with a single 'const iconveh_t *' argument.
12375         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
12376         * tests/test-striconveh.c (main): Update.
12377         * NEWS: Mention the change.
12378
12379 2009-08-30  Bruno Haible  <bruno@clisp.org>
12380
12381         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
12382         problem.
12383
12384 2009-08-30  Bruno Haible  <bruno@clisp.org>
12385
12386         Work around iconv_open problem on Solaris.
12387         * lib/iconv_open-solaris.gperf: New file.
12388         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
12389         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
12390         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
12391         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
12392         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
12393         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
12394
12395 2009-08-29  Jim Meyering  <meyering@redhat.com>
12396
12397         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
12398         * top/maint.mk (cvs-check): Remove target; it was just an alias
12399         to the better-named vc-diff-check.
12400         (maintainer-distcheck): Remove rule.  It was used only from
12401         the (alpha/beta/major) target, and all of its commands but one
12402         were coreutils-specific.
12403         (vc-dist): Remove rule.
12404         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
12405         Run vc-diff-check, not vc-dist.
12406         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
12407
12408 2009-08-27  Bruno Haible  <bruno@clisp.org>
12409
12410         * tests/test-bitrotate.c (main): Remove test that uses a shift count
12411         of 0.
12412
12413 2009-08-27  Bruno Haible  <bruno@clisp.org>
12414
12415         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
12416         compilers.
12417         * doc/func.texi: Document the SunPRO C bug.
12418
12419 2009-08-27  Bruno Haible  <bruno@clisp.org>
12420
12421         Fix link error on Solaris.
12422         * tests/test-parse-duration.c (xstrdup): Remove function.
12423
12424 2009-08-26  Pádraig Brady  <P@draigbrady.com>
12425
12426         ignore-value: handle pointer types, too
12427         * lib/ignore-value.h (__attribute__): Remove definition.
12428         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
12429         of a more concise and more-often effective "(void) i" statement.
12430         (ignore_ptr): New function to suppress warnings from functions that
12431         return pointers, and to make it explicit that one function doesn't
12432         handle all cases.
12433
12434 2009-08-25  Bruno Haible  <bruno@clisp.org>
12435
12436         dup2: work around a Linux bug.
12437         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
12438         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
12439         * doc/posix-functions/dup2.texi: Mention the Linux bug.
12440         Reported by Simon Josefsson.
12441
12442 2009-08-25  Jim Meyering  <meyering@redhat.com>
12443
12444         libguestfs uses gnulib
12445         * users.txt: Add libguestfs.
12446
12447 2009-08-24  Eric Blake  <ebb9@byu.net>
12448
12449         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
12450         * lib/pipe2.c (includes): Add binary-io.h.
12451         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
12452
12453 2009-08-24  Bruno Haible  <bruno@clisp.org>
12454
12455         Tolerate declared but missing accept4 syscall.
12456         * lib/accept4.c (accept4): Invoke original accept4 function first, if
12457         available.
12458         * lib/sys_socket.in.h (accept4): If the function is already present,
12459         override it.
12460         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
12461         * modules/accept4 (Makefile.am): Compile accept4.c always.
12462         Reported by Paolo Bonzini and Eric Blake.
12463
12464 2009-08-23  Bruno Haible  <bruno@clisp.org>
12465
12466         New module 'accept4'.
12467         * lib/sys_socket.in.h (accept4): New declaration.
12468         * lib/accept4.c: New file.
12469         * m4/accept4.m4: New file.
12470         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12471         GNULIB_ACCEPT4, HAVE_ACCEPT4.
12472         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
12473         HAVE_ACCEPT4.
12474         * modules/accept4: New file.
12475         * doc/glibc-functions/accept4.texi: Mention the new module.
12476
12477 2009-08-24  Jim Meyering  <meyering@redhat.com>
12478
12479         progname: also set global program_invocation_name, when possible
12480         Before this change, a libtool-enabled program that calls glibc's
12481         error function would report the program name as
12482         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
12483         * modules/progname (configure.ac): Check for a declaration of
12484         program_invocation_name.
12485         * lib/progname.c:  Include <errno.h>.
12486         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
12487         Set program_invocation_name.
12488
12489 2009-08-23  Bruno Haible  <bruno@clisp.org>
12490
12491         * lib/dup3.c: Include <string.h>.
12492
12493 2009-08-23  Bruno Haible  <bruno@clisp.org>
12494
12495         * lib/dup3.c (dup3): Test only once whether the system actually exists.
12496         * lib/pipe2.c (pipe2): Likewise.
12497         Suggested by Eric Blake.
12498
12499 2009-08-23  Bruno Haible  <bruno@clisp.org>
12500
12501         Tolerate declared but missing dup3 syscall.
12502         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
12503         * lib/unistd.in.h (dup3): If the function is already present,
12504         override it.
12505         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
12506         * modules/dup3 (Makefile.am): Compile dup3.c always.
12507         Reported by Paolo Bonzini.
12508
12509 2009-08-23  Bruno Haible  <bruno@clisp.org>
12510
12511         Tolerate declared but missing pipe2 syscall.
12512         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
12513         available.
12514         * lib/unistd.in.h (pipe2): If the function is already present,
12515         override it.
12516         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
12517         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
12518         Reported by Paolo Bonzini.
12519
12520 2009-08-23  Bruno Haible  <bruno@clisp.org>
12521
12522         * lib/pipe2.c (pipe2): Move #ifs inside function.
12523
12524 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12525
12526         quotearg: document limitations of quote_these_too
12527         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
12528         those limitations are created.
12529         * lib/quotearg.h (set_char_quoting): Document that digits and
12530         letters that are special after backslash are not permitted.
12531         (quotearg_char): Cross-reference set_char_quoting documentation.
12532
12533 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
12534
12535         quotearg: implement custom_quoting_style
12536         * lib/quotearg.c: (struct quoting_options): Add left_quote and
12537         right_quote fields.
12538         (set_custom_quoting): New public function.
12539         (quotearg_buffer_restyled): Add left_quote and right_quote
12540         arguments, handle them very much like locale quoting, and update
12541         all uses.
12542         (quotearg_n_custom): New public function.
12543         (quotearg_n_custom_mem): New public function.
12544         (quotearg_custom): New public function.
12545         (quotearg_custom_mem): New public function.
12546         * lib/quotearg.h: Prototype and document new public functions.
12547         (enum quoting_style): For escape_quoting_style and
12548         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
12549         ignored even though they're otherwise like c_quoting_style.
12550         Add custom_quoting_style member and document with comparison to
12551         clocale_quoting_style.
12552         * tests/test-quotearg.c (custom_quotes): New array.
12553         (custom_results): New array.
12554         (main): Extend to test custom quoting.
12555
12556 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12557
12558         quotearg: fix right quote escaping when it's in quote_these_too
12559         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
12560         quote, be sure to prepend only one backslash.
12561         * tests/test-quotearg.c (use_quote_double_quotes): New function.
12562         (main): Test it.
12563
12564 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12565
12566         quotearg-tests: test escaping of embedded locale quotes
12567         * tests/test-quotearg.c (struct result_strings): Add member for
12568         new input.
12569         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
12570         (inputs): Add new input.
12571         (results_g): Add expected results.
12572         (flag_results): Likewise.
12573         (locale_results): Likewise.
12574         (compare_strings): Check those.
12575
12576 2009-08-23  Bruno Haible  <bruno@clisp.org>
12577
12578         Tests for module 'dup3'.
12579         * modules/dup3-tests: New file.
12580         * tests/test-dup3.c: New file.
12581
12582         New module 'dup3'.
12583         * lib/unistd.in.h (dup3): New declaration.
12584         * lib/dup3.c: New file.
12585         * m4/dup3.m4: New file.
12586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
12587         HAVE_DUP3.
12588         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
12589         * modules/dup3: New file.
12590         * doc/glibc-functions/dup3.texi: Mention the new module.
12591
12592 2009-08-23  Bruno Haible  <bruno@clisp.org>
12593
12594         Tweak the dup2 test.
12595         * tests/test-dup2.c (main): Create the test file empty. Verify that an
12596         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
12597         the test file is still empty. Fix argument order of lseek.
12598
12599 2009-08-23  Bruno Haible  <bruno@clisp.org>
12600
12601         Avoid test link errors when the modules getopt-gnu, gettext are used.
12602         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
12603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12604
12605 2009-08-23  Bruno Haible  <bruno@clisp.org>
12606
12607         Fix getdtablesize() on mingw.
12608         * lib/getdtablesize.c (getdtablesize): Implement differently.
12609         * lib/unistd.in.h (getdtablesize): Improve comment.
12610
12611 2009-08-23  Bruno Haible  <bruno@clisp.org>
12612
12613         New module 'mkostemp'.
12614         Based on Ulrich Drepper's 2007-08-10 change in glibc.
12615         * lib/stdlib.in.h (mksotemp): New declaration.
12616         * lib/mkostemp.c: New file, from glibc with modifications.
12617         * lib/tempname.h (GT_FILE): Remove outdated comment.
12618         (gen_tempname): Add flags argument.
12619         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12620         (__GT_FILE): Map to 1.
12621         (small_open, large_open): Remove macros.
12622         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12623         * lib/mkstemp.c (mkstemp): Update.
12624         * lib/mkdtemp.c (mkdtemp): Likewise.
12625         * m4/mkostemp.m4: New file.
12626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12627         HAVE_MKOSTEMP.
12628         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12629         HAVE_MKOSTEMP.
12630         * modules/mkostemp: New file, based on modules/mkstemp.
12631         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12632         * NEWS: Mention the change.
12633
12634 2009-08-23  Bruno Haible  <bruno@clisp.org>
12635
12636         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12637         Reported by Eric Blake.
12638
12639 2009-08-23  Bruno Haible  <bruno@clisp.org>
12640
12641         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12642         Reported by Eric Blake.
12643
12644 2009-08-23  Bruno Haible  <bruno@clisp.org>
12645
12646         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12647         * modules/pipe2 (Depends-on): Likewise.
12648
12649 2009-08-23  Eric Blake  <ebb9@byu.net>
12650
12651         fcntl-h: add O_TTY_INIT support
12652         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12653         * tests/test-fcntl-h.c (o): Test it.
12654         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12655
12656         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12657         * modules/fcntl: Move <fcntl.h> header replacement...
12658         * modules/fcntl-h: ...to new name, so as not to collide with
12659         like-named function.
12660         * tests/test-fcntl.c: Rename...
12661         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12662         * modules/fcntl-tests: Rename...
12663         * modules/fcntl-h-tests: ...to this.  Update test file name.
12664         * modules/chdir-long (Depends-on): Update clients.
12665         * modules/chdir-safer (Depends-on): Likewise.
12666         * modules/fcntl-safer (Depends-on): Likewise.
12667         * modules/fts (Depends-on): Likewise.
12668         * modules/mkancesdirs (Depends-on): Likewise.
12669         * modules/mkdir-p (Depends-on): Likewise.
12670         * modules/open (Depends-on): Likewise.
12671         * modules/savewd (Depends-on): Likewise.
12672         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12673         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12674
12675 2009-08-22  Bruno Haible  <bruno@clisp.org>
12676
12677         * modules/binary-io (License): Relicense under LGPL.
12678         * modules/pipe2 (License): Likewise.
12679
12680 2009-08-22  Bruno Haible  <bruno@clisp.org>
12681
12682         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12683         return value.
12684         * lib/pipe-filter-gi.c (filter_init): Likewise.
12685         Reported by Eric Blake.
12686
12687 2009-08-22  Bruno Haible  <bruno@clisp.org>
12688
12689         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12690         * modules/pipe (Depends-on): Add pipe2.
12691
12692 2009-08-22  Bruno Haible  <bruno@clisp.org>
12693
12694         Tests for module 'pipe2'.
12695         * modules/pipe2-tests: New file.
12696         * tests/test-pipe2.c: New file.
12697
12698         New module 'pipe2'.
12699         * lib/unistd.in.h (pipe2): New declaration.
12700         * lib/pipe2.c: New file.
12701         * m4/pipe2.m4: New file.
12702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12703         HAVE_PIPE2.
12704         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12705         * modules/pipe2: New file.
12706         * doc/glibc-functions/pipe2.texi: Mention the new module.
12707
12708 2009-08-22  Bruno Haible  <bruno@clisp.org>
12709
12710         Reference some new glibc functions.
12711         * doc/glibc-functions/accept4.texi: New file.
12712         * doc/glibc-functions/dup3.texi: New file.
12713         * doc/glibc-functions/mkostemp.texi: New file.
12714         * doc/glibc-functions/pipe2.texi: New file.
12715         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12716         (Glibc sys/socket.h): Refer to accept4.
12717         (Glibc unistd.h): Refer to dup3, pipe2.
12718         Reported by Eric Blake.
12719
12720 2009-08-22  Jim Meyering  <meyering@redhat.com>
12721             Bruno Haible  <bruno@clisp.org>
12722
12723         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12724         This makes it so packages using automake-1.11's silent-rules option
12725         can print e.g., a single "GEN    configmake.h" line, rather than
12726         the 30+ statements that perform the job.  If you want to see the
12727         actual commands, you can still run "make V=1".
12728         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12729         so that make output is abbreviated when those variables are defined
12730         appropriately.
12731         * modules/argz: Likewise.
12732         * modules/arpa_inet: Likewise.
12733         * modules/byteswap: Likewise.
12734         * modules/configmake: Likewise.
12735         * modules/dirent: Likewise.
12736         * modules/errno: Likewise.
12737         * modules/fcntl: Likewise.
12738         * modules/float: Likewise.
12739         * modules/fnmatch: Likewise.
12740         * modules/getopt-posix: Likewise.
12741         * modules/glob: Likewise.
12742         * modules/iconv_open: Likewise.
12743         * modules/inttypes: Likewise.
12744         * modules/localcharset: Likewise.
12745         * modules/locale: Likewise.
12746         * modules/math: Likewise.
12747         * modules/netdb: Likewise.
12748         * modules/netinet_in: Likewise.
12749         * modules/poll: Likewise.
12750         * modules/posix_spawnp-tests: Likewise.
12751         * modules/sched: Likewise.
12752         * modules/search: Likewise.
12753         * modules/selinux-h: Likewise.
12754         * modules/signal: Likewise.
12755         * modules/spawn: Likewise.
12756         * modules/stdarg: Likewise.
12757         * modules/stdbool: Likewise.
12758         * modules/stddef: Likewise.
12759         * modules/stdint: Likewise.
12760         * modules/stdio: Likewise.
12761         * modules/stdlib: Likewise.
12762         * modules/string: Likewise.
12763         * modules/strings: Likewise.
12764         * modules/sys_file: Likewise.
12765         * modules/sys_ioctl: Likewise.
12766         * modules/sys_select: Likewise.
12767         * modules/sys_socket: Likewise.
12768         * modules/sys_stat: Likewise.
12769         * modules/sys_time: Likewise.
12770         * modules/sys_times: Likewise.
12771         * modules/sys_utsname: Likewise.
12772         * modules/sys_wait: Likewise.
12773         * modules/sysexits: Likewise.
12774         * modules/time: Likewise.
12775         * modules/unistd: Likewise.
12776         * modules/wchar: Likewise.
12777         * modules/wctype: Likewise.
12778
12779 2009-08-22  Jim Meyering  <meyering@redhat.com>
12780
12781         announce-gen: detect write failure
12782         * build-aux/announce-gen: Add Coda at end.
12783         Remove equivalent-but-more-verbose block at top.
12784
12785 2009-08-19  Akim Demaille  <demaille@gostai.com>
12786
12787         bootstrap: --help to stdout.
12788         * bootstrap (usage): Don't send --help to stderr.
12789         Use a here doc instead of a long string.
12790
12791 2009-08-21  Eric Blake  <ebb9@byu.net>
12792
12793         test-popen-safer: split from test-popen
12794         * tests/test-popen.c (main): Move...
12795         * tests/test-popen.h: ...into new file.
12796         * tests/test-popen-safer2.c: New file.
12797         * modules/popen-tests (Files): Add test-popen.h.
12798         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12799         Suggested by Bruno Haible.
12800
12801         test-fcntl-safer: split from test-open
12802         * tests/test-open.c (main): Move...
12803         * tests/test-open.h: ...into new file.
12804         * tests/test-fcntl-safer.c: New file.
12805         * modules/open-tests (Files): Add test-open.h.
12806         * modules/fcntl-safer-tests: New file.
12807         Suggested by Bruno Haible.
12808
12809         test-fopen-safer: split from test-fopen
12810         * tests/test-fopen.c (main): Move...
12811         * tests/test-fopen.h: ...into new file.
12812         * tests/test-fopen-safer.c: New file.
12813         * modules/fopen-tests (Files): Add test-fopen.h.
12814         * modules/fopen-safer-tests: New file.
12815         Suggested by Bruno Haible.
12816
12817 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12818
12819         popen-safer: test O_CLOEXEC at run-time.
12820         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12821
12822 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12823
12824         fcntl: move more flags to the header
12825         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12826         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12827         * lib/fcntl.in.h: Do both things here.
12828
12829 2009-08-21  Jim Meyering  <meyering@redhat.com>
12830
12831         consistently remove $@-t before redirecting to it
12832         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12833         * modules/alloca-opt: Likewise.
12834         * modules/byteswap: Likewise.
12835         * modules/fnmatch: Likewise.
12836         * modules/getopt-posix: Likewise.
12837         * modules/glob: Likewise.
12838         * modules/poll: Likewise.
12839         * modules/posix_spawnp-tests: Likewise.
12840         * modules/sys_socket: Likewise.
12841         * modules/sysexits: Likewise.
12842
12843 2009-08-21  Eric Blake  <ebb9@byu.net>
12844
12845         popen: simplify access to original popen
12846         * lib/popen.c (rpl_popen): No need to worry about popen being a
12847         macro.
12848         Reported by Bruno Haible.
12849
12850 2009-08-20  Eric Blake  <ebb9@byu.net>
12851
12852         build: avoid some compiler warnings
12853         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12854         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12855         type.
12856         (new_exclude_segment, excluded_file_pattern_p)
12857         (excluded_file_name_p): Reduce scope.
12858         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12859         old-style declaration.
12860
12861 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12862
12863         * tests/test-exclude1.sh: Handle Windows EOL.
12864         * tests/test-exclude2.sh: Likewise.
12865         * tests/test-exclude3.sh: Likewise.
12866         * tests/test-exclude4.sh: Likewise.
12867         * tests/test-exclude5.sh: Likewise.
12868         * tests/test-exclude6.sh: Likewise.
12869         * tests/test-exclude7.sh: Likewise.
12870
12871 2009-08-19  Akim Demaille  <demaille@gostai.com>
12872
12873         bootstrap: find sha1sum when named gsha1sum.
12874         * bootstrap (find_tool): New.
12875         ($SHA1SUM): New.
12876         Use it.
12877
12878 2009-08-20  Jim Meyering  <meyering@redhat.com>
12879
12880         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12881         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12882         expression that converts "." in a file name to "\." in the resulting
12883         regexp.  Start with a dummy statement, so that prior shell variable
12884         definitions are expanded portably.  Reported by Simon Josefsson.
12885
12886 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12887
12888         Fix polling for writeability of a screen buffer.
12889         * lib/poll.c: Distinguish input and screen buffers for the
12890         Win32 implementation.
12891         * lib/select.c: Likewise.
12892
12893 2009-08-19  Eric Blake  <ebb9@byu.net>
12894
12895         popen-safer: prevent popen from clobbering std descriptors
12896         * modules/popen-safer: New file.
12897         * lib/popen-safer.c: Likewise.
12898         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12899         * lib/stdio--.h (popen): Provide override.
12900         * lib/stdio-safer.h (popen_safer): Provide declaration.
12901         * tests/test-popen.c (includes): Partially test this.
12902         * modules/popen-safer-tests: New file, for more tests.
12903         * tests/test-popen-safer.c: Likewise.
12904         * MODULES.html.sh (file stream based Input/Output): Mention it.
12905
12906         tests: test some of the *-safer modules
12907         * modules/fopen-safer (Depends-on): Add fopen.
12908         * modules/fcntl-safer (Depends-on): Add fcntl.
12909         * modules/stdlib-safer (Depends-on): Add stdlib.
12910         (configure.ac): Set indicator.
12911         * modules/unistd-safer (configure.ac): Likewise.
12912         * modules/tmpfile-safer (configure.ac): Likewise.
12913         (Depends-on): Add tmpfile.
12914         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12915         active.
12916         * tests/test-fopen.c (includes): Test safer versions when they are
12917         in use.
12918         * tests/test-open.c (includes): Likewise.
12919
12920         popen: fix cygwin 1.5 bug when stdin closed
12921         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12922         * modules/popen: New file.
12923         * modules/popen-tests: Likewise.
12924         * tests/test-popen.c: Likewise.
12925         * m4/popen.m4: Likewise.
12926         * lib/popen.c: Likewise.
12927         * lib/stdio.in.h (popen): New declaration.
12928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12929         * modules/stdio (Makefile.am): Likewise.
12930         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12931
12932 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12933
12934         maint.mk: give full control over update-copyright exclusions
12935         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12936         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12937         (update-copyright): Don't force inclusion of top-level
12938         ChangeLog.  Don't force exclusion of all COPYING files, but make
12939         them the default exclusion instead.
12940
12941 2009-08-16  Bruno Haible  <bruno@clisp.org>
12942
12943         Fix test failures on Solaris 10.
12944         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12945         tests when Solaris iconv() is used.
12946         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12947         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12948         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12949         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12950         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12951
12952 2009-08-16  Bruno Haible  <bruno@clisp.org>
12953
12954         Fix test failures on Solaris 10.
12955         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12956         'tr' program and pass it as first argument.
12957         * tests/test-pipe-filter-gi1.sh: Likewise.
12958         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12959         program as first argument.
12960         * tests/test-pipe-filter-gi1.c (main): Likewise.
12961
12962 2009-08-16  Eric Blake  <ebb9@byu.net>
12963
12964         fpurge: fix previous commits
12965         * modules/fpurge (Makefile.am): Make replacement conditional,
12966         partially reverting 2007-04-29 change; missed in previous
12967         attempt.
12968         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12969         is missing.
12970
12971 2009-08-16  Bruno Haible  <bruno@clisp.org>
12972
12973         Clarify fpurge's effect on the file position.
12974         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12975         * tests/test-fpurge.c (main): Make a second pass for checking the file
12976         position.
12977
12978 2009-08-16  Bruno Haible  <bruno@clisp.org>
12979
12980         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12981         declaration of fpurge is missing.
12982         * tests/test-fpurge.c (main): Check that the file has not more contents
12983         than expected. Close the file before removing it.
12984
12985 2009-08-15  Eric Blake  <ebb9@byu.net>
12986
12987         fpurge: don't wrap working cygwin implementation
12988         * lib/fpurge.c (fpurge): Fix comment typo.
12989         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12990         1.7 to avoid replacement.
12991         * tests/test-fpurge.c (main): Enhance test.
12992
12993 2009-08-15  Eric Blake  <ebb9@byu.net>
12994         and Jim Meyering  <meyering@redhat.com>
12995
12996         test-update-copyright: skip if perl is insufficient
12997         * tests/test-update-copyright.sh: Failure to run maintainer tool
12998         should not cause testsuite failure on cygwin 1.5.
12999
13000 2009-08-14  Eric Blake  <ebb9@byu.net>
13001
13002         doc: mention more functions added in cygwin 1.7.0
13003         * doc/posix-headers/limits.texi (limits.h): Update for recent
13004         cygwin additions.
13005         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
13006         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
13007         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
13008         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
13009         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
13010
13011 2009-08-14  Eric Blake  <ebb9@byu.net>
13012
13013         maint.mk: simplify update-copyright rule
13014         * top/maint.mk (update-copyright-local): Delete, and document how
13015         to do it in cfg.mk instead.
13016         (update-copyright-exclude-regexp): Delete, and document how to do
13017         it in .x-update-copyright instead.
13018         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
13019         exclude ChangeLog.
13020
13021 2009-08-14  Bruno Haible  <bruno@clisp.org>
13022
13023         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
13024
13025 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
13026
13027         maint.mk: support update-copyright-env
13028         * top/maint.mk (update-copyright-env): Define place-holder.
13029         (update-copyright): Expand $(update-copyright-env) before
13030         invoking update-copyright.
13031
13032 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
13033
13034         update-copyright: implement forced reformatting
13035         * build-aux/update-copyright: Implement and document
13036         UPDATE_COPYRIGHT_FORCE.
13037         * tests/test-update-copyright.sh: Test it.
13038
13039 2009-08-14  Eric Blake  <ebb9@byu.net>
13040         and Bruno Haible  <bruno@clisp.org>
13041
13042         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
13043         * tests/test-locale.c: Revert previous patch related to NULL.
13044         * tests/test-stdio.c: Likewise.
13045         * tests/test-stdlib.c: Likewise.
13046         * tests/test-string.c: Likewise.
13047         * tests/test-unistd.c: Likewise.
13048         * modules/time-tests (Depends-on): Add verify.
13049         * modules/wchar-tests (Depends-on): Likewise.
13050         * tests/test-time.c: Test for NULL compliance.
13051         * tests/test-wchar.c: Likewise.
13052         * modules/locale (Depends-on): Add stddef.
13053         * modules/stdio (Depends-on): Likewise.
13054         * modules/stdlib (Depends-on): Likewise.
13055         * modules/string (Depends-on): Likewise.
13056         * modules/time (Depends-on): Likewise.
13057         * modules/unistd (Depends-on): Likewise.
13058         * modules/wchar (Depends-on): Likewise.
13059         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
13060         * lib/stdlib.in.h (includes): Likewise.
13061         * lib/string.in.h (includes): Likewise.
13062         * lib/time.in.h (includes): Likewise.
13063         * lib/unistd.in.h (includes): Likewise.
13064         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
13065         replaced.
13066         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13067         * m4/stddef_h.m4: New file.
13068         * modules/stddef: Likewise.
13069         * lib/stddef.in.h: Likewise.
13070         * modules/stddef-tests: Likewise.
13071         * tests/test-stddef.c: Likewise.
13072         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
13073         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
13074         * doc/posix-headers/locale.texi (locale.h): Likewise.
13075         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
13076         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13077         * doc/posix-headers/string.texi (string.h): Likewise.
13078         * doc/posix-headers/time.texi (time.h): Likewise.
13079         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
13080         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
13081
13082 2009-08-14  Eric Blake  <ebb9@byu.net>
13083
13084         doc: improve git diff of texinfo files
13085         * .gitattributes: Add rule for *.texi files, with hint on how to
13086         use it.
13087         Copied from m4, and based on a report by Bruno Haible.
13088
13089 2009-08-14  Bruno Haible  <bruno@clisp.org>
13090
13091         Disable multithread support by default on Cygwin 1.5.x for real.
13092         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
13093
13094 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
13095
13096         update-copyright: much ado about intervals
13097         * build-aux/update-copyright: Implement and document
13098         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
13099         of copyright year intervals.
13100         Also, document UPDATE_COPYRIGHT_YEAR.
13101         * tests/test-update-copyright.sh: Test it.
13102
13103         update-copyright: convert 2-digit to 4-digit years
13104         * build-aux/update-copyright: Implement and document.
13105         * tests/test-update-copyright.sh: Update.
13106
13107 2009-08-14  Jim Meyering  <meyering@redhat.com>
13108
13109         test-exclude: avoid coreutils "make check" failure
13110         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
13111         just as in test-argmatch.c.
13112
13113 2009-08-13  Eric Blake  <ebb9@byu.net>
13114
13115         test-dup2: fix bad assumption
13116         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
13117         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
13118
13119         test-version-etc: fix CRLF portability issue
13120         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
13121         recognize \r.
13122         * tests/test-argp-version-etc-1.sh: Likewise.
13123
13124         getopt: update client modules
13125         * modules/argp (Depends-on): Use getopt-gnu.
13126         * modules/git-merge-changelog (Depends-on): Likewise.
13127         * modules/long-options (Depends-on): Likewise.
13128         * modules/xstrtol (Depends-on): Likewise.
13129
13130 2009-08-13  Simon Josefsson  <simon@josefsson.org>
13131
13132         * tests/test-version-etc.sh: Don't fail on different
13133         project/version.  Don't fail on CRLF differences.  Rewrite to use
13134         multiple -e instead of multiple sed forks, suggested by Eric Blake
13135         <ebb9@byu.net>.
13136         * tests/test-argp-version-etc-1.sh: Likewise.
13137
13138 2009-08-13  Simon Josefsson  <simon@josefsson.org>
13139
13140         * tests/test-version-etc.sh: Don't fail on different
13141         project/version.
13142
13143 2009-08-12  Bruno Haible  <bruno@clisp.org>
13144
13145         Tests for modules 'getopt-posix', 'getopt-gnu'.
13146         * modules/getopt-posix-tests: New file.
13147         * tests/test-getopt.c: New file.
13148         * tests/test-getopt.h: New file.
13149         * tests/test-getopt_long.h: New file.
13150
13151         New modules 'getopt-posix', 'getopt-gnu'.
13152         * modules/getopt-gnu: New file, renamed from modules/getopt.
13153         * modules/getopt-posix: New file.
13154         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
13155         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
13156         (gl_GETOPT): Remove macro.
13157         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
13158         Disable the test against BSD systems that declare optreset. Test
13159         against mingw bug. Test against lack of support of optional arguments
13160         on many platforms.
13161         * doc/glibc-headers/getopt.texi: Update module name and list of
13162         relevant platforms.
13163         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
13164         'getopt-gnu' and more portability problems.
13165         * NEWS: Mention the changes.
13166
13167 2009-08-12  Bruno Haible  <bruno@clisp.org>
13168
13169         Ensure that optarg etc. get declared by <unistd.h>.
13170         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
13171         AC_USE_SYSTEM_EXTENSIONS.
13172         * modules/getopt (Depends-on): Add 'extensions'.
13173
13174 2009-08-12  Bruno Haible  <bruno@clisp.org>
13175
13176         Avoid test link errors.
13177         * modules/pipe-filter-ii-tests (Makefile.am): Define
13178         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
13179         * modules/pipe-filter-gi-tests (Makefile.am): Define
13180         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
13181         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13182
13183 2009-08-12  Bruno Haible  <bruno@clisp.org>
13184
13185         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
13186         gl_GETOPT_SUBSTITUTE before.
13187         (gl_GETOPT): Use it.
13188         * m4/argp.m4 (gl_ARGP): Update.
13189         Reported by Sergey Poznyakoff.
13190
13191         * m4/getopt.m4: Reorder macros.
13192         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
13193         (gl_GETOPT_SUBSTITUTE): Remove macro.
13194
13195 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
13196
13197         Minor improvement in gitlog-to-changelog
13198
13199         * build-aux/gitlog-to-changelog: New option `--format' makes
13200         output format string configurable.
13201
13202 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
13203
13204         Optimize exclude: use hash tables for non-wildcard patterns.
13205
13206         * lib/exclude.c: Include hash.h and mbuiter.h
13207         (struct exclude_pattern, exclude_segment): New data types.
13208         (struct exclude): Rewrite.
13209         (fnmatch_pattern_has_wildcards): New function.
13210         (new_exclude_segment, free_exclude_segment): New functions.
13211         (excluded_file_pattern_p, excluded_file_name_p): New functions.
13212         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
13213         * lib/exclude.h (is_fnmatch_pattern): New prototype.
13214         * modules/exclude: Depend on hash and mbuiter.
13215
13216         * modules/exclude-tests: New file.
13217         * tests/test-exclude.c: New file.
13218         * tests/test-exclude1.sh: New file.
13219         * tests/test-exclude2.sh: New file.
13220         * tests/test-exclude3.sh: New file.
13221         * tests/test-exclude4.sh: New file.
13222         * tests/test-exclude5.sh: New file.
13223         * tests/test-exclude6.sh: New file.
13224         * tests/test-exclude7.sh: New file.
13225
13226 2009-08-12  Bruno Haible  <bruno@clisp.org>
13227
13228         Ensure that getopt() gets declared by <unistd.h>.
13229         * lib/unistd.in.h: Conditionally include getopt.h.
13230         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
13231         Set GNULIB_UNISTD_H_GETOPT.
13232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13233         GNULIB_UNISTD_H_GETOPT.
13234         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
13235
13236 2009-08-12  Bruno Haible  <bruno@clisp.org>
13237
13238         Clarify logic.
13239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
13240         gl_replace_getopt instead of GETOPT_H.
13241
13242 2009-08-12  Bruno Haible  <bruno@clisp.org>
13243
13244         * m4/getopt.m4: Add comments.
13245
13246 2009-08-12  Bruno Haible  <bruno@clisp.org>
13247
13248         Disable multithread support by default on Cygwin 1.5.x.
13249         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
13250         set gl_use_threads=no if not specified otherwise.
13251
13252 2009-08-11  Bruno Haible  <bruno@clisp.org>
13253
13254         Avoid compilation error on NetBSD 5.0.
13255         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
13256         * tests/test-stdio.c: Likewise.
13257         * tests/test-stdlib.c: Likewise.
13258         * tests/test-string.c: Likewise.
13259         * tests/test-unistd.c: Likewise.
13260         Reported by Greg Troxel <gdt@ir.bbn.com>
13261         at <https://savannah.gnu.org/support/?106973>.
13262
13263 2009-08-11  Bruno Haible  <bruno@clisp.org>
13264
13265         * modules/dup2-tests (Depends-on): Remove close.
13266
13267         Undo 2009-07-19 commit.
13268         * modules/acl-tests (Depends-on): Remove close.
13269         * modules/binary-io-tests (Depends-on): Likewise.
13270         * modules/closein-tests (Depends-on): Likewise.
13271         * modules/flock-tests (Depends-on): Likewise.
13272         * modules/fsync-tests (Depends-on): Likewise.
13273         * modules/lseek-tests (Depends-on): Likewise.
13274         * modules/pipe-tests (Depends-on): Likewise.
13275         * modules/posix_spawn-tests (Depends-on): Likewise.
13276         * modules/posix_spawnp-tests (Depends-on): Likewise.
13277         * modules/stat-time-tests (Depends-on): Likewise.
13278         * modules/yesno-tests (Depends-on): Likewise.
13279
13280 2009-08-10  Bruno Haible  <bruno@clisp.org>
13281
13282         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
13283
13284 2009-08-10  Bruno Haible  <bruno@clisp.org>
13285
13286         Fix a gcc warning.
13287         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
13288
13289 2009-08-10  Bruno Haible  <bruno@clisp.org>
13290
13291         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
13292         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
13293         not only the first time.
13294         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
13295         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
13296         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
13297         is 1, not only the the first time.
13298
13299 2009-08-10  Bruno Haible  <bruno@clisp.org>
13300
13301         Make it possible to use module 'gethostname' without module 'close'.
13302         * lib/unistd.in.h (close): Evoke a link error only if
13303         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
13304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13305         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13306         * modules/unistd (Makefile.am): Substitute
13307         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13308         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
13309         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
13310         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13311         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13312         * modules/sys_ioctl (Makefile.am): Substitute
13313         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13314         * modules/socket (configure.ac): On native Windows, set
13315         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
13316         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13317         Reported by Sam Steingold <sds@gnu.org>.
13318
13319 2009-08-10  Bruno Haible  <bruno@clisp.org>
13320
13321         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
13322         * modules/ioctl (configure.ac): Likewise.
13323
13324 2009-08-10  Bruno Haible  <bruno@clisp.org>
13325
13326         Avoid collision between gnulib wrapper and libintl wrapper.
13327         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
13328         already defined in intl/printf.c.
13329         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
13330         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
13331
13332 2009-08-09  Bruno Haible  <bruno@clisp.org>
13333
13334         Make <sys/select.h> really self-contained, also on Solaris 10.
13335         * lib/sys_select.in.h: Include <string.h>.
13336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
13337         Solaris 10 problem.
13338         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
13339         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
13340         Reported by Jim Meyering.
13341
13342 2009-08-09  Bruno Haible  <bruno@clisp.org>
13343
13344         Avoid warnings from 'aclocal' that are due to a use of macro name
13345         AM_XGETTEXT_OPTION that is not defined in automake.
13346         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
13347         automake.
13348         * modules/error (configure.ac): Likewise.
13349         * modules/propername (configure.ac): Likewise.
13350         * modules/vasprintf (configure.ac): Likewise.
13351         * modules/verror (configure.ac): Likewise.
13352         * modules/xprintf (configure.ac): Likewise.
13353         * modules/xvasprintf (configure.ac): Likewise.
13354
13355 2009-08-08  Bruno Haible  <bruno@clisp.org>
13356
13357         Avoid compilation error in C++ mode.
13358         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
13359         Reported by Sam Steingold <sds@gnu.org>.
13360
13361 2009-08-08  Bruno Haible  <bruno@clisp.org>
13362
13363         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
13364         for the various Unix platforms.
13365         * doc/posix-headers/limits.texi: Update platforms list regarding
13366         HOST_NAME_MAX.
13367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13368
13369 2009-08-07  Jim Meyering  <meyering@redhat.com>
13370
13371         selinux-at: fix typo in a comment
13372         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
13373         Spotted by Paolo Bonzini.
13374
13375         selinux-at: remove redundant m4 code, add documentation
13376         * modules/selinux-at (configure.ac): Remove redundant code.
13377         LIB_SELINUX is already set via the dependent module, selinux-h.
13378         (Include): Add quotes around selinux-at.h.
13379         * lib/selinux-at.h: Add documentation.
13380         Reported by Bruno Haible in
13381         http://marc.info/?l=gnulib-bug&m=124958988300749
13382
13383 2009-08-07  Bruno Haible  <bruno@clisp.org>
13384
13385         Avoid link error on MacOS X 10.3 and 10.4.
13386         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
13387         on non-ELF systems.
13388         * lib/argp-pv.c (argp_program_version): Likewise.
13389         Reported by Simon Josefsson.
13390
13391 2009-08-07  Simon Josefsson  <simon@josefsson.org>
13392
13393         * tests/test-version-etc.sh: Use $EXEEXT.
13394
13395 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
13396
13397         update-copyright: update documentation to point to maint.mk
13398         * build-aux/update-copyright: Here.
13399
13400 2009-08-06  Jim Meyering  <meyering@redhat.com>
13401
13402         maint.mk: support update-copyright-local
13403         * top/maint.mk (update-copyright-local): Define place-holder.
13404         (update-copyright): Depend on $(update-copyright-local).
13405
13406 2009-08-06  Jim Meyering  <meyering@redhat.com>
13407
13408         selinux-at: new module
13409         Initially written for coreutils, this module will soon be
13410         used by findutils, too.
13411         * MODULES.html.sh [Misc]: Add selinux-at.
13412         * lib/selinux-at.h: New file, from coreutils.
13413         * lib/selinux-at.c: Likewise.
13414         * modules/selinux-at: Likewise.
13415         (License): Change from LGPL to GPL, since it depends
13416         on the GPL'd openat module.
13417
13418         doc: update README
13419         * README: Remove references to cogito.
13420         Remove cvs-repo-updating instructions from 2007.
13421         Don't imply that CVS is better if you have limited disk space.
13422
13423 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13424
13425         update-copyright: support C-style comments
13426         * build-aux/update-copyright: Implement and document.
13427         * tests/test-update-copyright.sh: Test.
13428
13429 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13430
13431         update-copyright: support omitted "(C)"
13432         * build-aux/update-copyright: Implement and document.  Also,
13433         allow variable whitespace before "(C)".
13434         * tests/test-update-copyright.sh: Test.
13435
13436 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13437
13438         update-copyright: don't trip on non-FSF copyright statements
13439         * build-aux/update-copyright: Fix so that the first correctly
13440         formatted FSF copyright statement is recognized no matter what
13441         appears before it.  Update documentation.
13442         * tests/test-update-copyright.sh: Test that.
13443
13444 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13445
13446         update-copyright: clean up code a little
13447         * build-aux/update-copyright: Append "_re" to the name of any
13448         variable holding a regular expression.
13449         Replace "old" and "new" with "stmt" in variable names.
13450         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
13451         handled correctly.
13452         Format code more consistently.
13453
13454 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13455
13456         update-copyright-tests: improve portability
13457         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
13458         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
13459
13460 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13461
13462         update-copyright: support @copyright{} and &copy;
13463         * build-aux/update-copyright: Implement and document.
13464         * tests/test-update-copyright.sh: Test.
13465
13466 2009-08-04  Jim Meyering  <meyering@redhat.com>
13467
13468         update-copyright-tests: correctly test EOL=\r\n handling
13469         * tests/test-update-copyright.sh: Put \r at the end of some lines
13470         for the dos-eol tests.  Based on a patch by Joel E. Denny.
13471
13472         maint.mk: make update-copyright exclusion list more configurable
13473         * top/maint.mk (update-copyright): Default to excluding COPYING,
13474         but allow an override, in case someone does want to update that file.
13475
13476         maint.mk: don't update copyright date in COPYING
13477         * top/maint.mk (update-copyright): Exclude COPYING.
13478
13479         maint.mk: add a copyright-updating rule
13480         * top/maint.mk (update-copyright): New rule.
13481         Derived from coreutils/Makefile.am.
13482
13483         update-copyright: rename some variables
13484         * build-aux/update-copyright: Rename a few variables for clarity.
13485         Tweak syntax.  List Joel E. Denny as coauthor.
13486
13487 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13488
13489         update-copyright: fix bug for 2-digit last year and add tests
13490         * build-aux/update-copyright: Fix bug.
13491         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
13492         specified.
13493         * modules/update-copyright-tests: New
13494         * tests/test-update-copyright.sh: New.
13495
13496 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13497
13498         update-copyright: handle leading tabs in line prefix
13499         * build-aux/update-copyright: Count leading tabs as 8 spaces
13500         when computing margin.  This helps with the formatting of
13501         ChangeLogs, for example.
13502         Fix documentation a little.
13503
13504 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13505
13506         update-copyright: support EOL=\r\n
13507         * build-aux/update-copyright: Implement that.
13508
13509 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13510
13511         update-copyright: automatically format copyright statements
13512         * build-aux/update-copyright: Implement that.
13513         Also, be a little more predictable and safer by always failing
13514         when the full copyright format is not perfectly recognized as an
13515         unbroken whole.  Discussed at
13516         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
13517         Rewrite documentation.
13518
13519 2009-08-03  Bruno Haible  <bruno@clisp.org>
13520
13521         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
13522
13523 2009-08-02  Bruno Haible  <bruno@clisp.org>
13524
13525         Tests for module 'uname'.
13526         * modules/uname-tests: New file.
13527         * tests/test-uname.c: New file.
13528
13529         New module 'uname'.
13530         * lib/uname.c: New file.
13531         * m4/uname.m4: New file.
13532         * modules/uname: New file.
13533         * doc/posix-functions/uname.texi: Mention the new module.
13534
13535 2009-08-02  Bruno Haible  <bruno@clisp.org>
13536
13537         Tests for module 'sys_utsname'.
13538         * modules/sys_utsname-tests: New file.
13539         * tests/test-sys_utsname.c: New file.
13540
13541         New module 'sys_utsname'.
13542         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
13543         * m4/sys_utsname_h.m4: New file.
13544         * modules/sys_utsname: New file.
13545         * doc/posix-headers/sys_utsname.texi: Mention the new module.
13546
13547 2009-08-02  Bruno Haible  <bruno@clisp.org>
13548
13549         Implicitly initialize the sockets library.
13550         * lib/gethostname.c: Include sockets.h.
13551         (rpl_gethostname): Invoke gl_sockets_startup.
13552         * lib/socket.c: Include sockets.h.
13553         (rpl_socket): Invoke gl_sockets_startup.
13554         * modules/gethostname (Depends-on): Add sockets.
13555         * modules/socket (Depends-on): Likewise.
13556         * tests/test-poll.c: Don't include sockets.h.
13557         (main): Don't invoke gl_sockets_startup.
13558         * tests/test-select.c: Don't include sockets.h.
13559         (main): Don't invoke gl_sockets_startup.
13560
13561 2009-08-02  Bruno Haible  <bruno@clisp.org>
13562
13563         Allow multiple calls to gl_sockets_startup.
13564         * lib/sockets.c (initialized_sockets_version): New variable.
13565         (gl_sockets_startup): Do nothing if already called for this or a higher
13566         version.
13567         (gl_sockets_cleanup): Reset initialized_sockets_version.
13568
13569 2009-08-03  Simon Josefsson  <simon@josefsson.org>
13570
13571         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
13572         different project/version.
13573
13574 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13575             Bruno Haible  <bruno@clisp.org>
13576
13577         Tests for module 'pipe-filter-gi'.
13578         * modules/pipe-filter-gi-tests: New file.
13579         * tests/test-pipe-filter-gi1.sh: New file.
13580         * tests/test-pipe-filter-gi1.c: New file.
13581         * tests/test-pipe-filter-gi2.sh: New file.
13582         * tests/test-pipe-filter-gi2-main.c: New file.
13583         * tests/test-pipe-filter-gi2-child.c: New file.
13584
13585         New module 'pipe-filter-gi'.
13586         * lib/pipe-filter-gi.c: New file.
13587         * modules/pipe-filter-gi: New file.
13588
13589 2009-08-02  Bruno Haible  <bruno@clisp.org>
13590             Paolo Bonzini  <bonzini@gnu.org>
13591
13592         Tests for module 'pipe-filter-ii'.
13593         * modules/pipe-filter-ii-tests: New file.
13594         * tests/test-pipe-filter-ii1.sh: New file.
13595         * tests/test-pipe-filter-ii1.c: New file.
13596         * tests/test-pipe-filter-ii2.sh: New file.
13597         * tests/test-pipe-filter-ii2-main.c: New file.
13598         * tests/test-pipe-filter-ii2-child.c: New file.
13599
13600         New module 'pipe-filter-ii'.
13601         * lib/pipe-filter.h: New file.
13602         * lib/pipe-filter-ii.c: New file.
13603         * lib/pipe-filter-aux.h: New file.
13604         * modules/pipe-filter-ii: New file.
13605
13606 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13607
13608         * lib/gc-libgcrypt.c: Change copyright to FSF.
13609         * lib/gc-gnulib.c: Likewise.
13610
13611 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
13612
13613         * lib/gethostname.c: Include limits.h.
13614
13615 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13616             Bruno Haible  <bruno@clisp.org>
13617
13618         Ensure HOST_NAME_MAX as part of the gethostname module.
13619         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13620         define also HOST_NAME_MAX.
13621         * tests/test-gethostname.c: Include <limits.h>.
13622         (main): Check also HOST_NAME_MAX.
13623         * doc/posix-headers/limits.texi: Document the mingw problem.
13624
13625 2009-08-02  Bruno Haible  <bruno@clisp.org>
13626
13627         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13628         Add comments.
13629
13630 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13631
13632         * lib/gethostname.c: Add Windows wrapper.
13633         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13634         * modules/gethostname: Depend on sys_socket & errno, for also
13635         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13636         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13637
13638 2009-07-31  Jim Meyering  <meyering@redhat.com>
13639
13640         getloadavg: fix symbol name in comment
13641         * lib/getloadavg.c: Correct a typo I introduced when adding
13642         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13643         Matt Kraai spotted the problem.
13644
13645 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13646
13647         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13648         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13649         code also if ! defined N_NAME_POINTER.
13650         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13651         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13652         but the n_name member is a 12-byte array.
13653
13654 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13655
13656         update-copyright: generalize comment handling
13657         * build-aux/update-copyright: Handle copyright statements
13658         within more comment styles.
13659         Document usage.
13660         Report any file with an external copyright holder or parse failure.
13661
13662 2009-07-29  Jim Meyering  <meyering@redhat.com>
13663
13664         mktime: correct setting of REPLACE_MKTIME
13665         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13666
13667         update-copyright: new module
13668         * modules/update-copyright: New file.
13669         * build-aux/update-copyright: New file.
13670         * MODULES.html.sh (maint+release support): Add update-copyright.
13671
13672 2009-07-27  Bruno Haible  <bruno@clisp.org>
13673
13674         Fix compilation error when <ctime> is used and mktime is replaced.
13675         * lib/time.in.h (mktime): New declaration.
13676         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13677         REPLACE_MKTIME instead of defining mktime in config.h.
13678         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13679         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13680         Reported by Ross McFarland <rwmcfa1@neces.com>.
13681
13682 2009-07-27  Bruno Haible  <bruno@clisp.org>
13683
13684         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13685         Reported by Matt Kraai <mkraai@beckman.com>.
13686
13687 2009-07-25  Jim Meyering  <meyering@redhat.com>
13688
13689         maint.mk: avoid warnings about missing files
13690         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13691         diagnostic when .prev-version does not exist.
13692         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13693         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13694         nonexistent cfg.mk.
13695         Suggestions from Simon Josefsson.
13696
13697 2009-07-25  Bruno Haible  <bruno@clisp.org>
13698
13699         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13700         defined as macros. Needed on QNX 6.4.1.
13701         Reported by Matt Kraai <mkraai@beckman.com>.
13702
13703 2009-07-23  Jim Meyering  <meyering@redhat.com>
13704
13705         maint.mk: invoke "make dist" with a working value of XZ_OPT
13706         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13707
13708 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13709
13710         Make fseeko.c compile on QNX.
13711         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13712
13713 2009-07-22  Peter Simons  <simons@cryp.to>
13714
13715         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13716         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13717         * lib/md4.h: Likewise.
13718         * lib/md5.h: Likewise.
13719         * lib/sha1.h: Likewise.
13720         * lib/sha256.h: Likewise.
13721         * lib/sha512.h: Likewise.
13722
13723         tests-sha1: don't assign literal string to 'char *' variable
13724         * tests/test-sha1.c (main): Declare locals with "const" to match
13725         attributes of the right hand side.
13726
13727 2009-07-21  Eric Blake  <ebb9@byu.net>
13728
13729         dup2: fix more mingw problems
13730         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13731         fd to itself.
13732         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13733         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13734         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13735         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13736         care of mingw bugs.
13737
13738 2009-07-21  Jim Meyering  <meyering@redhat.com>
13739
13740         vc-list-files: avoid failure when /bin/sh is dash
13741         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13742         On some Debian based systems, /bin/sh is a symlink to dash, and running
13743         this command would omit the "/" following each 'tests' prefix:
13744           dash -x build-aux/vc-list-files -C . tests
13745         That is because bash and dash work differently:
13746           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13747           bash ok
13748           dash odd
13749
13750 2009-07-21  Eric Blake  <ebb9@byu.net>
13751
13752         dup2-tests: test previous patch
13753         * modules/dup2-tests: New file.
13754         * tests/test-dup2.c: Likewise.
13755         * tests/test-open.c (main): Avoid unspecified behavior.
13756         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13757         test.
13758
13759         dup2: work around mingw and cygwin 1.5 bug
13760         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13762         * modules/unistd (Makefile.am): Substitute it.
13763         * lib/unistd.in.h (dup2): Declare the replacement.
13764         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13765         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13766         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13767         * modules/execute (Depends-on): Add dup2.
13768         * modules/fseterr (Depends-on): Likewise.
13769         * modules/pipe (Depends-on): Likewise.
13770         * modules/posix_spawn-internal (Depends-on): Likewise.
13771
13772 2009-07-21  Bruno Haible  <bruno@clisp.org>
13773
13774         * modules/.gitattributes: New file.
13775
13776 2009-07-20  Bruno Haible  <bruno@clisp.org>
13777
13778         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13779         (main): Use it.
13780
13781 2009-07-20  Eric Blake  <ebb9@byu.net>
13782
13783         test-pipe: make a bit more robust.
13784         * tests/test-pipe.c (myerr): Allow error messages regardless of
13785         what we do to stderr.
13786         (test_pipe): Rearrange to avoid deadlock.
13787         (child_main): Try a larger read, to ensure we avoided deadlock.
13788         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13789         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13790         if misused.
13791
13792 2009-07-19  Jim Meyering  <meyering@redhat.com>
13793
13794         fts: avoid false-positive cycle-detection
13795         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13796         for each new command line argument.
13797
13798 2009-07-19  Bruno Haible  <bruno@clisp.org>
13799
13800         Fix build error on mingw with the modules sys_select and unistd.
13801         * modules/acl-tests (Depends-on): Add close.
13802         * modules/binary-io-tests (Depends-on): Likewise.
13803         * modules/closein-tests (Depends-on): Likewise.
13804         * modules/flock-tests (Depends-on): Likewise.
13805         * modules/fsync-tests (Depends-on): Likewise.
13806         * modules/lseek-tests (Depends-on): Likewise.
13807         * modules/pipe-tests (Depends-on): Likewise.
13808         * modules/posix_spawn-tests (Depends-on): Likewise.
13809         * modules/posix_spawnp-tests (Depends-on): Likewise.
13810         * modules/stat-time-tests (Depends-on): Likewise.
13811         * modules/yesno-tests (Depends-on): Likewise.
13812
13813 2009-07-19  Bruno Haible  <bruno@clisp.org>
13814
13815         Unify conditionals.
13816         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13817         macros, not at the compiler macros.
13818         * lib/pipe.c: Likewise.
13819         * lib/execute.c: Likewise.
13820         * lib/spawni.c: Likewise.
13821
13822 2009-07-19  Bruno Haible  <bruno@clisp.org>
13823
13824         Fix handling of closed stdin/stdout/stderr on mingw.
13825         * lib/w32spawn.h: Include unistd.h.
13826         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13827         file descriptor with O_NOINHERIT flag.
13828         (fd_safer_noinherit): New function, based on fd-safer.c.
13829         (dup_safer_noinherit): New function, based on dup-safer.c.
13830         (undup_safer_noinherit): New function.
13831         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13832         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13833         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13834         instead of fd_safer.
13835         * tests/test-pipe.c: Include <windows.h>.
13836         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13837
13838         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13839         from main.
13840         (test_pipe): Pass an extra argument for disambiguation.
13841         (main): Invoke parent_main or child_main.
13842
13843         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13844         consistently.
13845
13846 2009-07-18  Eric Blake  <ebb9@byu.net>
13847
13848         test-pipe: fix mingw build
13849         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13850
13851 2009-07-18  Bruno Haible  <bruno@clisp.org>
13852
13853         * modules/pipe-tests (Makefile.am): Fix typo.
13854
13855 2009-07-18  Eric Blake  <ebb9@byu.net>
13856
13857         error: fix mingw build
13858         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13859         Reported by Bruno Haible.
13860
13861         error: avoid undefined use of stdout
13862         * lib/error.c (error, error_at_line): Check that fd 1 is open
13863         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13864         is handling faults and the close_stdout module wants to report the
13865         detection of closed stdout as an error.
13866
13867 2009-07-17  Eric Blake  <ebb9@byu.net>
13868
13869         pipe: be robust in face of closed fds
13870         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13871         should cause child to misbehave.
13872         * modules/pipe-tests: New module.
13873         * tests/test-pipe.c: New file.
13874         * tests/test-pipe.sh: New file.
13875         Reported by Akim Demaille.
13876
13877 2009-07-14  Bruno Haible  <bruno@clisp.org>
13878
13879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13880         Reported by anonymous kc.
13881
13882 2009-07-07  Jim Meyering  <meyering@redhat.com>
13883
13884         maint.mk: don't look for translatable strings in *.m4 or *.mk
13885         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13886         when searching for translatable strings.
13887
13888 2009-07-05  Jim Meyering  <meyering@redhat.com>
13889
13890         remove superfluous parentheses in STREQ definition
13891         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13892         * lib/getugroups.c (STREQ): Likewise.
13893         * lib/fnmatch.c (STREQ): Likewise.
13894         Spotted by Bruno Haible.
13895
13896 2009-07-04  Jim Meyering  <meyering@redhat.com>
13897
13898         argv-iter: new module
13899         * MODULES.html.sh: Add argv-iter.
13900         * lib/argv-iter.c, lib/argv-iter.h: New files.
13901         * modules/argv-iter: New file.
13902         * modules/argv-iter-tests: New file.
13903         * tests/test-argv-iter.c: Test it.
13904
13905 2009-07-04  Bruno Haible  <bruno@clisp.org>
13906
13907         Fix assertion.
13908         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13909         contains more exact copies of a given entry than file2, leave the extra
13910         copies unpaired rather than aborting.
13911         Reported by Eric Blake.
13912
13913 2009-07-02  Bruno Haible  <bruno@clisp.org>
13914
13915         Speedup git-merge-changelog for git cherry-pick.
13916         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13917         (entries_mapping_get): New function, extracted from compute_mapping.
13918         (entries_mapping_reverse_get): New function.
13919         (compute_mapping): Add a 'full' argument. Return the result in a
13920         'struct entries_mapping'.
13921         (main): Update. Access the mappings through entries_mapping_get.
13922         Reported by Eric Blake.
13923
13924 2009-07-02  Bruno Haible  <bruno@clisp.org>
13925
13926         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13927         best_i.
13928
13929 2009-07-02  Bruno Haible  <bruno@clisp.org>
13930
13931         Speed up approximate search for matching ChangeLog entries.
13932         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13933         argument. Call fstrcmp_bounded instead of fstrcmp.
13934         (compute_mapping, try_split_merged_entry, main): Update callers.
13935
13936 2009-07-02  Bruno Haible  <bruno@clisp.org>
13937
13938         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13939
13940 2009-06-30  Bruno Haible  <bruno@clisp.org>
13941
13942         Reduce the number of uc_is_cased calls.
13943         * lib/unicase.h (casing_suffix_context_t): Add
13944         'first_char_except_ignorable' field.
13945         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13946         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13947         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13948         Update initializer.
13949         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13950         case-ignorable characters.
13951         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13952         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13953         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13954         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13955         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13956
13957 2009-06-30  Bruno Haible  <bruno@clisp.org>
13958
13959         Tests for module 'unicase/ignorable'.
13960         * modules/unicase/ignorable-tests: New file.
13961         * tests/unicase/test-ignorable.c: New file, generated by
13962         gen-uni-tables.
13963
13964         Tests for module 'unicase/cased'.
13965         * modules/unicase/cased-tests: New file.
13966         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13967         * tests/unicase/test-predicate-part1.h: New file, derived from
13968         tests/unictype/test-predicate-part1.h.
13969         * tests/unicase/test-predicate-part2.h: New file, same as
13970         tests/unictype/test-predicate-part2.h.
13971
13972         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13973         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13974         (output_casing_properties): New function.
13975         (main): Call it.
13976         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13977         * lib/unicase/cased.c: Include unictype/bitmap.h.
13978         (uc_is_cased): Define through a bitmap lookup.
13979         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13980         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13981         (uc_is_case_ignorable): Define through a bitmap lookup.
13982         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13983         lib/unictype/bitmap.h.
13984         (Depends-on): Add inline. Clean up.
13985         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13986         lib/unictype/bitmap.h.
13987         (Depends-on): Add inline. Clean up.
13988         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13989         recognition.
13990         * tests/unicase/test-u16-tolower.c (main): Likewise.
13991         * tests/unicase/test-u32-tolower.c (main): Likewise.
13992
13993 2009-06-30  Bruno Haible  <bruno@clisp.org>
13994
13995         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13996         * lib/unicase/u16-casemap.c: Likewise.
13997         * lib/unicase/u32-casemap.c: Likewise.
13998
13999 2009-06-29  Bruno Haible  <bruno@clisp.org>
14000
14001         Define u32_casefold as a wrapper around u32_ct_casefold.
14002         * lib/unicase/u32-casefold.c: Update.
14003         * modules/unicase/u32-casefold (Depends-on): Add
14004         unicase/u32-ct-casefold, unicase/empty-prefix-context,
14005         unicase/empty-suffix-context. Clean up.
14006
14007         Define u16_casefold as a wrapper around u16_ct_casefold.
14008         * lib/unicase/u16-casefold.c: Update.
14009         * modules/unicase/u16-casefold (Depends-on): Add
14010         unicase/u16-ct-casefold, unicase/empty-prefix-context,
14011         unicase/empty-suffix-context. Clean up.
14012
14013         Define u8_casefold as a wrapper around u8_ct_casefold.
14014         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
14015         * lib/unicase/u8-casefold.c: Update.
14016         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
14017         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
14018
14019         Define u32_totitle as a wrapper around u32_ct_totitle.
14020         * lib/unicase/u32-totitle.c: Update.
14021         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
14022         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
14023
14024         Define u16_totitle as a wrapper around u16_ct_totitle.
14025         * lib/unicase/u16-totitle.c: Update.
14026         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
14027         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
14028
14029         Define u8_totitle as a wrapper around u8_ct_totitle.
14030         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
14031         functions.
14032         (FUNC): Delegate to U_CT_TOTITLE.
14033         * lib/unicase/u8-totitle.c: Update.
14034         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
14035         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
14036
14037         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
14038         invocation.
14039         * modules/unicase/u32-tolower (Depends-on): Add
14040         unicase/empty-prefix-context, unicase/empty-suffix-context.
14041
14042         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
14043         invocation.
14044         * modules/unicase/u16-tolower (Depends-on): Add
14045         unicase/empty-prefix-context, unicase/empty-suffix-context.
14046
14047         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
14048         * modules/unicase/u8-tolower (Depends-on): Add
14049         unicase/empty-prefix-context, unicase/empty-suffix-context.
14050
14051         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
14052         invocation.
14053         * modules/unicase/u32-toupper (Depends-on): Add
14054         unicase/empty-prefix-context, unicase/empty-suffix-context.
14055
14056         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
14057         invocation.
14058         * modules/unicase/u16-toupper (Depends-on): Add
14059         unicase/empty-prefix-context, unicase/empty-suffix-context.
14060
14061         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
14062         * modules/unicase/u8-toupper (Depends-on): Add
14063         unicase/empty-prefix-context, unicase/empty-suffix-context.
14064
14065         New module 'unicase/u32-ct-casefold'.
14066         * lib/unicase/u32-ct-casefold.c: New file.
14067         * modules/unicase/u32-ct-casefold: New file.
14068
14069         New module 'unicase/u16-ct-casefold'.
14070         * lib/unicase/u16-ct-casefold.c: New file.
14071         * modules/unicase/u16-ct-casefold: New file.
14072
14073         New module 'unicase/u8-ct-casefold'.
14074         * lib/unicase/u8-ct-casefold.c: New file.
14075         * lib/unicase/u-ct-casefold.h: New file, derived from
14076         lib/unicase/u-casefold.h.
14077         * modules/unicase/u8-ct-casefold: New file.
14078
14079         New module 'unicase/u32-ct-totitle'.
14080         * lib/unicase/u32-ct-totitle.c: New file.
14081         * modules/unicase/u32-ct-totitle: New file.
14082
14083         New module 'unicase/u16-ct-totitle'.
14084         * lib/unicase/u16-ct-totitle.c: New file.
14085         * modules/unicase/u16-ct-totitle: New file.
14086
14087         New module 'unicase/u8-ct-totitle'.
14088         * lib/unicase/u8-ct-totitle.c: New file.
14089         * lib/unicase/u-ct-totitle.h: New file, derived from
14090         lib/unicase/u-totitle.h.
14091         * modules/unicase/u8-ct-totitle: New file.
14092
14093         New module 'unicase/u32-ct-tolower'.
14094         * lib/unicase/u32-ct-tolower.c: New file.
14095         * modules/unicase/u32-ct-tolower: New file.
14096
14097         New module 'unicase/u16-ct-tolower'.
14098         * lib/unicase/u16-ct-tolower.c: New file.
14099         * modules/unicase/u16-ct-tolower: New file.
14100
14101         New module 'unicase/u8-ct-tolower'.
14102         * lib/unicase/u8-ct-tolower.c: New file.
14103         * modules/unicase/u8-ct-tolower: New file.
14104
14105         New module 'unicase/u32-ct-toupper'.
14106         * lib/unicase/u32-ct-toupper.c: New file.
14107         * modules/unicase/u32-ct-toupper: New file.
14108
14109         New module 'unicase/u16-ct-toupper'.
14110         * lib/unicase/u16-ct-toupper.c: New file.
14111         * modules/unicase/u16-ct-toupper: New file.
14112
14113         New module 'unicase/u8-ct-toupper'.
14114         * lib/unicase/u8-ct-toupper.c: New file.
14115         * modules/unicase/u8-ct-toupper: New file.
14116
14117         Add context arguments to u*_casemap functions.
14118         * lib/unicase/unicasemap.h: Include unicase.h.
14119         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
14120         suffix_context arguments.
14121         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
14122         functions.
14123         (FUNC): Add prefix_context and suffix_context arguments. Use
14124         uc_is_cased and uc_is_case_ignorable.
14125         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
14126         * lib/unicase/u16-casemap.c: Likewise.
14127         * lib/unicase/u32-casemap.c: Likewise.
14128         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
14129         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
14130         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
14131         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
14132         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
14133         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
14134
14135         New module 'unicase/u32-suffix-context'.
14136         * lib/unicase/u32-suffix-context.c: New file.
14137         * modules/unicase/u32-suffix-context: New file.
14138
14139         New module 'unicase/u16-suffix-context'.
14140         * lib/unicase/u16-suffix-context.c: New file.
14141         * modules/unicase/u16-suffix-context: New file.
14142
14143         New module 'unicase/u8-suffix-context'.
14144         * lib/unicase/u8-suffix-context.c: New file.
14145         * lib/unicase/u-suffix-context.h: New file.
14146         * modules/unicase/u8-suffix-context: New file.
14147
14148         New module 'unicase/empty-suffix-context'.
14149         * lib/unicase/empty-suffix-context.c: New file.
14150         * modules/unicase/empty-suffix-context: New file.
14151
14152         New module 'unicase/u32-prefix-context'.
14153         * lib/unicase/u32-prefix-context.c: New file.
14154         * modules/unicase/u32-prefix-context: New file.
14155
14156         New module 'unicase/u16-prefix-context'.
14157         * lib/unicase/u16-prefix-context.c: New file.
14158         * modules/unicase/u16-prefix-context: New file.
14159
14160         New module 'unicase/u8-prefix-context'.
14161         * lib/unicase/u8-prefix-context.c: New file.
14162         * lib/unicase/u-prefix-context.h: New file.
14163         * lib/unicase/context.h: New file.
14164         * modules/unicase/u8-prefix-context: New file.
14165
14166         New module 'unicase/empty-prefix-context'.
14167         * lib/unicase/empty-prefix-context.c: New file.
14168         * modules/unicase/empty-prefix-context: New file.
14169
14170         New module 'unicase/ignorable'.
14171         * lib/unicase/ignorable.c: New file.
14172         * modules/unicase/ignorable: New file.
14173
14174         New module 'unicase/cased'.
14175         * lib/unicase/caseprop.h: New file.
14176         * lib/unicase/cased.c: New file.
14177         * modules/unicase/cased: New file.
14178
14179         New functions for case mapping of substrings.
14180         * lib/unicase.h (casing_prefix_context_t): New type.
14181         (unicase_empty_prefix_context): New variable.
14182         (u8_casing_prefix_context, u16_casing_prefix_context,
14183         u32_casing_prefix_context, u8_casing_prefixes_context,
14184         u16_casing_prefixes_context, u32_casing_prefixes_context): New
14185         declarations.
14186         (casing_suffix_context_t): New type.
14187         (unicase_empty_suffix_context): New variable.
14188         (u8_casing_suffix_context, u16_casing_suffix_context,
14189         u32_casing_suffix_context, u8_casing_suffixes_context,
14190         u16_casing_suffixes_context, u32_casing_suffixes_context,
14191         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
14192         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
14193         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
14194         declarations.
14195
14196 2009-06-28  Jim Meyering  <meyering@redhat.com>
14197
14198         boostrap: indent only with spaces
14199         * build-aux/bootstrap: Indent only with spaces, never TABs.
14200
14201         bootstrap: split long lines
14202         * build-aux/bootstrap: Keep line length < 80.
14203
14204         bootstrap: sync from coreutils
14205         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
14206         just as autoreconf does.  Verify a list of prerequisite
14207         package-name,version-number pairs if defined in bootstrap.conf.
14208         Refer to README-prereq, if prerequisites are not satisfied.
14209
14210 2009-06-27  Eric Blake  <ebb9@byu.net>
14211
14212         tests: add test for bogus NULL definition
14213         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
14214         * tests/test-stdlib.c: Likewise.
14215         * tests/test-string.c: Likewise.
14216         * tests/test-locale.c: Likewise.
14217         * tests/test-unistd.c: Likewise.
14218         * modules/stdio-tests (Depends-on): Add verify.
14219         * modules/stdlib-tests (Depends-on): Likewise.
14220         * modules/string-tests (Depends-on): Likewise.
14221         * modules/locale-tests (Depends-on): Likewise.
14222         * modules/unistd-tests (Depends-on): Likewise.
14223
14224 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14225
14226         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
14227         self-explaining comment.
14228         * m4/selinux-selinux-h: Update serial.
14229         (gl_LIBSELINUX): New macro, adding a warning for missing development
14230         packages to code extracted from...
14231         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
14232         Add warning for missing development packages here, too.
14233
14234 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
14235
14236         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
14237
14238 2009-06-25  Eric Blake  <ebb9@byu.net>
14239
14240         version-etc: fix regression
14241         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
14242         gcc.
14243         (version_etc): Use it, to catch bugs with trailing NULL.
14244         * lib/version-etc.c (version_etc_arn): Delete unused argument.
14245         (version_etc_va): Fix logic bug.
14246         * modules/version-etc-tests: Add test.
14247         * tests/test-version-etc.c: New file.
14248         * tests/test-version-etc.sh: Likewise.
14249
14250 2009-06-25  Sam Steingold  <sds@gnu.org>
14251
14252         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
14253         mbtowc declaration.
14254
14255 2009-06-25  Eric Blake  <ebb9@byu.net>
14256
14257         fpurge: migrate into <stdio.h>
14258         * lib/fpurge.h: Delete...
14259         * lib/stdio.in.h (fpurge): ...and declare here, instead.
14260         * lib/fpurge.c (fpurge): Change declaring header.
14261         * modules/fpurge (Files): Drop deleted file.
14262         (Depends-on): Add stdio.
14263         (configure.ac): Set witness.
14264         * modules/stdio (Makefile.am): Support fpurge macros.
14265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14266         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
14267         * lib/fflush.c: Update client.
14268         * tests/test-fpurge.c: Likewise.
14269         * NEWS: Mention the change.
14270
14271 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14272
14273         * lib/argp-version-etc.c (program_authors): Add const
14274         qualifier.
14275         * lib/version-etc.c: Fix typos in the comments.
14276         * modules/argp-version-etc: Depends on version-etc.
14277
14278 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14279
14280         argp-version-etc: new module.
14281
14282         * lib/argp-version-etc.c: New file.
14283         * lib/argp-version-etc.h: New file.
14284         * modules/argp-version-etc: New file.
14285         * modules/argp-version-etc-tests: New file.
14286         * tests/test-argp-version-etc.c: New test.
14287         * tests/test-argp-version-etc-1.sh: New test.
14288
14289 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14290
14291         Provide additional interfaces and documentation for version-etc
14292         module.
14293
14294         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
14295         interfaces.
14296         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
14297         prototypes.
14298
14299 2009-06-24  Bruno Haible  <bruno@clisp.org>
14300
14301         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
14302         HAVE_LIB${NAME} macro.
14303         Reported by Sam Steingold <sds@gnu.org>.
14304
14305 2009-06-23  Simon Josefsson  <simon@josefsson.org>
14306
14307         * modules/hash-tests (test_hash_LDADD): Link to libintl when
14308         needed.
14309
14310 2009-06-21  Bruno Haible  <bruno@clisp.org>
14311
14312         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
14313         work.
14314         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
14315         together with LIB${NAME}, LTLIB${NAME}.
14316         Reported by Sam Steingold <sds@gnu.org>.
14317
14318 2009-06-20  Jim Meyering  <meyering@redhat.com>
14319
14320         tests: make sc_require_test_exit_idiom more generic
14321         * top/maint.mk (Exit_witness_file): New overridable variable.
14322         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
14323         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
14324
14325 2009-06-19  Jim Meyering  <meyering@redhat.com>
14326
14327         hash: reverse order of src/dst parameters in an internal interface
14328         * lib/hash.c (transfer_entries): Reverse order of parameters to
14329         put DST before SRC.  Adjust callers.
14330
14331         tests: test-hash: avoid wholesale duplication
14332         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
14333         Instead, use a loop and add a single conditional.
14334
14335         tests: test-hash: allow seed selection via a command line argument
14336         * tests/test-hash.c (get_seed): New function.
14337         (main): Use it.
14338
14339 2009-06-19  Eric Blake  <ebb9@byu.net>
14340
14341         hash: avoid memory leak on allocation failure
14342         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
14343         failure.  Factor repeated algorithm...
14344         (transfer_entries): ...into new helper routine.
14345         (hash_delete): React to hash_rehash return value.
14346
14347         hash: reduce memory pressure in hash_rehash no-op case
14348         * lib/hash.c (next_prime): Avoid overflow.
14349         (hash_initialize): Factor bucket size computation...
14350         (compute_bucket_size): ...into new helper function.
14351         (hash_rehash): Use new function and open coding to reduce memory
14352         pressure, and avoid a memory leak in USE_OBSTACK code.
14353         Reported by Jim Meyering.
14354
14355 2009-06-18  Eric Blake  <ebb9@byu.net>
14356
14357         hash: make rotation more obvious
14358         * modules/hash (Depends-on): Add bitrotate and stdint.
14359         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
14360         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
14361         (SIZE_MAX): Rely on headers for definition.
14362         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
14363         (raw_hasher): Use rotr_sz.
14364         Suggested by Jim Meyering.
14365
14366         hash: fix memory leak in last patch
14367         * lib/hash.c (hash_rehash): Avoid memory leak.
14368
14369         hash: avoid no-op rehashing
14370         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
14371
14372         hash: provide default callback functions
14373         * lib/hash.c (raw_hasher, raw_comparator): New functions.
14374         (hash_initialize): Use them as defaults.
14375         * tests/test-hash.c (main): Test this.
14376
14377         hash: minor optimization
14378         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
14379         when possible.
14380         (hash_initialize): Document this promise.
14381         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
14382         * tests/test-hash.c (hash_compare_strings): Test this.
14383
14384 2009-06-18  Bruno Haible  <bruno@clisp.org>
14385
14386         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
14387         going to be replaced anyway.
14388
14389 2009-06-18  Bruno Haible  <bruno@clisp.org>
14390
14391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
14392         in one place.
14393         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
14394         be replaced anyway.
14395
14396 2009-06-18  Eric Blake  <ebb9@byu.net>
14397
14398         hash: check for resize before insertion
14399         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
14400         threshold before insertion, so that a pathological hash_rehash
14401         that fills every bucket can still trigger another rehash.
14402
14403 2009-06-18  Jim Meyering  <meyering@redhat.com>
14404
14405         hash-tests: add a loop around the small tests
14406         * tests/test-hash.c (main): Repeat small tests with selected
14407         small initial table sizes.
14408
14409 2009-06-17  Eric Blake  <ebb9@byu.net>
14410
14411         hash: minor cleanups
14412         * lib/hash.h (hash_entry): Make opaque, by moving...
14413         * lib/hash.c (hash_entry): ...here.
14414         (hash_insert): Clarify restrictions on what can be inserted.
14415         (hash_get_next): Clarify when it is safe to remove an element
14416         during traversal.
14417         (check_tuning): Skip verification when tuning is known safe.
14418         (hash_initialize): Clarify restrictions on tuning.
14419
14420 2009-06-17  Jim Meyering  <jim@meyering.net>
14421         and Eric Blake  <ebb9@byu.net>
14422
14423         hash-tests: new module
14424         * modules/hash-tests: New file.
14425         * tests/test-hash.c: New file.
14426
14427 2009-06-17  Eric Blake  <ebb9@byu.net>
14428
14429         strstr-simple: document new module
14430         * MODULES.html.sh: Document new module.
14431
14432         strstr, strcasestr: replace on platforms with broken memchr
14433         * modules/strstr: Split into...
14434         * modules/strstr-simple: ...new module that does not care about
14435         performance, but does care about glibc bug.
14436         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
14437         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
14438         if platform memchr is broken, per Debian bug 521737.
14439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
14440         memchr.
14441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
14442         * doc/posix-functions/strstr.texi (strstr): Document the fix.
14443         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14444         * modules/mountlist (Depends-on): Add strstr-simple.
14445         * modules/gen-uni-tables (Depends-on): Likewise.
14446         * modules/argz (Depends-on): Add strstr.
14447
14448 2009-06-17  Bruno Haible  <bruno@clisp.org>
14449
14450         * modules/posix_spawn-internal (Depends-on): Add errno.
14451
14452 2009-06-17  Bruno Haible  <bruno@clisp.org>
14453
14454         Define missing ESTALE on Interix 3.5.
14455         * lib/errno.in.h (ESTALE): Assign a value if missing.
14456         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
14457         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
14458         missing.
14459         * doc/posix-headers/errno.texi: Mention the Interix bug.
14460         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
14461
14462 2009-06-15  Eric Blake  <ebb9@byu.net>
14463
14464         memchr, memchr2: add valgrind exception
14465         * lib/memchr.valgrind: New file.
14466         * lib/memchr2.valgrind: New file.
14467         * modules/memchr (Files): Distribute valgrind file.
14468         * modules/memchr2 (Files): Likewise.
14469
14470         docs: memchr is no longer obsolete
14471         * MODULES.html.sh: Move memchr from obsolete to string.h section.
14472         * lib/string.in.h (memchr): Simplify logic.
14473
14474 2009-06-14  Jim Meyering  <meyering@redhat.com>
14475
14476         link-follow: fix the "checking..." message to not mention trailing slash
14477         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
14478         never considered trailing slashes.
14479
14480 2009-06-14  Bruno Haible  <bruno@clisp.org>
14481
14482         * m4/memchr.m4: Mention also the bug on IA-64.
14483         * doc/posix-functions/memchr.texi: Likewise.
14484
14485 2009-06-12  Eric Blake  <ebb9@byu.net>
14486
14487         memchr: detect broken x86_64 and alpha implementations
14488         * modules/memchr-tests (Depends-on): Move mmap detection...
14489         * modules/memchr (Depends-on): ...here.
14490         (configure.ac): Set indicator.
14491         * lib/string.in.h (memchr): Declare replacement.
14492         * modules/string (Makefile.am): Trigger replacement.
14493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
14494         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
14495         bugs.
14496         * doc/posix-functions/memchr.texi (memchr): Document the bug.
14497         * modules/getpagesize (License): Relax license.
14498
14499 2009-06-11  Bruno Haible  <bruno@clisp.org>
14500
14501         * lib/idpriv.h: Add more references.
14502
14503 2009-06-08  Bruno Haible  <bruno@clisp.org>
14504
14505         Tests for module 'idpriv-droptemp'.
14506         * modules/idpriv-droptemp-tests: New file.
14507         * tests/test-idpriv-droptemp.sh: New file.
14508         * tests/test-idpriv-droptemp.su.sh: New file.
14509         * tests/test-idpriv-droptemp.c: New file.
14510
14511         New module 'idpriv-droptemp'.
14512         * lib/idpriv-droptemp.c: New file.
14513         * modules/idpriv-droptemp: New file.
14514
14515 2009-06-08  Bruno Haible  <bruno@clisp.org>
14516
14517         Tests for module 'idpriv-drop'.
14518         * modules/idpriv-drop-tests: New file.
14519         * tests/test-idpriv-drop.sh: New file.
14520         * tests/test-idpriv-drop.su.sh: New file.
14521         * tests/test-idpriv-drop.c: New file.
14522
14523         New module 'idpriv-drop'.
14524         * lib/idpriv.h: New file.
14525         * lib-idpriv-drop.c: New file.
14526         * m4/idpriv.m4: New file.
14527         * modules/idpriv-drop: New file.
14528
14529 2009-06-08  Bruno Haible  <bruno@clisp.org>
14530
14531         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
14532         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14533         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14534         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14535         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14536         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14537         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14538
14539 2009-06-08  Eric Blake  <ebb9@byu.net>
14540
14541         test-strstr: use memory fence, when possible
14542         * tests/test-strstr.c (main): Use memory fence, in order to be
14543         more likely to trigger Debian bug 521737.
14544         * modules/strstr-tests (Files): Pull in additional files.
14545
14546         memchr: no longer obsolete, for wider field testing
14547         * modules/memchr (Status, Notice): Delete, this module is no
14548         longer obsolete.
14549         * modules/vasnprintf (Depends-on): Add memchr.
14550
14551 2009-06-07  Jim Meyering  <meyering@redhat.com>
14552
14553         hash: declare some functions with the warn_unused_result attribute
14554         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
14555
14556 2009-06-07  Bruno Haible  <bruno@clisp.org>
14557
14558         * tests/test-alignof.c: Don't test int64_t if it does not exist.
14559         Reported by Eric Blake.
14560
14561 2009-06-06  Eric Blake  <ebb9@byu.net>
14562
14563         test-alignof: fix typo with long double
14564         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
14565         compiler error.
14566
14567 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
14568
14569         Escape non-texinfo { and }s.
14570         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
14571         markup error.
14572
14573 2009-06-04  Jim Meyering  <meyering@redhat.com>
14574
14575         gitlog-to-changelog: don't infloop on an empty commit log
14576         * build-aux/gitlog-to-changelog: Warn about an empty log message.
14577         Reported by Boris Petersen <transacid@centerim.org>.
14578
14579 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
14580
14581         version-etc: extend for packagers
14582         Add three new configure options, intended for packagers:
14583           --with-packager="packager name"
14584           --with-packager-version="packager-specific version"
14585           --with-packager-bug-reports="packager bug reporting"
14586         An example with coreutils:
14587           $ ./configure \
14588             --with-packager=Gentoo \
14589             --with-packager-bug-report=http://bugs.gentoo.org/ \
14590             --with-packager-version="patchset 1.6"
14591           $ ./src/ls --version | head -n2
14592           ls (GNU coreutils) 7.1-dirty
14593           Packaged by Gentoo (patchset 1.6)
14594         Note that the bug reporting info via --help doesn't show up because
14595         coreutils uses its own custom emit_bug_reporting_address() implementation
14596         in src/system.h.  If it didn't, it'd look like:
14597           $ ./src/ls --help | tail -n4
14598           Report bugs to <bug-coreutils@gnu.org>.
14599           Report Gentoo bugs to <http://bugs.gentoo.org/>.
14600           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
14601           General help using GNU software: <http://www.gnu.org/gethelp/>.
14602         * lib/version-etc.c: Print new information, if provided.
14603         * m4/version-etc.m4: New file.
14604         * modules/version-etc (Files): Add m4/version-etc.m4.
14605         (configure.ac): Add gl_VERSION_ETC.
14606
14607 2009-05-31  Bruno Haible  <bruno@clisp.org>
14608
14609         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
14610         and 'int64_t'.
14611         * modules/alignof-tests (Dependencies): Add stdint.
14612         Reported by Eric Blake.
14613
14614 2009-05-31  Bruno Haible  <bruno@clisp.org>
14615
14616         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
14617         restriction due to compiler bugs.
14618         Reported by Eric Blake.
14619
14620 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14621             Bruno Haible  <bruno@clisp.org>
14622
14623         Fix test-alignof failure.
14624         * lib/alignof.h (alignof_slot): New macro.
14625         (alignof_type): New macro, with the same semantics as the previous
14626         'alignof'.
14627         (alignof): Alias to alignof_slot.
14628         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14629         check that the results are usable as constant expressions.
14630
14631 2009-05-31  Bruno Haible  <bruno@clisp.org>
14632
14633         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14634         * tests/test-memchr.c (main): Check that memchr does not read past the
14635         first occurrence of the byte.
14636         * tests/test-strstr.c (main): Update comment.
14637         Suggested by Eric Blake.
14638
14639 2009-05-30  Bruno Haible  <bruno@clisp.org>
14640
14641         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14642         detail how to use dumpbin.
14643         Reported by David Byron <dbyron@dbyron.com>.
14644
14645 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14646
14647         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14648
14649 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14650
14651         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14652
14653 2009-05-28  Bruno Haible  <bruno@clisp.org>
14654
14655         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14656         build-aux/ files.
14657
14658 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14659
14660         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14661
14662 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14663
14664         * gnulib-tool (sed_transform_main_lib_file)
14665         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14666         regexps.
14667
14668 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14669
14670         * tests/test-strstr.c: Add another self-test.
14671         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14672         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14673
14674 2009-05-23  Bruno Haible  <bruno@clisp.org>
14675
14676         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14677         change.
14678
14679 2009-05-21  Bruno Haible  <bruno@clisp.org>
14680
14681         Simplify use of mode_t varargs.
14682         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14683         uses 'mode_t' or 'int'.
14684         * lib/openat.c (openat): Likewise.
14685         * lib/open-safer.c (open_safer): Likewise.
14686         * m4/mode_t.m4: New file.
14687         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14688         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14689         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14690         * modules/open (Files): Add m4/mode_t.m4.
14691         * modules/openat (Files): Likewise.
14692         * modules/fcntl-safer (Files): Likewise.
14693         Suggested by Eric Blake.
14694
14695 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14696
14697         * doc/glibc-functions/fallocate.texi: New file.
14698         * doc/gnulib.texi: Include it.
14699
14700 2009-05-21  Eric Blake  <ebb9@byu.net>
14701             Bruno Haible  <bruno@clisp.org>
14702
14703         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14704         invocations.
14705         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14706
14707 2009-05-21  Eric Blake  <ebb9@byu.net>
14708             Bruno Haible  <bruno@clisp.org>
14709
14710         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14711         include_next. Fix of 2008-11-20 commit.
14712         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14713         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14714         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14715         NEXT_MATH_H.
14716         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14717         instead of NEXT_MATH_H.
14718
14719 2009-05-21  Bruno Haible  <bruno@clisp.org>
14720
14721         Avoid redefinition warnings for SIZE_MAX.
14722         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14723         Reported by Simon Josefsson.
14724
14725 2009-05-21  Bruno Haible  <bruno@clisp.org>
14726
14727         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14728         AC_CACHE_VAL.
14729
14730 2009-05-20  Bruno Haible  <bruno@clisp.org>
14731
14732         Make zeroptr.h work on mingw.
14733         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14734         mprotect.
14735         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14736         * modules/memchr2-tests (configure.ac): Likewise.
14737         * modules/memcmp-tests (configure.ac): Likewise.
14738         * modules/memmem-tests (configure.ac): Likewise.
14739         * modules/memrchr-tests (configure.ac): Likewise.
14740         Reported by Simon Josefsson.
14741
14742 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14743
14744         * tests/test-glob.c: Include string.h for strcmp prototype.
14745
14746 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14747
14748         * modules/getdelim (Depends-on): Add explicit stdint, although it
14749         was implicitly already pulled in via realloc-posix.
14750         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14751
14752 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14753
14754         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14755         G. Christensen" <tgc@jupiterrise.com>.
14756         * m4/sys_socket_h.m4: Check for sa_family_t.
14757         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14758         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14759         * tests/test-sys_socket.c: Check that sa_family_t works.
14760
14761 2009-05-18  Eric Blake  <ebb9@byu.net>
14762
14763         maint.mk: allow gnulib_dir in VPATH build
14764         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14765
14766 2009-05-15  Jim Meyering  <meyering@redhat.com>
14767
14768         maint.mk: Give gnulib_dir a default definition.
14769         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14770         Thus, most packages no longer need to specify this variable in cfg.mk
14771
14772 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14773
14774         rename.m4: fix typos that would make non-mingw cross-configure fail
14775         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14776
14777 2009-05-13  Eric Blake  <ebb9@byu.net>
14778
14779         mmap-anon: avoid out-of-order autoconf expansion
14780         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14781         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14782         * modules/memchr-tests (Depends-on): Add extensions.
14783         * modules/memchr2-tests (Depends-on): Add extensions.
14784         * modules/memcmp-tests (Depends-on): Add extensions.
14785         * modules/memmem-tests (Depends-on): Add extensions.
14786         * modules/memrchr-tests (Depends-on): Add extensions.
14787
14788 2009-05-13  Bruno Haible  <bruno@clisp.org>
14789
14790         Make some tests ISO C 99 compliant.
14791         * tests/zerosize-ptr.h: New file.
14792         * tests/test-memchr.c: Include zerosize-ptr.h.
14793         (main): Use a zero-size object pointer instead of NULL.
14794         * tests/test-memchr2.c: Include zerosize-ptr.h.
14795         (main): Use a zero-size object pointer instead of NULL.
14796         * tests/test-memcmp.c: Include zerosize-ptr.h.
14797         (main): Use a zero-size object pointer instead of NULL.
14798         * tests/test-memmem.c: Include zerosize-ptr.h.
14799         (main): Use a zero-size object pointer instead of NULL.
14800         * tests/test-memrchr.c: Include zerosize-ptr.h.
14801         (main): Use a zero-size object pointer instead of NULL.
14802         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14803         m4/mmap-anon.m4.
14804         (Depends-on): Add getpagesize.
14805         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14806         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14807         m4/mmap-anon.m4.
14808         (Depends-on): Add getpagesize.
14809         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14810         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14811         m4/mmap-anon.m4.
14812         (Depends-on): Add getpagesize.
14813         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14814         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14815         m4/mmap-anon.m4.
14816         (Depends-on): Add getpagesize.
14817         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14818         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14819         m4/mmap-anon.m4.
14820         (Depends-on): Add getpagesize.
14821         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14822
14823 2009-05-12  Bruno Haible  <bruno@clisp.org>
14824
14825         Tests for module 'alignof'.
14826         * modules/alignof-tests: New file.
14827         * tests/test-alignof.c: New file.
14828
14829 2009-05-12  Bruno Haible  <bruno@clisp.org>
14830
14831         Fix alignof macro.
14832         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14833         vendor compilers that are always correct.
14834
14835 2009-05-12  Bruno Haible  <bruno@clisp.org>
14836
14837         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14838         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14839         not whether its fully works.
14840
14841 2009-05-12  Bruno Haible  <bruno@clisp.org>
14842
14843         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14844
14845 2009-05-12  Jim Meyering  <meyering@redhat.com>
14846
14847         * top/maint.mk: Adjust backslash alignment.
14848
14849 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14850
14851         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14852
14853 2009-05-11  Eric Blake  <ebb9@byu.net>
14854
14855         argp: avoid undefined behavior
14856         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14857         macros.
14858
14859 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14860
14861         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14862         user.name to prevent git commit from complaining.
14863
14864 2009-05-10  Bruno Haible  <bruno@clisp.org>
14865
14866         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14867         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14868         it rewrites every file name only once.
14869         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14870
14871 2009-05-08  Bruno Haible  <bruno@clisp.org>
14872
14873         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14874         instead of 'max'.
14875
14876 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14877
14878         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14879         sockaddr_storage test.
14880
14881 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14882
14883         * modules/sys_socket (Makefile.am): Substitute
14884         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14885         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14886         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14887         * tests/test-sys_socket.c: Check sockaddr_storage.
14888
14889 2009-05-08  Bruno Haible  <bruno@clisp.org>
14890
14891         New module 'alignof'.
14892         * lib/alignof.h: New file.
14893         * modules/alignof: New file.
14894
14895 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14896             Bruno Haible  <bruno@clisp.org>
14897
14898         Fix test-file-has-acl on FreeBSD.
14899         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14900         mask is implicitly added.
14901         * tests/test-file-has-acl.c: Include <signal.h>.
14902         (main): Terminate the test after 5 seconds.
14903         * modules/acl-tests (configure.ac): Check for alarm function.
14904
14905 2009-05-04  Bruno Haible  <bruno@clisp.org>
14906
14907         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14908         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14909         * modules/errno (configure.ac): Drop AC_REQUIRE.
14910         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14911         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14912
14913 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14914
14915         * modules/glob-tests: New module.
14916         * tests/test-glob.c: Add.
14917
14918 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14919
14920         * modules/fnmatch-tests: New module.
14921         * tests/test-fnmatch.c: Add.
14922
14923 2009-05-04  Eric Blake  <ebb9@byu.net>
14924
14925         maint: make the new no-submodule-changes rule VPATH-safe
14926         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14927
14928 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14929             Bruno Haible  <bruno@clisp.org>
14930
14931         acl: Fix infinite loop on FreeBSD.
14932         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14933         of return value from acl_get_entry.
14934         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14935         Likewise.
14936
14937 2009-05-03  Bruno Haible  <bruno@clisp.org>
14938
14939         * lib/acl-internal.h (acl_entries): Clarify return value.
14940         * lib/acl_entries.c (acl_entries): Likewise.
14941
14942 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14943
14944         Bug fix in acl module.
14945         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14946
14947 2009-05-03  Bruno Haible  <bruno@clisp.org>
14948
14949         Create gperf-generated file in the source dir, not in the build dir.
14950         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14951         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14952         * modules/unicase/locale-language (unicase/locale-languages.h):
14953         Likewise.
14954         * modules/unicase/special-casing (unicase/special-casing-table.h):
14955         Likewise.
14956         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14957         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14958         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14959         Reported by Ralf Wildenhues.
14960
14961 2009-05-03  Bruno Haible  <bruno@clisp.org>
14962
14963         * modules/fnmatch (Description, configure.ac): Taken from
14964         fnmatch-posix.
14965         * modules/fnmatch-posix: Turn into a symbolic reference to the
14966         'fnmatch' module, and deprecate.
14967         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14968
14969 2009-05-03  Bruno Haible  <bruno@clisp.org>
14970
14971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14972         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14973         Reported by Ralf Wildenhues.
14974
14975 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14976
14977         * m4/fnmatch.m4: Fix fnmatch re-define.
14978
14979 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14980
14981         priv-set: new module and tests; adapt write-any-file
14982         * lib/priv-set.c: New file.
14983         * lib/priv-set.h: New file.
14984         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14985         * lib/write-any-file.c: Simplify by using priv-set module.
14986         * m4/priv-set.m4: New file.
14987         * modules/priv-set: New file.
14988         * modules/unlinkdir: Add dependency on priv-set module.
14989         * modules/write-any-file: Likewise.
14990
14991         Tests for module 'priv-set'.
14992         * modules/priv-set-tests: New file.
14993         * tests/test-priv-set.c: New file.
14994
14995 2009-05-03  Jim Meyering  <meyering@redhat.com>
14996             Bruno Haible  <bruno@clisp.org>
14997
14998         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14999         use the converted UTF-8 variant of the name instead.
15000
15001 2009-05-03  Jim Meyering  <meyering@redhat.com>
15002
15003         tests: tighten some getdate tests
15004         * tests/test-getdate.c (main): Tighten tests: require equality,
15005         not just greater than.  Set TZ envvar to UTC0.
15006
15007 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15008
15009         getdate: correctly interpret "next monday" when run on a Monday
15010         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
15011         that e.g., "next tues" (when run on a tuesday) results in a date
15012         that is one week in the future, and not today's date.
15013         I.e., add a week when the wday is the same as the current one.
15014         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
15015         and earlier by Martin Bernreuther and Jan Minář.
15016         * tests/test-getdate.c (main): Check that "next DAY" is always in
15017         the future and that "last DAY" is always in the past.
15018
15019 2009-05-02  Jim Meyering  <meyering@redhat.com>
15020
15021         build: ensure that a release build fails when a submodule is unclean
15022         * top/maint.mk (no-submodule-changes): New rule.
15023         (alpha beta major): Depend on it.
15024
15025 2009-05-02  Bruno Haible  <bruno@clisp.org>
15026
15027         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
15028         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
15029         shell variable gl_fnmatch_required to detect which variant is
15030         requested.
15031         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
15032         gl_FUNC_FNMATCH_POSIX.
15033         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
15034         exclude fnmatch-posix.
15035
15036 2009-05-02  Bruno Haible  <bruno@clisp.org>
15037
15038         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
15039         * modules/mbsrtowcs (License): Change to LGPLv2+.
15040         * modules/strnlen1 (License): Likewise.
15041         Reported by Simon Josefsson.
15042
15043 2009-05-02  Bruno Haible  <bruno@clisp.org>
15044
15045         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
15046         "cross".
15047         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
15048         gnulib-tool was called with option --source-base=lib.
15049
15050 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15051
15052         Use automake *-local hooks without commands, for extensibility.
15053         * modules/localcharset (Makefile.am): Rename install-exec-local
15054         rule to install-exec-localcharset, and make it a prerequisite of
15055         install-exec-local.  Likewise, rename the uninstall-local rule to
15056         uninstall-localcharset, and make it a prerequisite of the former.
15057
15058 2009-05-01  Bruno Haible  <bruno@clisp.org>
15059
15060         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
15061         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
15062         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
15063         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
15064         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
15065         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
15066         m4/locale-zh.m4, m4/codeset.m4.
15067
15068         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
15069         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
15070         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
15071         m4/locale-zh.m4.
15072
15073         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
15074         REPLACE_WCRTOMB if mbstate_t must be replaced.
15075         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
15076         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
15077
15078 2009-05-01  Bruno Haible  <bruno@clisp.org>
15079
15080         Avoid compiler warnings when redefining macros defined by <libintl.h>.
15081         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
15082         dngettext, dcngettext, textdomain, bindtextdomain,
15083         bind_textdomain_codeset): Undefine before redefining.
15084
15085 2009-04-30  Bruno Haible  <bruno@clisp.org>
15086
15087         Fix bug introduced on 2009-04-25.
15088         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
15089         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
15090         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
15091         is defined.
15092         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
15093         is defined.
15094         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
15095         is defined.
15096         Reported by Elbert_Pol <elbert.pol@gmail.com>.
15097
15098 2009-04-28  Bruno Haible  <bruno@clisp.org>
15099
15100         Comment tweaks.
15101         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
15102         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
15103         * lib/unicase.h (u*_casexfrm): Likewise.
15104         Reported by Paolo Bonzini.
15105
15106 2009-04-28  Bruno Haible  <bruno@clisp.org>
15107
15108         Fix a compilation error.
15109         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
15110         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15111         Reported by Jim Meyering.
15112
15113 2009-04-27  Bruno Haible  <bruno@clisp.org>
15114
15115         New module 'libunistring'.
15116         * modules/libunistring: New file.
15117         * m4/libunistring.m4: New file.
15118         * MODULES.html.sh (Unicode string functions): Add it.
15119
15120 2009-04-27  Eric Blake  <ebb9@byu.net>
15121
15122         maint.mk: allow package-specific header to provide <config.h>
15123         * top/maint.mk (sc_require_config_h): New variable.
15124         (sc_require_config_h, sc_require_config_h_first): Use it.
15125
15126 2009-04-27  Simon Josefsson  <simon@josefsson.org>
15127
15128         * top/maint.mk (sc_avoid_if_before_free): Except
15129         useless-if-before-free script.
15130
15131 2009-04-27  Eric Blake  <ebb9@byu.net>
15132
15133         maintainer-makefile: depend on all required helper scripts
15134         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
15135         useless-if-before-free.
15136         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
15137         version, rather than assuming gnulib checkout is available.
15138         Reported by Simen Josefsson.
15139
15140 2009-04-26  Bruno Haible  <bruno@clisp.org>
15141
15142         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
15143         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
15144         "../" or "..".
15145
15146 2009-04-26  Bruno Haible  <bruno@clisp.org>
15147
15148         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
15149         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
15150         AC_LIB_HAVE_LINKFLAGS.
15151
15152 2009-04-26  Bruno Haible  <bruno@clisp.org>
15153
15154         Simplify calling convention of u*_conv_from_encoding.
15155         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
15156         u32_conv_from_encoding): Expect a resultbuf argument and return the
15157         result directly as a pointer.
15158         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
15159         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
15160         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
15161         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
15162         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
15163         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
15164         Update.
15165         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
15166         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
15167         * lib/vasnprintf.c (VASNPRINTF): Update.
15168         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
15169         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
15170         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
15171         * NEWS: Mention the change.
15172
15173 2009-04-26  Bruno Haible  <bruno@clisp.org>
15174
15175         Simplify calling convention of u*_conv_to_encoding.
15176         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
15177         u32_conv_to_encoding): Expect a resultbuf argument and return the
15178         result directly as a pointer.
15179         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15180         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
15181         freeing scaled_offsets if mem_iconveha failed.
15182         * lib/unicase/u-casexfrm.h (FUNC): Update.
15183         * lib/uninorm/u-normxfrm.h (FUNC): Update.
15184         * lib/vasnprintf.c (VASNPRINTF): Update.
15185         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
15186         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
15187         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
15188         * NEWS: Mention the change.
15189
15190 2009-04-26  Bruno Haible  <bruno@clisp.org>
15191
15192         Avoid test failures on AIX and OSF/1.
15193         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
15194         malloc(0).
15195         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15196         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
15197         Likewise.
15198         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
15199         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
15200         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
15201         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
15202         * doc/posix-functions/malloc.texi: Document the portability problem
15203         related to malloc(0).
15204
15205 2009-04-26  Bruno Haible  <bruno@clisp.org>
15206
15207         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
15208         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
15209         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
15210
15211 2009-04-25  Bruno Haible  <bruno@clisp.org>
15212
15213         Avoid link error when creating a namespace clean library.
15214         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
15215         as macro with arguments if already defined as an alias.
15216         * lib/signbitf.c (gl_signbitf): Don't undefine.
15217         * lib/signbitd.c (gl_signbitd): Don't undefine.
15218         * lib/signbitl.c (gl_signbitl): Don't undefine.
15219
15220 2009-04-25  Jim Meyering  <meyering@redhat.com>
15221
15222         vc-list-files: fix another quoting bug
15223         * build-aux/vc-list-files: Avoid sed backslash expansion
15224         of pathological directory names.
15225
15226 2009-04-25  Eric Blake  <ebb9@byu.net>
15227
15228         vc-list-files: fix shell quoting error
15229         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
15230         timestamp.
15231
15232 2009-04-25  Jim Meyering  <meyering@redhat.com>
15233
15234         vc-list-files: restore lost functionality with subdir argument
15235         * build-aux/vc-list-files: When given a non-"." sub-directory
15236         argument, substitute the $dir/ prefix back onto each resulting name.
15237         Otherwise, coreutils' root_tests check would fail.
15238
15239 2009-04-24  Eric Blake  <ebb9@byu.net>
15240
15241         vc-list-files: ignore git symlinks
15242         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
15243         than ls-files, to ignore git symlinks.
15244
15245         maint.mk: import improvements from m4
15246         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
15247         (move_if_change): Delete unused macro.
15248         (news-date-check, vc-diff-check): Support VPATH builds.
15249         (announcement): Likewise.  Split --bootstrap-tools list...
15250         (boostrap-tools): ...into separate list, which can be overridden
15251         in cfg.mk.
15252         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
15253         requiring dependency on useless-if-before-free module.
15254         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
15255         Support VPATH builds.
15256
15257 2009-04-24  Jim Meyering  <meyering@redhat.com>
15258
15259         maint.mk: remove coreutils-specific rules and variables
15260         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
15261         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
15262         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
15263
15264         maint.mk: remove obsolete rule
15265         * top/maint.mk (rel-check): Remove rule.
15266         (WGET, WGETFLAGS): Remove now-unused variables.
15267
15268 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15269
15270         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
15271         consistency.
15272
15273         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
15274         '$(PATH_SEPARATOR)' instead of ':'.
15275
15276 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15277
15278         * lib/getopt1.c (main): Use 'const' for static array.
15279
15280 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15281
15282         * top/maint.mk: Sync with coreutils.
15283         * NEWS: Explain incompatibilities.
15284
15285 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15286             Bruno Haible  <bruno@clisp.org>
15287
15288         Fix cross-compilation results.
15289         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
15290         statement, as third argument of AC_TRY_RUN.
15291         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15292         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15293         Likewise.
15294         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15295         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15296         Likewise.
15297         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15298         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
15299         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
15300
15301 2009-04-20  Bruno Haible  <bruno@clisp.org>
15302
15303         Avoid test failure on mingw.
15304         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
15305
15306 2009-04-20  Bruno Haible  <bruno@clisp.org>
15307
15308         Avoid compilation error on mingw.
15309         * modules/localename-tests (Depends-on): Add locale.
15310
15311 2009-04-19  Bruno Haible  <bruno@clisp.org>
15312
15313         Support for building a shared library on Windows platforms.
15314         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
15315         (main): Test the presence of UNINORM_NFC here.
15316         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
15317         (main): Test the presence of UNINORM_NFD here.
15318         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
15319         (main): Test the presence of UNINORM_NFKC here.
15320         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
15321         (main): Test the presence of UNINORM_NFKD here.
15322
15323 2009-04-19  Bruno Haible  <bruno@clisp.org>
15324
15325         Avoid a compiler warning.
15326         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
15327         Change type of variable 'sequence'.
15328
15329 2009-04-19  Bruno Haible  <bruno@clisp.org>
15330
15331         * modules/configmake (Makefile.am): When the contents of configmake.h
15332         does not change, arrange to preserve its modification time.
15333
15334 2009-04-17  Simon Josefsson  <simon@josefsson.org>
15335
15336         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
15337         gettext domain.
15338
15339 2009-04-16  Jim Meyering  <meyering@redhat.com>
15340
15341         useless-if-before-free: improve conversion code
15342         * build-aux/useless-if-before-free: Adjust code-in-comment to match
15343         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
15344
15345 2009-04-14  Bruno Haible  <bruno@clisp.org>
15346
15347         * modules/fcntl (Depends-on): Add extensions.
15348         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
15349
15350 2009-04-12  Ben Pfaff  <blp@gnu.org>
15351
15352         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
15353         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
15354
15355 2009-03-20  Ben Pfaff  <blp@gnu.org>
15356
15357         Make rename replace existing destinations on Windows.
15358         * m4/rename.m4: Add test for Mingw.
15359         * lib/rename.c: Add rename replacement that uses MoveFileEx with
15360         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
15361         * doc/posix-functions/rename.texi: Document.
15362
15363 2009-04-10  Bruno Haible  <bruno@clisp.org>
15364
15365         New include file "iconveh.h".
15366         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
15367         * lib/striconveh.h: Include it.
15368         (enum iconv_ilseq_handler): Remove definition.
15369         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
15370         striconveh.h.
15371         * lib/striconveha.c: Include striconveh.h.
15372         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
15373         * modules/striconveh (Files): Add lib/iconveh.h.
15374         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
15375         lib/striconveh.h.
15376
15377 2009-04-10  Bruno Haible  <bruno@clisp.org>
15378
15379         * lib/uniconv.h: Update comment.
15380
15381 2009-04-10  Bruno Haible  <bruno@clisp.org>
15382
15383         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
15384         always.
15385         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
15386         * lib/unistr/u16-mbtouc-aux.c: Likewise.
15387         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
15388         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
15389         "unistring-notinline.h", so that the function gets defined always.
15390         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
15391         * lib/unistr/u8-uctomb.c: Likewise.
15392         * lib/unistr/u16-mbtouc.c: Likewise.
15393         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
15394         * lib/unistr/u16-uctomb.c: Likewise.
15395         * lib/unistr/u32-mbtouc.c: Likewise.
15396         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
15397         * lib/unistr/u32-uctomb.c: Likewise.
15398
15399 2009-04-10  Bruno Haible  <bruno@clisp.org>
15400
15401         Mark 'utime' obsolete.
15402         * modules/utime (Status, Notice): New sections.
15403         Suggested by Jim Meyering.
15404
15405         Fix cross-compile guess for utime test.
15406         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
15407         autoconf.
15408         * doc/posix-functions/utime.texi: Give more precisions.
15409         Reported by Jan <ipif@ymail.com>.
15410
15411 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
15412
15413         filevercmp: correct today's change
15414         * lib/filevercmp.c: Also handle coreutils' test inputs.
15415         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
15416
15417         Fix regression in 'filevercmp' module. Thanks Sven Joachim
15418         for reporting it.
15419         * lib/filevercmp.c: Special handle for "", "." and "..".
15420         * tests/test-filevercmp.c: Enlarge the set suite.
15421
15422 2009-04-07  Jim Meyering  <meyering@redhat.com>
15423
15424         useless-if-before-free: show how to remove braced useless free, too
15425         * build-aux/useless-if-before-free: still only in a comment, though.
15426
15427 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
15428
15429         maint.mk: import changes to syntax-check macros from coreutils
15430         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
15431         Use them in the relevant macros.
15432
15433 2009-04-06  Bruno Haible  <bruno@clisp.org>
15434
15435         Fix unportable use of bit-fields.
15436         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
15437         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
15438         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
15439
15440 2009-04-06  Bruno Haible  <bruno@clisp.org>
15441
15442         Avoid test failures on AIX and OSF/1.
15443         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
15444         that malloc(0) = NULL.
15445         * tests/unicase/test-u8-tolower.c (check): Likewise.
15446         * tests/unicase/test-u8-totitle.c (check): Likewise.
15447         * tests/unicase/test-u8-toupper.c (check): Likewise.
15448         * tests/unicase/test-u16-casefold.c (check): Likewise.
15449         * tests/unicase/test-u16-tolower.c (check): Likewise.
15450         * tests/unicase/test-u16-totitle.c (check): Likewise.
15451         * tests/unicase/test-u16-toupper.c (check): Likewise.
15452         * tests/unicase/test-u32-casefold.c (check): Likewise.
15453         * tests/unicase/test-u32-tolower.c (check): Likewise.
15454         * tests/unicase/test-u32-totitle.c (check): Likewise.
15455         * tests/unicase/test-u32-toupper.c (check): Likewise.
15456         * tests/uninorm/test-u8-nfc.c (check): Likewise.
15457         * tests/uninorm/test-u8-nfd.c (check): Likewise.
15458         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
15459         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
15460         * tests/uninorm/test-u16-nfc.c (check): Likewise.
15461         * tests/uninorm/test-u16-nfd.c (check): Likewise.
15462         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
15463         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
15464         * tests/uninorm/test-u32-nfc.c (check): Likewise.
15465         * tests/uninorm/test-u32-nfd.c (check): Likewise.
15466         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
15467         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
15468
15469 2009-04-05  Bruno Haible  <bruno@clisp.org>
15470
15471         Work around an autoconf limitation.
15472         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
15473         comment line if it would be longer than 3 KB.
15474
15475 2009-04-05  Bruno Haible  <bruno@clisp.org>
15476
15477         Avoid test failure with libiconv-1.13.
15478         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
15479         of the expected test results.
15480
15481 2009-04-05  Bruno Haible  <bruno@clisp.org>
15482
15483         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
15484         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
15485         that it should be installed.
15486
15487 2009-04-05  Bruno Haible  <bruno@clisp.org>
15488
15489         * gnulib-tool: New option --copy-file.
15490         (func_usage): Document it.
15491         (func_dest_tmpfilename): Moved out of func_import.
15492         (func_add_file, func_update_file): New functions, extracted from
15493         func_import.
15494         (func_import): Update.
15495
15496 2009-04-05  Karl Berry  <karl@gnu.org>
15497
15498         * README: prominently mention gnulib-tool.
15499         Rearrange sections so getting the code is near the top.
15500
15501 2009-04-05  Bruno Haible  <bruno@clisp.org>
15502
15503         * lib/unicase.h: Mention u*_cmp2.
15504         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15505         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
15506         * lib/unicase/ulc-casecmp.c: Likewise.
15507         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
15508         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
15509         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
15510         unistr/u8-cmp.
15511         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
15512         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
15513         unistr/u16-cmp.
15514         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
15515         unistr/u32-cmp.
15516
15517         * lib/uninorm.h: Mention u*_cmp2.
15518         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15519         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
15520         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
15521         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
15522         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
15523         unistr/u8-cmp.
15524         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
15525         unistr/u16-cmp.
15526         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
15527         unistr/u32-cmp.
15528
15529         New module 'unistr/u32-cmp2'.
15530         * lib/unistr/u32-cmp2.c: New file.
15531         * modules/unistr/u32-cmp2: New file.
15532
15533         New module 'unistr/u16-cmp2'.
15534         * lib/unistr/u16-cmp2.c: New file.
15535         * modules/unistr/u16-cmp2: New file.
15536
15537         New module 'unistr/u8-cmp2'.
15538         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
15539         * lib/unistr/u8-cmp2.c: New file.
15540         * lib/unistr/u-cmp2.h: New file.
15541         * modules/unistr/u8-cmp2: New file.
15542
15543 2009-04-05  Bruno Haible  <bruno@clisp.org>
15544
15545         * lib/unictype.h (uc_property_is_valid): New macro.
15546         * tests/unictype/test-pr_byname.c (main): Use it.
15547
15548         * lib/unistr.h: Doc fixes.
15549         * lib/uniconv.h: Doc fixes.
15550         * lib/unictype.h: Doc fixes.
15551
15552 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
15553
15554         Port coreutils 7.2 to Solaris 8.
15555
15556         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
15557         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
15558         for Solaris 8.  This is a bit of a hack, as it means it's the
15559         caller's responsibility to add -lnsl if needed, but most likely it
15560         won't be needed since only getaddrinfo uses this and getaddrinfo
15561         isn't needed on Solaris 8.
15562
15563         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
15564         problem to Solaris 8 encountered with coreutils 7.2, which
15565         resulted in a message "fnmatch.c:292: warning: passing argument 4
15566         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
15567         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
15568
15569 2009-04-03  Simon Josefsson  <simon@josefsson.org>
15570
15571         * m4/ld-version-script.m4: Add FIXME comment.
15572
15573 2009-04-02  Simon Josefsson  <simon@josefsson.org>
15574
15575         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
15576         SOVERSION variable.
15577
15578 2009-04-02  Bruno Haible  <bruno@clisp.org>
15579
15580         * Makefile (info, html, dvi, pdf): Combine the rules.
15581         Suggested by Jim Meyering.
15582
15583 2009-04-01  Bruno Haible  <bruno@clisp.org>
15584
15585         * Makefile (info, html, dvi, pdf): New targets.
15586         Reported by Reuben Thomas <rrt@sc3d.org>.
15587
15588 2009-04-01  Bruno Haible  <bruno@clisp.org>
15589
15590         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
15591         can be put into PATH.
15592         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
15593
15594 2009-04-01  Bruno Haible  <bruno@clisp.org>
15595
15596         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
15597
15598 2009-04-01  Bruno Haible  <bruno@clisp.org>
15599
15600         Rename module 'visibility'.
15601         * modules/lib-symbol-visibility: Renamed from modules/visibility.
15602         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
15603         * doc/gnulib.texi: Update.
15604         * MODULES.html.sh (Misc): Update.
15605         * NEWS: Mention the change.
15606
15607 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15608
15609         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
15610         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
15611         Eric Blake <ebb9@byu.net> for review.
15612         * MODULES.html.sh: Add lib-msvc-compat.
15613         * doc/gnulib.texi: Link to new section.
15614         * m4/ld-output-def.m4: New file.
15615         * doc/ld-output-def.texi: New file.
15616
15617 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15618
15619         Rename ld-version-script to lib-symbol-versions.  Suggested by
15620         Bruno Haible <bruno@clisp.org>.
15621         * modules/ld-version-script: Renamed to lib-symbol-versions.
15622         * doc/ld-version-script.texi: Fix module name.
15623         * MODULES.html.sh: Add lib-symbol-versions.
15624
15625 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15626
15627         * modules/u64-tests: New file.
15628         * tests/test-u64.c: New file.
15629
15630 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15631
15632         * MODULES.html.sh: Mention u64.
15633         * modules/u64: New module.
15634         * modules/crypto/sha512: Depend on u64 module instead of providing
15635         u64.h.
15636
15637 2009-03-27  Eric Blake  <ebb9@byu.net>
15638
15639         test-strerror: make debugging EAI_SYSTEM easier
15640         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15641         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15642         failure was EAI_SYSTEM.
15643
15644 2009-03-25  Bruno Haible  <bruno@clisp.org>
15645
15646         Fix a problem with --enable-relocatable on Solaris 7.
15647         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15648         since 2008-02-24.
15649
15650 2009-03-25  Eric Blake  <ebb9@byu.net>
15651
15652         test-sockets: avoid gcc warning
15653         * tests/test-sockets.c (main): Silence compiler warning.
15654
15655 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15656
15657         New modules nproc, pthread, contributed by Glen Lenker.
15658
15659         * MODULES.html.sh: Add pthread, nproc.
15660         * lib/nproc.c: New file.
15661         * lib/nproc.h: New file.
15662         * lib/pthread.in.h: New file.
15663         * m4/pthread.m4: New file.
15664         * modules/nproc: New file.
15665         * modules/pthread: New file.
15666
15667 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15668
15669         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15670         New variable.
15671
15672 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15673
15674         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15675         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15676         * tests/test-filevercmp.c: Add tests for backup suffixes.
15677
15678 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15679
15680         * modules/stdlib (Depends-on): Add stdint, needed when defining
15681         struct random_data on, for example, HP-UX 10.20.  Reported by
15682         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15683
15684 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15685
15686         * lib/readline.c (readline): Call fflush on stdout after printing
15687         prompt.
15688
15689 2009-03-20  Bruno Haible  <bruno@clisp.org>
15690
15691         Remove dependency from 'close' module to -lws2_32 on native Windows.
15692         * lib/close-hook.h: New file.
15693         * lib/close-hook.c: New file.
15694         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15695         w32sock.h.
15696         (_gl_close_fd_maybe_socket): Remove function.
15697         (rpl_close): Invoke execute_all_close_hooks instead of
15698         _gl_close_fd_maybe_socket.
15699         * lib/sockets.c: Include close-hook.h, w32sock.h.
15700         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15701         (close_sockets_hook): New variable.
15702         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15703         (gl_sockets_cleanup): Unregister it.
15704         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15705         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15706         * modules/close-hook: New file.
15707         * modules/close (Files): Remove lib/w32sock.h.
15708         (Depends-on): Add close-hook.
15709         (Link): Remove section.
15710         * modules/sockets (Files): Add lib/w32sock.h.
15711         (Depends-on): Add close-hook.
15712         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15713         invocation.
15714         * NEWS: Mention that LIB_CLOSE is gone.
15715
15716 2009-03-23  Eric Blake  <ebb9@byu.net>
15717
15718         signal-tests: test previous patch
15719         * tests/test-signal.c: New file.
15720         * modules/signal-tests: Likewise.
15721
15722         signal.h: always support 'volatile sig_atomic_t'
15723         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15724         (gl_SIGNAL_H_DEFAULTS): Add a default.
15725         * modules/signal (Makefile.am): Substitute if needed.
15726         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15727         users can blindly add volatile.
15728         * doc/posix-headers/signal.texi (signal.h): Document it.
15729         Reported by Matthew Woehlke.
15730
15731 2009-03-23  Jim Meyering  <meyering@redhat.com>
15732
15733         pathmax: PATH_MAX: use pathconf only when available
15734         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15735         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15736         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15737         This avoids a link failure in a PSP cross-compilation environment
15738         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15739
15740         * lib/vasnprintf.c (divide): Fix typo in comment.
15741
15742 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15743
15744         * gnulib-tool (func_filter_filelist): Fix comment.
15745
15746 2009-03-20  Bruno Haible  <bruno@clisp.org>
15747
15748         Make sockets.h self-contained.
15749         * lib/sockets.c: Include sockets.h first.
15750         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15751
15752 2009-03-19  Eric Blake  <ebb9@byu.net>
15753
15754         doc: mention more functions added in cygwin 1.7.0
15755         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15756         addition.
15757         * doc/posix-functions/log2f.texi: Likewise.
15758
15759 2009-03-19  Jim Meyering  <meyering@redhat.com>
15760
15761         fsusage: avoid syntax error due to statement-before-declaration
15762         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15763         after all declarations.  Reported by Matthew Woehlke in
15764         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15765
15766 2009-03-18  Eric Blake  <ebb9@byu.net>
15767
15768         build-aux/compile: sync from automake
15769         * build-aux/compile: New file, from automake.
15770         * config/srclist.txt: Mention build-aux/compile.
15771
15772 2009-03-17  Bruno Haible  <bruno@clisp.org>
15773
15774         * lib/git-merge-changelog.c: Fix typo in comment.
15775         Reported by Reuben Thomas <rrt@sc3d.org>.
15776
15777 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15778
15779         * m4/regex.m4: update and improve help for
15780         --without-included-regex.
15781
15782 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15783
15784         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15785         failure on missing include files.
15786
15787 2009-03-17  Eric Blake  <ebb9@byu.net>
15788
15789         doc: mention more functions added in cygwin 1.7.0
15790         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15791         addition.
15792         * doc/posix-functions/fwscanf.texi: Likewise.
15793         * doc/posix-functions/swprintf.texi: Likewise.
15794         * doc/posix-functions/swscanf.texi: Likewise.
15795         * doc/posix-functions/vfwprintf.texi: Likewise.
15796         * doc/posix-functions/vfwscanf.texi: Likewise.
15797         * doc/posix-functions/vswprintf.texi: Likewise.
15798         * doc/posix-functions/vswscanf.texi: Likewise.
15799         * doc/posix-functions/vwprintf.texi: Likewise.
15800         * doc/posix-functions/vwscanf.texi: Likewise.
15801         * doc/posix-functions/wcscasecmp.texi: Likewise.
15802         * doc/posix-functions/wcsdup.texi: Likewise.
15803         * doc/posix-functions/wcsftime.texi: Likewise.
15804         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15805         * doc/posix-functions/wprintf.texi: Likewise.
15806         * doc/posix-functions/wscanf.texi: Likewise.
15807         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15808
15809 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15810
15811         maint.mk: really add $(AM_MAKEFLAGS)
15812         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15813         was inadvertently omitted in the last commit.
15814         Spotted by Bruno Haible.
15815
15816         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15817         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15818         $(AM_MAKEFLAGS)' rather than plain `make'.
15819
15820         gnulib-tool: execute $MAKE not make
15821         * gnulib-tool: Default $MAKE to 'make'.
15822         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15823         than make.  Initialize $MAKE in the do-autobuild script.
15824
15825         gnulib-tool: use $MAKE not make in generated files
15826         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15827         make, in generated files.  Initialize $MAKE in the do-autobuild
15828         script.
15829
15830         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15831
15832         GNUmakefile: disable parallelism only for multiple, recursive targets
15833         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15834         additions in the Makefile.
15835         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15836         by Automake.
15837         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15838         are listed on the command line and at least one of them is
15839         listed in $(ALL_RECURSIVE_TARGETS).
15840
15841 2009-03-14  Bruno Haible  <bruno@clisp.org>
15842
15843         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15844         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15845         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15846         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15847         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15848         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15849         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15850         unistr/u8-uctomb.
15851         * modules/unistr/u8-strchr (Depends-on): Likewise.
15852         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15853         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15854         unistr/u16-uctomb.
15855         * modules/unistr/u16-strchr (Depends-on): Likewise.
15856         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15857
15858 2009-03-12  Bruno Haible  <bruno@clisp.org>
15859
15860         Work around select() bug on Interix 3.5.
15861         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15862         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15863         * m4/select.m4: New file.
15864         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15865         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15866         * modules/select (Files): Add m4/select.m4.
15867         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15868         * modules/nanosleep (Depends-on): Add select.
15869         * modules/poll (Depends-on): Likewise.
15870         * doc/posix-functions/select.texi: Mention the Interix bug.
15871         Reported by Markus Duft <mduft@gentoo.org>.
15872
15873         * lib/select.c: Renamed from lib/winsock-select.c.
15874         * modules/select (Files): Add lib/select.c, remove
15875         lib/winsock-select.c.
15876         (configure.ac): Update.
15877
15878 2009-03-12  Jim Meyering  <meyering@redhat.com>
15879
15880         avoid gcc warnings about unused macro definitions
15881         * lib/readtokens.c (STREQ): Remove unused definition.
15882         * lib/xmalloc.c (SIZE_MAX): Likewise.
15883         * lib/openat-die.c (N_): Likewise.
15884         * lib/mountlist.c (SIZE_MAX): Remove definition.
15885         Instead, include <stdint.h>.
15886         * lib/readutmp.c: Likewise.
15887         * modules/readutmp (Depends-on): Add stdint.
15888         * modules/mountlist (Depends-on): Add stdint.
15889         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15890
15891 2009-03-10  Bruno Haible  <bruno@clisp.org>
15892
15893         Tests for module 'mbmemcasecoll'.
15894         * modules/mbmemcasecoll-tests: New file.
15895         * tests/test-mbmemcasecoll1.sh: New file.
15896         * tests/test-mbmemcasecoll2.sh: New file.
15897         * tests/test-mbmemcasecoll3.sh: New file.
15898         * tests/test-mbmemcasecoll.c: New file.
15899
15900         New module 'mbmemcasecoll'.
15901         * lib/mbmemcasecoll.h: New file.
15902         * lib/mbmemcasecoll.c: New file.
15903         * modules/mbmemcasecoll: New file.
15904
15905         * tests/test-mbmemcasecmp.h: New file, extracted from
15906         tests/test-mbmemcasecmp.c.
15907         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15908         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15909         (main): Update.
15910         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15911
15912 2009-03-09  Bruno Haible  <bruno@clisp.org>
15913
15914         Tests for module 'mbmemcasecmp'.
15915         * modules/mbmemcasecmp-tests: New file.
15916         * tests/test-mbmemcasecmp1.sh: New file.
15917         * tests/test-mbmemcasecmp2.sh: New file.
15918         * tests/test-mbmemcasecmp3.sh: New file.
15919         * tests/test-mbmemcasecmp.c: New file.
15920
15921         New module 'mbmemcasecmp'.
15922         * lib/mbmemcasecmp.h: New file.
15923         * lib/mbmemcasecmp.c: New file.
15924         * modules/mbmemcasecmp: New file.
15925
15926 2009-03-09  Bruno Haible  <bruno@clisp.org>
15927
15928         Tests for module 'unicase/ulc-casecoll'.
15929         * modules/unicase/ulc-casecoll-tests: New file.
15930         * tests/unicase/test-ulc-casecoll1.sh: New file.
15931         * tests/unicase/test-ulc-casecoll2.sh: New file.
15932         * tests/unicase/test-ulc-casecoll.c: New file.
15933
15934         New module 'unicase/ulc-casecoll'.
15935         * lib/unicase.h (ulc_casecoll): New declaration.
15936         * lib/unicase/ulc-casecoll.c: New file.
15937         * modules/unicase/ulc-casecoll: New file.
15938
15939         New module 'unicase/ulc-casexfrm'.
15940         * lib/unicase.h (ulc_casexfrm): New declaration.
15941         * lib/unicase/ulc-casexfrm.c: New file.
15942         * modules/unicase/ulc-casexfrm: New file.
15943
15944 2009-03-09  Bruno Haible  <bruno@clisp.org>
15945
15946         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15947         invocations.
15948
15949         * m4/mbscasecmp.m4: Remove file.
15950         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15951         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15952
15953         * m4/mbscasestr.m4: Remove file.
15954         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15955         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15956
15957         * m4/mbschr.m4: Remove file.
15958         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15959         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15960
15961         * m4/mbscspn.m4: Remove file.
15962         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15963         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15964
15965         * m4/mbslen.m4: Remove file.
15966         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15967         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15968
15969         * m4/mbsncasecmp.m4: Remove file.
15970         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15971         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15972
15973         * m4/mbsnlen.m4: Remove file.
15974         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15975         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15976
15977         * m4/mbspbrk.m4: Remove file.
15978         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15979         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15980
15981         * m4/mbspcasecmp.m4: Remove file.
15982         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15983         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15984
15985         * m4/mbsrchr.m4: Remove file.
15986         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15987         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15988
15989         * m4/mbssep.m4: Remove file.
15990         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15991         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15992
15993         * m4/mbsspn.m4: Remove file.
15994         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15995         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15996
15997         * m4/mbsstr.m4: Remove file.
15998         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15999         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
16000
16001         * m4/mbstok_r.m4: Remove file.
16002         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
16003         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
16004
16005         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
16006
16007         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
16008         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
16009
16010         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
16011
16012 2009-03-08  Bruno Haible  <bruno@clisp.org>
16013
16014         Tests for module 'unicase/ulc-casecmp'.
16015         * modules/unicase/ulc-casecmp-tests: New file.
16016         * tests/unicase/test-ulc-casecmp1.sh: New file.
16017         * tests/unicase/test-ulc-casecmp2.sh: New file.
16018         * tests/unicase/test-ulc-casecmp.c: New file.
16019
16020         New module 'unicase/ulc-casecmp'.
16021         * lib/unicase.h (ulc_casecmp): New declaration.
16022         * lib/unicase/ulc-casecmp.c: New file.
16023         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
16024         'const SRC_UNIT *'.
16025         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
16026         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
16027         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
16028         * modules/unicase/ulc-casecmp: New file.
16029
16030         Tests for module 'unicase/u32-is-cased'.
16031         * modules/unicase/u32-is-cased-tests: New file.
16032         * tests/unicase/test-u32-is-cased.c: New file.
16033
16034         Tests for module 'unicase/u16-is-cased'.
16035         * modules/unicase/u16-is-cased-tests: New file.
16036         * tests/unicase/test-u16-is-cased.c: New file.
16037
16038         Tests for module 'unicase/u8-is-cased'.
16039         * modules/unicase/u8-is-cased-tests: New file.
16040         * tests/unicase/test-u8-is-cased.c: New file.
16041         * tests/unicase/test-is-cased.h: New file.
16042
16043         New module 'unicase/u32-is-cased'.
16044         * lib/unicase/u32-is-cased.c: New file.
16045         * modules/unicase/u32-is-cased: New file.
16046
16047         New module 'unicase/u16-is-cased'.
16048         * lib/unicase/u16-is-cased.c: New file.
16049         * modules/unicase/u16-is-cased: New file.
16050
16051         New module 'unicase/u8-is-cased'.
16052         * lib/unicase/u8-is-cased.c: New file.
16053         * lib/unicase/u-is-cased.h: New file.
16054         * modules/unicase/u8-is-cased: New file.
16055
16056         Tests for module 'unicase/u32-is-casefolded'.
16057         * modules/unicase/u32-is-casefolded-tests: New file.
16058         * tests/unicase/test-u32-is-casefolded.c: New file.
16059
16060         Tests for module 'unicase/u16-is-casefolded'.
16061         * modules/unicase/u16-is-casefolded-tests: New file.
16062         * tests/unicase/test-u16-is-casefolded.c: New file.
16063
16064         Tests for module 'unicase/u8-is-casefolded'.
16065         * modules/unicase/u8-is-casefolded-tests: New file.
16066         * tests/unicase/test-u8-is-casefolded.c: New file.
16067         * tests/unicase/test-is-casefolded.h: New file.
16068
16069         New module 'unicase/u32-is-casefolded'.
16070         * lib/unicase/u32-is-casefolded.c: New file.
16071         * modules/unicase/u32-is-casefolded: New file.
16072
16073         New module 'unicase/u16-is-casefolded'.
16074         * lib/unicase/u16-is-casefolded.c: New file.
16075         * modules/unicase/u16-is-casefolded: New file.
16076
16077         New module 'unicase/u8-is-casefolded'.
16078         * lib/unicase/u8-is-casefolded.c: New file.
16079         * modules/unicase/u8-is-casefolded: New file.
16080
16081         Tests for module 'unicase/u32-is-titlecase'.
16082         * modules/unicase/u32-is-titlecase-tests: New file.
16083         * tests/unicase/test-u32-is-titlecase.c: New file.
16084
16085         Tests for module 'unicase/u16-is-titlecase'.
16086         * modules/unicase/u16-is-titlecase-tests: New file.
16087         * tests/unicase/test-u16-is-titlecase.c: New file.
16088
16089         Tests for module 'unicase/u8-is-titlecase'.
16090         * modules/unicase/u8-is-titlecase-tests: New file.
16091         * tests/unicase/test-u8-is-titlecase.c: New file.
16092         * tests/unicase/test-is-titlecase.h: New file.
16093
16094         New module 'unicase/u32-is-titlecase'.
16095         * lib/unicase/u32-is-titlecase.c: New file.
16096         * modules/unicase/u32-is-titlecase: New file.
16097
16098         New module 'unicase/u16-is-titlecase'.
16099         * lib/unicase/u16-is-titlecase.c: New file.
16100         * modules/unicase/u16-is-titlecase: New file.
16101
16102         New module 'unicase/u8-is-titlecase'.
16103         * lib/unicase/u8-is-titlecase.c: New file.
16104         * modules/unicase/u8-is-titlecase: New file.
16105
16106         Tests for module 'unicase/u32-is-lowercase'.
16107         * modules/unicase/u32-is-lowercase-tests: New file.
16108         * tests/unicase/test-u32-is-lowercase.c: New file.
16109
16110         Tests for module 'unicase/u16-is-lowercase'.
16111         * modules/unicase/u16-is-lowercase-tests: New file.
16112         * tests/unicase/test-u16-is-lowercase.c: New file.
16113
16114         Tests for module 'unicase/u8-is-lowercase'.
16115         * modules/unicase/u8-is-lowercase-tests: New file.
16116         * tests/unicase/test-u8-is-lowercase.c: New file.
16117         * tests/unicase/test-is-lowercase.h: New file.
16118
16119         New module 'unicase/u32-is-lowercase'.
16120         * lib/unicase/u32-is-lowercase.c: New file.
16121         * modules/unicase/u32-is-lowercase: New file.
16122
16123         New module 'unicase/u16-is-lowercase'.
16124         * lib/unicase/u16-is-lowercase.c: New file.
16125         * modules/unicase/u16-is-lowercase: New file.
16126
16127         New module 'unicase/u8-is-lowercase'.
16128         * lib/unicase/u8-is-lowercase.c: New file.
16129         * modules/unicase/u8-is-lowercase: New file.
16130
16131         Tests for module 'unicase/u32-is-uppercase'.
16132         * modules/unicase/u32-is-uppercase-tests: New file.
16133         * tests/unicase/test-u32-is-uppercase.c: New file.
16134
16135         Tests for module 'unicase/u16-is-uppercase'.
16136         * modules/unicase/u16-is-uppercase-tests: New file.
16137         * tests/unicase/test-u16-is-uppercase.c: New file.
16138
16139         Tests for module 'unicase/u8-is-uppercase'.
16140         * modules/unicase/u8-is-uppercase-tests: New file.
16141         * tests/unicase/test-u8-is-uppercase.c: New file.
16142         * tests/unicase/test-is-uppercase.h: New file.
16143
16144         New module 'unicase/u32-is-uppercase'.
16145         * lib/unicase/u32-is-uppercase.c: New file.
16146         * modules/unicase/u32-is-uppercase: New file.
16147
16148         New module 'unicase/u16-is-uppercase'.
16149         * lib/unicase/u16-is-uppercase.c: New file.
16150         * modules/unicase/u16-is-uppercase: New file.
16151
16152         New module 'unicase/u8-is-uppercase'.
16153         * lib/unicase/u8-is-uppercase.c: New file.
16154         * modules/unicase/u8-is-uppercase: New file.
16155
16156         New module 'unicase/u32-is-invariant'.
16157         * lib/unicase/u32-is-invariant.c: New file.
16158         * modules/unicase/u32-is-invariant: New file.
16159
16160         New module 'unicase/u16-is-invariant'.
16161         * lib/unicase/u16-is-invariant.c: New file.
16162         * modules/unicase/u16-is-invariant: New file.
16163
16164         New module 'unicase/u8-is-invariant'.
16165         * lib/unicase/u8-is-invariant.c: New file.
16166         * lib/unicase/invariant.h: New file.
16167         * lib/unicase/u-is-invariant.h: New file.
16168         * modules/unicase/u8-is-invariant: New file.
16169
16170         Tests for module 'unicase/u32-casecoll'.
16171         * modules/unicase/u32-casecoll-tests: New file.
16172         * tests/unicase/test-u32-casecoll.c: New file.
16173
16174         Tests for module 'unicase/u16-casecoll'.
16175         * modules/unicase/u16-casecoll-tests: New file.
16176         * tests/unicase/test-u16-casecoll.c: New file.
16177
16178         Tests for module 'unicase/u8-casecoll'.
16179         * modules/unicase/u8-casecoll-tests: New file.
16180         * tests/unicase/test-u8-casecoll.c: New file.
16181
16182         New module 'unicase/u32-casecoll'.
16183         * lib/unicase/u32-casecoll.c: New file.
16184         * modules/unicase/u32-casecoll: New file.
16185
16186         New module 'unicase/u16-casecoll'.
16187         * lib/unicase/u16-casecoll.c: New file.
16188         * modules/unicase/u16-casecoll: New file.
16189
16190         New module 'unicase/u8-casecoll'.
16191         * lib/unicase/u8-casecoll.c: New file.
16192         * lib/unicase/u-casecoll.h: New file.
16193         * modules/unicase/u8-casecoll: New file.
16194
16195         New module 'unicase/u32-casexfrm'.
16196         * lib/unicase/u32-casexfrm.c: New file.
16197         * modules/unicase/u32-casexfrm: New file.
16198
16199         New module 'unicase/u16-casexfrm'.
16200         * lib/unicase/u16-casexfrm.c: New file.
16201         * modules/unicase/u16-casexfrm: New file.
16202
16203         New module 'unicase/u8-casexfrm'.
16204         * lib/unicase/u8-casexfrm.c: New file.
16205         * lib/unicase/u-casexfrm.h: New file.
16206         * modules/unicase/u8-casexfrm: New file.
16207
16208         Tests for module 'unicase/u32-casecmp'.
16209         * modules/unicase/u32-casecmp-tests: New file.
16210         * tests/unicase/test-u32-casecmp.c: New file.
16211
16212         Tests for module 'unicase/u16-casecmp'.
16213         * modules/unicase/u16-casecmp-tests: New file.
16214         * tests/unicase/test-u16-casecmp.c: New file.
16215
16216         Tests for module 'unicase/u8-casecmp'.
16217         * modules/unicase/u8-casecmp-tests: New file.
16218         * tests/unicase/test-u8-casecmp.c: New file.
16219         * tests/unicase/test-casecmp.h: New file.
16220
16221         New module 'unicase/u32-casecmp'.
16222         * lib/unicase/u32-casecmp.c: New file.
16223         * modules/unicase/u32-casecmp: New file.
16224
16225         New module 'unicase/u16-casecmp'.
16226         * lib/unicase/u16-casecmp.c: New file.
16227         * modules/unicase/u16-casecmp: New file.
16228
16229         New module 'unicase/u8-casecmp'.
16230         * lib/unicase/u8-casecmp.c: New file.
16231         * lib/unicase/u-casecmp.h: New file.
16232         * modules/unicase/u8-casecmp: New file.
16233
16234         Tests for module 'unicase/u32-casefold'.
16235         * modules/unicase/u32-casefold-tests: New file.
16236         * tests/unicase/test-u32-casefold.c: New file.
16237
16238         Tests for module 'unicase/u16-casefold'.
16239         * modules/unicase/u16-casefold-tests: New file.
16240         * tests/unicase/test-u16-casefold.c: New file.
16241
16242         Tests for module 'unicase/u8-casefold'.
16243         * modules/unicase/u8-casefold-tests: New file.
16244         * tests/unicase/test-u8-casefold.c: New file.
16245
16246         New module 'unicase/u32-casefold'.
16247         * lib/unicase/u32-casefold.c: New file.
16248         * modules/unicase/u32-casefold: New file.
16249
16250         New module 'unicase/u16-casefold'.
16251         * lib/unicase/u16-casefold.c: New file.
16252         * modules/unicase/u16-casefold: New file.
16253
16254         New module 'unicase/u8-casefold'.
16255         * lib/unicase/u8-casefold.c: New file.
16256         * lib/unicase/u-casefold.h: New file.
16257         * modules/unicase/u8-casefold: New file.
16258
16259         New module 'unicase/tocasefold'.
16260         * lib/unicase/casefold.h: New file.
16261         * lib/unicase/tocasefold.c: New file.
16262         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
16263         * modules/unicase/tocasefold: New file.
16264
16265         Tests for module 'unicase/u32-totitle'.
16266         * modules/unicase/u32-totitle-tests: New file.
16267         * tests/unicase/test-u32-totitle.c: New file.
16268
16269         Tests for module 'unicase/u16-totitle'.
16270         * modules/unicase/u16-totitle-tests: New file.
16271         * tests/unicase/test-u16-totitle.c: New file.
16272
16273         Tests for module 'unicase/u8-totitle'.
16274         * modules/unicase/u8-totitle-tests: New file.
16275         * tests/unicase/test-u8-totitle.c: New file.
16276
16277         New module 'unicase/u32-totitle'.
16278         * lib/unicase/u32-totitle.c: New file.
16279         * modules/unicase/u32-totitle: New file.
16280
16281         New module 'unicase/u16-totitle'.
16282         * lib/unicase/u16-totitle.c: New file.
16283         * modules/unicase/u16-totitle: New file.
16284
16285         New module 'unicase/u8-totitle'.
16286         * lib/unicase/u8-totitle.c: New file.
16287         * lib/unicase/u-totitle.h: New file.
16288         * modules/unicase/u8-totitle: New file.
16289
16290         Tests for module 'unicase/u32-tolower'.
16291         * modules/unicase/u32-tolower-tests: New file.
16292         * tests/unicase/test-u32-tolower.c: New file.
16293
16294         Tests for module 'unicase/u16-tolower'.
16295         * modules/unicase/u16-tolower-tests: New file.
16296         * tests/unicase/test-u16-tolower.c: New file.
16297
16298         Tests for module 'unicase/u8-tolower'.
16299         * modules/unicase/u8-tolower-tests: New file.
16300         * tests/unicase/test-u8-tolower.c: New file.
16301
16302         New module 'unicase/u32-tolower'.
16303         * lib/unicase/u32-tolower.c: New file.
16304         * modules/unicase/u32-tolower: New file.
16305
16306         New module 'unicase/u16-tolower'.
16307         * lib/unicase/u16-tolower.c: New file.
16308         * modules/unicase/u16-tolower: New file.
16309
16310         New module 'unicase/u8-tolower'.
16311         * lib/unicase/u8-tolower.c: New file.
16312         * modules/unicase/u8-tolower: New file.
16313
16314         Tests for module 'unicase/u32-toupper'.
16315         * modules/unicase/u32-toupper-tests: New file.
16316         * tests/unicase/test-u32-toupper.c: New file.
16317
16318         Tests for module 'unicase/u16-toupper'.
16319         * modules/unicase/u16-toupper-tests: New file.
16320         * tests/unicase/test-u16-toupper.c: New file.
16321
16322         Tests for module 'unicase/u8-toupper'.
16323         * modules/unicase/u8-toupper-tests: New file.
16324         * tests/unicase/test-u8-toupper.c: New file.
16325
16326         New module 'unicase/u32-toupper'.
16327         * lib/unicase/u32-toupper.c: New file.
16328         * modules/unicase/u32-toupper: New file.
16329
16330         New module 'unicase/u16-toupper'.
16331         * lib/unicase/u16-toupper.c: New file.
16332         * modules/unicase/u16-toupper: New file.
16333
16334         New module 'unicase/u8-toupper'.
16335         * lib/unicase/u8-toupper.c: New file.
16336         * modules/unicase/u8-toupper: New file.
16337
16338         New module 'unicase/u32-casemap'.
16339         * lib/unicase/u32-casemap.c: New file.
16340         * modules/unicase/u32-casemap: New file.
16341
16342         New module 'unicase/u16-casemap'.
16343         * lib/unicase/u16-casemap.c: New file.
16344         * modules/unicase/u16-casemap: New file.
16345
16346         New module 'unicase/u8-casemap'.
16347         * lib/unicase/unicasemap.h: New file.
16348         * lib/unicase/u8-casemap.c: New file.
16349         * lib/unicase/u-casemap.h: New file.
16350         * modules/unicase/u8-casemap: New file.
16351
16352         New module 'unicase/special-casing'.
16353         * lib/unicase/special-casing.h: New file.
16354         * lib/unicase/special-casing.c: New file.
16355         * lib/unicase/special-casing-table.gperf: New file, generated by
16356         gen-uni-tables.c.
16357         * modules/unicase/special-casing: New file.
16358
16359         Tests for module 'unicase/locale-language'.
16360         * modules/unicase/locale-language-tests: New file.
16361         * tests/unicase/test-locale-language.sh: New file.
16362         * tests/unicase/test-locale-language.c: New file.
16363
16364         New module 'unicase/locale-language'.
16365         * lib/unicase/locale-language.c: New file.
16366         * lib/unicase/locale-languages.gperf: New file.
16367         * modules/unicase/locale-language: New file.
16368
16369         Generate more tables for case conversion and case folding.
16370         * lib/gen-uni-tables.c (SCC_*): New enum items.
16371         (struct special_casing_rule): New type.
16372         (casing_rules, num_casing_rules, allocated_casing_rules): New
16373         variables.
16374         (add_casing_rule, fill_casing_rules): New functions.
16375         (struct casefold_rule): New type.
16376         (casefolding_rules, num_casefolding_rules,
16377         allocated_casefolding_rules): New variables.
16378         (fill_casefolding_rules): New function.
16379         (unicode_casefold): New variable.
16380         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
16381         sort_casing_rules, output_casing_rules): New functions.
16382         (main): Accept to more arguments: SpecialCasing.txt and
16383         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
16384         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
16385         Output mapping for casefolding.
16386
16387         * lib/unicase.h: Include stdbool.h, uninorm.h.
16388         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
16389         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
16390         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
16391         arguments.
16392         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
16393         resultp arguments.
16394         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
16395         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
16396         resultp arguments.
16397         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
16398         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
16399         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
16400         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
16401         declarations.
16402         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
16403
16404 2009-03-08  Bruno Haible  <bruno@clisp.org>
16405
16406         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16407         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
16408         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
16409         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16410
16411 2009-03-07  Bruno Haible  <bruno@clisp.org>
16412
16413         Adjust u*_normcmp, u*_normcoll API.
16414         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16415         u16_normcoll, u32_normcoll): Change failure conventions.
16416         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
16417         errno and return -1.
16418         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16419
16420 2009-03-07  Bruno Haible  <bruno@clisp.org>
16421
16422         Tests for module 'uninorm/u32-normcoll'.
16423         * modules/uninorm/u32-normcoll-tests: New file.
16424         * tests/uninorm/test-u32-normcoll.c: New file.
16425
16426         Tests for module 'uninorm/u16-normcoll'.
16427         * modules/uninorm/u16-normcoll-tests: New file.
16428         * tests/uninorm/test-u16-normcoll.c: New file.
16429
16430         Tests for module 'uninorm/u8-normcoll'.
16431         * modules/uninorm/u8-normcoll-tests: New file.
16432         * tests/uninorm/test-u8-normcoll.c: New file.
16433
16434 2009-03-07  Bruno Haible  <bruno@clisp.org>
16435
16436         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
16437         tests/uninorm/test-u32-normcmp.c.
16438         * tests/uninorm/test-u32-normcmp.c: Include it.
16439         (test_nonascii): New function, extracted from main. Add some more
16440         tests.
16441         (main): Invoke test_ascii and test_nonascii.
16442         * modules/uninorm/u32-normcmp-tests (Files): Add
16443         tests/uninorm/test-u32-normcmp.h.
16444         (Depends-on): Remove uninorm/u32-normcmp.
16445
16446         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
16447         tests/uninorm/test-u16-normcmp.c.
16448         * tests/uninorm/test-u16-normcmp.c: Include it.
16449         (test_nonascii): New function, extracted from main. Add some more
16450         tests.
16451         (main): Invoke test_ascii and test_nonascii.
16452         * modules/uninorm/u16-normcmp-tests (Files): Add
16453         tests/uninorm/test-u16-normcmp.h.
16454         (Depends-on): Remove uninorm/u16-normcmp.
16455
16456         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
16457         tests/uninorm/test-u8-normcmp.c.
16458         * tests/uninorm/test-u8-normcmp.c: Include it.
16459         (test_nonascii): New function, extracted from main. Add some more
16460         tests.
16461         (main): Invoke test_ascii and test_nonascii.
16462         * modules/uninorm/u8-normcmp-tests (Files): Add
16463         tests/uninorm/test-u8-normcmp.h.
16464         (Depends-on): Remove uninorm/u8-normcmp.
16465
16466 2009-03-07  Bruno Haible  <bruno@clisp.org>
16467
16468         New module 'uninorm/u32-normcoll'.
16469         * lib/uninorm/u32-normcoll.c: New file.
16470         * modules/uninorm/u32-normcoll: New file.
16471
16472         New module 'uninorm/u16-normcoll'.
16473         * lib/uninorm/u16-normcoll.c: New file.
16474         * modules/uninorm/u16-normcoll: New file.
16475
16476         New module 'uninorm/u8-normcoll'.
16477         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
16478         declarations.
16479         * lib/uninorm/u8-normcoll.c: New file.
16480         * lib/uninorm/u-normcoll.h: New file.
16481         * modules/uninorm/u8-normcoll: New file.
16482
16483         New module 'uninorm/u32-normxfrm'.
16484         * lib/uninorm/u32-normxfrm.c: New file.
16485         * modules/uninorm/u32-normxfrm: New file.
16486
16487         New module 'uninorm/u16-normxfrm'.
16488         * lib/uninorm/u16-normxfrm.c: New file.
16489         * modules/uninorm/u16-normxfrm: New file.
16490
16491         New module 'uninorm/u8-normxfrm'.
16492         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
16493         declarations.
16494         * lib/uninorm/u8-normxfrm.c: New file.
16495         * lib/uninorm/u-normxfrm.h: New file.
16496         * modules/uninorm/u8-normxfrm: New file.
16497
16498 2009-03-07  Bruno Haible  <bruno@clisp.org>
16499
16500         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
16501         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
16502         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
16503
16504 2009-03-07  Bruno Haible  <bruno@clisp.org>
16505
16506         New module 'memxfrm'.
16507         * lib/memxfrm.h: New file.
16508         * lib/memxfrm.c: New file.
16509         * modules/memxfrm: New file.
16510
16511 2009-03-07  Bruno Haible  <bruno@clisp.org>
16512
16513         New module 'memcmp2'.
16514         * lib/memcmp2.h: New file.
16515         * lib/memcmp2.c: New file.
16516         * modules/memcmp2: New file.
16517
16518 2009-03-07  Bruno Haible  <bruno@clisp.org>
16519
16520         Tests for module 'uninorm/decomposing-form'.
16521         * modules/uninorm/decomposing-form-tests: New file.
16522         * tests/uninorm/test-decomposing-form.c: New file.
16523
16524         New module 'uninorm/decomposing-form'.
16525         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
16526         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
16527         Add 'decomposing_variant' field.
16528         * lib/uninorm/decomposing-form.c: New file.
16529         * lib/uninorm/nfc.c (uninorm_nfc): Update.
16530         * lib/uninorm/nfd.c (uninorm_nfd): Update.
16531         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
16532         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
16533         * modules/uninorm/decomposing-form: New file.
16534         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
16535         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
16536
16537 2009-03-07  Bruno Haible  <bruno@clisp.org>
16538
16539         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
16540         strings.
16541
16542 2009-03-06  Bruno Haible  <bruno@clisp.org>
16543
16544         Tests for module 'uninorm/u32-normcmp'.
16545         * tests/uninorm/test-u32-normcmp.c: New file.
16546         * modules/uninorm/u32-normcmp-tests: New file.
16547
16548         Tests for module 'uninorm/u16-normcmp'.
16549         * tests/uninorm/test-u16-normcmp.c: New file.
16550         * modules/uninorm/u16-normcmp-tests: New file.
16551
16552         Tests for module 'uninorm/u8-normcmp'.
16553         * tests/uninorm/test-u8-normcmp.c: New file.
16554         * modules/uninorm/u8-normcmp-tests: New file.
16555
16556         New module 'uninorm/u32-normcmp'.
16557         * lib/uninorm/u32-normcmp.c: New file.
16558         * modules/uninorm/u32-normcmp: New file.
16559
16560         New module 'uninorm/u16-normcmp'.
16561         * lib/uninorm/u16-normcmp.c: New file.
16562         * modules/uninorm/u16-normcmp: New file.
16563
16564         New module 'uninorm/u8-normcmp'.
16565         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
16566         declarations.
16567         * lib/uninorm/u8-normcmp.c: New file.
16568         * lib/uninorm/u-normcmp.h: New file.
16569         * modules/uninorm/u8-normcmp: New file.
16570
16571 2009-03-06  Bruno Haible  <bruno@clisp.org>
16572
16573         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
16574         Reported by Eric Blake.
16575
16576 2009-03-06  Eric Blake  <ebb9@byu.net>
16577             Bruno Haible  <bruno@clisp.org>
16578
16579         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
16580         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
16581         condition.
16582         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16583         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
16584         condition.
16585         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16586
16587 2009-03-06  Eric Blake  <ebb9@byu.net>
16588
16589         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
16590         to avoid compiler warnings.
16591         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
16592
16593 2009-03-05  Bruno Haible  <bruno@clisp.org>
16594
16595         * tests/test-ftell.c (main): Disable test beyond end of file on
16596         FreeMiNT.
16597         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16598
16599 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
16600
16601         * lib/filevercmp.c: Move hidden files up in ordering.
16602         * tests/test-filevercmp.c: Add tests for hidden files.
16603
16604 2009-03-04  Bruno Haible  <bruno@clisp.org>
16605
16606         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
16607         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
16608         AM_CFLAGS.
16609         Reported by Simon Josefsson.
16610
16611 2009-03-03  Bruno Haible  <bruno@clisp.org>
16612
16613         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
16614         Reported by Simon Josefsson.
16615
16616         * doc/ld-version-script.texi: Update node reference.
16617
16618 2009-03-03  Bruno Haible  <bruno@clisp.org>
16619
16620         * modules/visibility (License): Change to 'unlimited'.
16621         Suggested by Simon Josefsson.
16622
16623 2009-03-03  Jim Meyering  <meyering@redhat.com>
16624
16625         unlinkdir: cannot_unlink_dir may modify process state
16626         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16627         it's neither thread-safe nor appropriate for use in a library.
16628
16629 2009-03-03  Eric Blake  <ebb9@byu.net>
16630
16631         test-closein: silence test under Darwin
16632         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16633         care if it dies from EPIPE or EBADF.
16634
16635 2009-03-03  Bruno Haible  <bruno@clisp.org>
16636
16637         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16638         earlier.
16639         * doc/visibility.texi: Fix @node and @section.
16640
16641 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16642
16643         * doc/gnulib.texi: Link to sections for ld version script and
16644         visibility.
16645         * doc/visibility.texi: Add @node and @section.
16646         * modules/ld-version-script: New module.
16647         * m4/ld-version-script.m4: New file.
16648         * doc/ld-version-script.texi: New file.
16649
16650 2009-03-02  David Lutterkort  <lutter@redhat.com>
16651
16652         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16654
16655 2009-03-02  Bruno Haible  <bruno@clisp.org>
16656
16657         * doc/visibility.texi: Mention libtool's -export-symbols option.
16658
16659 2009-03-02  Jim Meyering  <meyering@redhat.com>
16660
16661         announce-gen: new option: --no-print-checksums
16662         * build-aux/announce-gen (usage): Describe it.
16663         (print_checksums): Print a newline here, not in the [*] footnote.
16664         (main): Honor it.
16665
16666 2009-03-01  Bruno Haible  <bruno@clisp.org>
16667
16668         Use socklen_t in the native Windows replacements prototypes.
16669         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16670         instead of 'int'.
16671         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16672         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16673         * modules/getsockopt (Depends-on): Add socklen.
16674         * modules/setsockopt (Depends-on): Add socklen.
16675
16676 2009-03-01  Bruno Haible  <bruno@clisp.org>
16677
16678         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16679         least 4.2.
16680
16681 2009-03-01  Eric Blake  <ebb9@byu.net>
16682             Bruno Haible  <bruno@clisp.org>
16683
16684         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16685         error messages.
16686         * lib/wait-process.c (wait_subprocess): Omit error message about
16687         deadly signal sent to the child of termsigp != NULL.
16688
16689 2009-03-01  Eric Blake  <ebb9@byu.net>
16690
16691         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16692
16693 2009-03-01  Bruno Haible  <bruno@clisp.org>
16694
16695         Avoid a gcc warning.
16696         * tests/test-sched.c (b): Make global.
16697         Reported by Eric Blake.
16698
16699 2009-01-19  Martin Lambers  <marlam@marlam.de>
16700
16701         Provide POSIX semantics for socket timeout options on W32.
16702         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16703         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16704         * modules/setsockopt: Depend on sys_time module for struct timeval.
16705         * modules/getsockopt: Depend on sys_time module for struct timeval.
16706
16707 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16708
16709         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16710         __USE_GNU, for consistency with netdb.in.h.
16711         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16712
16713 2009-03-01  Bruno Haible  <bruno@clisp.org>
16714
16715         More support for FreeMiNT.
16716         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16717         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16718
16719 2009-03-01  Bruno Haible  <bruno@clisp.org>
16720
16721         More support for FreeMiNT.
16722         * lib/fpurge.c (fpurge): Correct last commit.
16723         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16724
16725 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16726
16727         Fix unportable awk script in vc-list-files.
16728         * build-aux/vc-list-files: In the replacement awk script, use
16729         substr with a second argument of 1, not zero.
16730         Report by Simon Josefsson.
16731
16732 2009-02-28  Bruno Haible  <bruno@clisp.org>
16733
16734         More support for FreeMiNT.
16735         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16736         to FreeMiNT today.
16737         * lib/fwriting.c (fwriting): Likewise.
16738         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16739
16740 2009-02-28  Bruno Haible  <bruno@clisp.org>
16741
16742         * tests/test-freadseek.c (main): Disable test beyond end of file on
16743         FreeMiNT.
16744         * tests/test-ftello.c (main): Likewise.
16745         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16746
16747 2009-02-28  Bruno Haible  <bruno@clisp.org>
16748
16749         Add tentative support for FreeMiNT.
16750         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16751         * lib/fpurge.c (fpurge): Likewise.
16752         * lib/freadable.c (freadable): Likewise.
16753         * lib/freading.c (freading): Likewise.
16754         * lib/freadptr.c (freadptr): Likewise.
16755         * lib/freadseek.c (freadptrinc): Likewise.
16756         * lib/fseeko.c (rpl_fseeko): Likewise.
16757         * lib/fseterr.c (fseterr): Likewise.
16758         * lib/fwritable.c (fwritable): Likewise.
16759         * lib/fwriting.c (fwriting): Likewise.
16760         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16761         Hourihane.
16762         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16763
16764 2009-02-28  Bruno Haible  <bruno@clisp.org>
16765
16766         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16767         SIGCHLD.
16768         Reported by Jim Meyering.
16769
16770 2009-02-28  Bruno Haible  <bruno@clisp.org>
16771
16772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16773         Mention the results of these tests on various platforms.
16774         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16775         order.
16776         * doc/posix-functions/printf.texi: Likewise.
16777         * doc/posix-functions/snprintf.texi: Likewise.
16778         * doc/posix-functions/sprintf.texi: Likewise.
16779         * doc/posix-functions/vfprintf.texi: Likewise.
16780         * doc/posix-functions/vprintf.texi: Likewise.
16781         * doc/posix-functions/vsnprintf.texi: Likewise.
16782         * doc/posix-functions/vsprintf.texi: Likewise.
16783         * doc/glibc-functions/obstack_printf.texi: Likewise.
16784         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16785
16786 2009-02-28  Bruno Haible  <bruno@clisp.org>
16787
16788         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16789         Reported by Loïc Minier <lool@dooz.org>.
16790
16791 2009-02-27  Bruno Haible  <bruno@clisp.org>
16792
16793         * gnulib-tool (func_import): Make the sed expression used to create the
16794         sed script for updating the .gitignore file POSIX compliant.
16795         Reported by Eric Blake.
16796
16797 2009-02-27  Bruno Haible  <bruno@clisp.org>
16798
16799         * gnulib-tool (sed): Don't alias as "sed --posix".
16800         Reported by Eric Blake.
16801
16802 2009-02-27  Bruno Haible  <bruno@clisp.org>
16803
16804         Avoid test link errors.
16805         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16806         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16807         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16808         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16810
16811 2009-02-27  Bruno Haible  <bruno@clisp.org>
16812
16813         Avoid spurious "(cached)" in configure output.
16814         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16815         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16816         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16817         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16818         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16819         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16820         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16821         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16822         Reported by Eric Blake.
16823
16824 2009-02-27  Eric Blake  <ebb9@byu.net>
16825
16826         printf: fix regression in previous patch
16827         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16828
16829 2009-02-27  Bruno Haible  <bruno@clisp.org>
16830
16831         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16832         value.
16833         * lib/stdint.in.h: Likewise.
16834         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16835
16836 2009-02-27  Eric Blake  <ebb9@byu.net>
16837
16838         doc: mention more functions added in cygwin 1.7.0
16839         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16840         addition.
16841         * doc/posix-functions/open_wmemstream.texi: Likewise.
16842         * doc/posix-functions/wcsnlen.texi: Likewise.
16843         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16844         * doc/posix-functions/wcstod.texi: Likewise.
16845         * doc/posix-functions/wcstof.texi: Likewise.
16846         * doc/posix-functions/wcstoimax.texi: Likewise.
16847         * doc/posix-functions/wcstok.texi: Likewise.
16848         * doc/posix-functions/wcstoumax.texi: Likewise.
16849
16850         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16852         * doc/posix-functions/fprintf.texi: Update.
16853         * doc/posix-functions/printf.texi: Update.
16854         * doc/posix-functions/snprintf.texi: Update.
16855         * doc/posix-functions/sprintf.texi: Update.
16856         * doc/posix-functions/vfprintf.texi: Update.
16857         * doc/posix-functions/vprintf.texi: Update.
16858         * doc/posix-functions/vsnprintf.texi: Update.
16859         * doc/posix-functions/vsprintf.texi: Update.
16860         * doc/glibc-functions/obstack_printf.texi: Update.
16861         * doc/glibc-functions/obstack_vprintf.texi: Update.
16862
16863 2009-02-26  Eric Blake  <ebb9@byu.net>
16864
16865         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16866         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16867         compilation bug by using runtime conversion.
16868         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16869         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16870         * modules/ceill-tests (Files): Use nan.h.
16871         * modules/floorl-tests (Files): Likewise.
16872         * modules/frexpl-tests (Files): Likewise.
16873         * modules/isnanl-tests (Files): Likewise.
16874         * modules/ldexpl-tests (Files): Likewise.
16875         * modules/roundl-tests (Files): Likewise.
16876         * modules/truncl-tests (Files): Likewise.
16877         * tests/test-ceill.c (main): Use a working NaN.
16878         * tests/test-floorl.c (main): Likewise.
16879         * tests/test-frexpl.c (main): Likewise.
16880         * tests/test-isnan.c (test_long_double): Likewise.
16881         * tests/test-isnanl.h (main): Likewise.
16882         * tests/test-ldexpl.h (main): Likewise.
16883         * tests/test-roundl.h (main): Likewise.
16884         * tests/test-truncl.h (main): Likewise.
16885         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16886
16887 2009-02-26  Eric Blake  <ebb9@byu.net>
16888             Bruno Haible  <bruno@clisp.org>
16889
16890         Work around a *printf bug with %ls on Solaris.
16891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16892         precision is specified, sprintf stops converting the wide string
16893         argument when the number of bytes that have been produced by this
16894         conversion equals or exceeds the precision.
16895         * doc/posix-functions/fprintf.texi: Update.
16896         * doc/posix-functions/printf.texi: Update.
16897         * doc/posix-functions/snprintf.texi: Update.
16898         * doc/posix-functions/sprintf.texi: Update.
16899         * doc/posix-functions/vfprintf.texi: Update.
16900         * doc/posix-functions/vprintf.texi: Update.
16901         * doc/posix-functions/vsnprintf.texi: Update.
16902         * doc/posix-functions/vsprintf.texi: Update.
16903         * doc/glibc-functions/obstack_printf.texi: Update.
16904         * doc/glibc-functions/obstack_vprintf.texi: Update.
16905
16906 2009-02-26  Eric Blake  <ebb9@byu.net>
16907
16908         stdlib: favor compiler check of random.h
16909         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16910         to avoid an ObjC random.h installed by Swarm.
16911
16912 2009-02-26  Bruno Haible  <bruno@clisp.org>
16913
16914         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16915         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16916         Reported by Gary V. Vaughan <gary@gnu.org>.
16917
16918 2009-02-26  Bruno Haible  <bruno@clisp.org>
16919
16920         Fix *printf behaviour regarding the %ls directive.
16921         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16922         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16923         NEED_PRINTF_DIRECTIVE_LS.
16924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16925         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16927         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16928         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16929         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16930         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16932         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16933         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16934         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16935         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16936         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16937         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16938         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16939         * doc/posix-functions/fprintf.texi: Update.
16940         * doc/posix-functions/printf.texi: Update.
16941         * doc/posix-functions/snprintf.texi: Update.
16942         * doc/posix-functions/sprintf.texi: Update.
16943         * doc/posix-functions/vfprintf.texi: Update.
16944         * doc/posix-functions/vprintf.texi: Update.
16945         * doc/posix-functions/vsnprintf.texi: Update.
16946         * doc/posix-functions/vsprintf.texi: Update.
16947         * doc/glibc-functions/obstack_printf.texi: Update.
16948         * doc/glibc-functions/obstack_vprintf.texi: Update.
16949         Reported by Eric Blake.
16950
16951 2009-02-25  Bruno Haible  <bruno@clisp.org>
16952
16953         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16954         with known value.
16955         Reported by Gary V. Vaughan <gary@gnu.org>.
16956
16957 2009-02-25  Bruno Haible  <bruno@clisp.org>
16958
16959         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16960         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16961         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16962         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16963         Reported by Gary V. Vaughan <gary@gnu.org>.
16964
16965 2009-02-25  Bruno Haible  <bruno@clisp.org>
16966
16967         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16968         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16969         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16970         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16971         Reported by Gary V. Vaughan <gary@gnu.org>.
16972
16973 2009-02-25  Eric Blake  <ebb9@byu.net>
16974
16975         tests: skip fseek/ftell tests if ungetc is broken
16976         * m4/ungetc.m4: New file.
16977         * modules/fseek-tests: Split test, so ungetc dependency is
16978         separate from rest of test.
16979         * modules/fseeko-tests: Likewise.
16980         * modules/ftell-tests: Likewise.
16981         * modules/ftello-tests: Likewise.
16982         * tests/test-fseek.c (main): Isolate ungetc dependency.
16983         * tests/test-fseeko.c (main): Likewise.
16984         * tests/test-ftell.c (main): Likewise.
16985         * tests/test-ftello.c (main): Likewise.
16986         * tests/test-fseek2.sh: New file.
16987         * tests/test-fseeko2.sh: Likewise.
16988         * tests/test-ftell2.sh: Likewise.
16989         * tests/test-ftello2.sh: Likewise.
16990
16991 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16992
16993         test-getaddrinfo: fix usage of skip return code 77
16994         * tests/test-gettaddrinfo.c: Return skip code 77 only
16995         for first occurance of skip (4x77 is not 77)
16996
16997 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16998
16999         strtod: avoid C99 decl-after-statement
17000         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
17001
17002 2009-02-24  Eric Blake  <ebb9@byu.net>
17003
17004         strtod: detect HP-UX 11.31 bug
17005         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
17006         Reported by Gary V. Vaughan.
17007
17008 2009-02-23  Bruno Haible  <bruno@clisp.org>
17009
17010         Fix invalid read past end of memory block.
17011         * lib/vasnprintf.c (DCHAR_SET): Define.
17012         (local_wcslen): Define only when needed.
17013         (local_strnlen, local_wcsnlen): New functions.
17014         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
17015         directives that involve a conversion ourselves.
17016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
17017         wcsnlen, mbrtowc, wcrtomb.
17018         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
17019         * tests/test-vasprintf-posix.c (test_function): Likewise.
17020         * tests/test-snprintf-posix.h (test_function): Likewise.
17021         * tests/test-sprintf-posix.h (test_function): Likewise.
17022         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17023
17024 2009-02-22  Bruno Haible  <bruno@clisp.org>
17025
17026         Implement new clarified decomposition of Hangul syllables.
17027         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
17028         of type LTV, return only a pairwise decomposition.
17029         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
17030         Likewise.
17031         * tests/uninorm/test-decomposition.c (main): Updated expected result.
17032         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
17033         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
17034
17035 2009-02-22  Bruno Haible  <bruno@clisp.org>
17036
17037         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
17038         zero-length results and shrink excess allocated memory.
17039         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
17040         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
17041         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
17042         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
17043         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
17044         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
17045         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
17046         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
17047         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
17048         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
17049         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
17050         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
17051
17052 2009-02-21  Bruno Haible  <bruno@clisp.org>
17053
17054         * doc/gnulib.texi: Include safe-alloc.texi earlier.
17055         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
17056         spaces after a period. Put a space between a macro name and its
17057         argument list. Trivial rewordings.
17058         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
17059         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
17060         (main): Return 0 explicitly.
17061
17062 2009-02-21  Bruno Haible  <bruno@clisp.org>
17063
17064         Tests for module 'uninorm/filter'.
17065         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
17066         * modules/uninorm/filter-tests: New file.
17067
17068         New module 'uninorm/filter'.
17069         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
17070         uninorm_filter_flush, uninorm_filter_free): New declarations.
17071         * lib/uninorm/uninorm-filter.c: New file.
17072         * modules/uninorm/filter: New file.
17073
17074 2009-02-21  Bruno Haible  <bruno@clisp.org>
17075
17076         Tests for module 'uninorm/nfkc'.
17077         * tests/uninorm/test-nfkc.c: New file.
17078         * tests/uninorm/test-u8-nfkc.c: New file.
17079         * tests/uninorm/test-u16-nfkc.c: New file.
17080         * tests/uninorm/test-u32-nfkc.c: New file.
17081         * tests/uninorm/test-u32-nfkc-big.sh: New file.
17082         * tests/uninorm/test-u32-nfkc-big.c: New file.
17083         * modules/uninorm/nfkc-tests: New file.
17084
17085         New module 'uninorm/nfkc'.
17086         * lib/uninorm/nfkc.c: New file.
17087         * modules/uninorm/nfkc: New file.
17088
17089         Tests for module 'uninorm/nfkd'.
17090         * tests/uninorm/test-nfkd.c: New file.
17091         * tests/uninorm/test-u8-nfkd.c: New file.
17092         * tests/uninorm/test-u16-nfkd.c: New file.
17093         * tests/uninorm/test-u32-nfkd.c: New file.
17094         * tests/uninorm/test-u32-nfkd-big.sh: New file.
17095         * tests/uninorm/test-u32-nfkd-big.c: New file.
17096         * modules/uninorm/nfkd-tests: New file.
17097
17098         New module 'uninorm/nfkd'.
17099         * lib/uninorm/nfkd.c: New file.
17100         * modules/uninorm/nfkd: New file.
17101
17102         Tests for module 'uninorm/nfc'.
17103         * tests/uninorm/test-nfc.c: New file.
17104         * tests/uninorm/test-u8-nfc.c: New file.
17105         * tests/uninorm/test-u16-nfc.c: New file.
17106         * tests/uninorm/test-u32-nfc.c: New file.
17107         * tests/uninorm/test-u32-nfc-big.sh: New file.
17108         * tests/uninorm/test-u32-nfc-big.c: New file.
17109         * modules/uninorm/nfc-tests: New file.
17110
17111         New module 'uninorm/nfc'.
17112         * lib/uninorm/nfc.c: New file.
17113         * modules/uninorm/nfc: New file.
17114
17115         Tests for module 'uninorm/nfd'.
17116         * tests/uninorm/test-nfd.c: New file.
17117         * tests/uninorm/test-u8-nfd.c: New file.
17118         * tests/uninorm/test-u16-nfd.c: New file.
17119         * tests/uninorm/test-u32-nfd.c: New file.
17120         * tests/uninorm/test-u32-nfd-big.sh: New file.
17121         * tests/uninorm/test-u32-nfd-big.c: New file.
17122         * tests/uninorm/test-u32-normalize-big.h: New file.
17123         * tests/uninorm/test-u32-normalize-big.c: New file.
17124         * tests/uninorm/NormalizationTest.txt: New file, created from
17125         Unicode 5.1.0 NormalizationTest.txt.
17126         * modules/uninorm/nfd-tests: New file.
17127
17128         New module 'uninorm/nfd'.
17129         * lib/uninorm/nfd.c: New file.
17130         * modules/uninorm/nfd: New file.
17131
17132         New module 'uninorm/u32-normalize'.
17133         * lib/uninorm/u32-normalize.c: New file.
17134         * modules/uninorm/u32-normalize: New file.
17135
17136         New module 'uninorm/u16-normalize'.
17137         * lib/uninorm/u16-normalize.c: New file.
17138         * modules/uninorm/u16-normalize: New file.
17139
17140         New module 'uninorm/u8-normalize'.
17141         * lib/uninorm/u8-normalize.c: New file.
17142         * lib/uninorm/normalize-internal.h: New file.
17143         * lib/uninorm/u-normalize-internal.h: New file.
17144         * modules/uninorm/u8-normalize: New file.
17145
17146         New module 'uninorm/decompose-internal'.
17147         * lib/uninorm/decompose-internal.c: New file.
17148         * modules/uninorm/decompose-internal: New file.
17149
17150         Tests for module 'uninorm/composition'.
17151         * tests/uninorm/test-composition.c: New file.
17152         * modules/uninorm/composition-tests: New file.
17153
17154         New module 'uninorm/composition'.
17155         * lib/uninorm/composition.c: New file.
17156         * lib/uninorm/composition-table.gperf: New file, generated by
17157         gen-uni-tables.
17158         * modules/uninorm/composition: New file.
17159
17160         Tests for module 'uninorm/compat-decomposition'.
17161         * tests/uninorm/test-compat-decomposition.c: New file.
17162         * modules/uninorm/compat-decomposition-tests: New file.
17163
17164         New module 'uninorm/compat-decomposition'.
17165         * lib/uninorm/decompose-internal.h: New file.
17166         * lib/uninorm/compat-decomposition.c: New file.
17167         * modules/uninorm/compat-decomposition: New file.
17168
17169         Tests for module 'uninorm/canonical-decomposition'.
17170         * tests/uninorm/test-canonical-decomposition.c: New file.
17171         * modules/uninorm/canonical-decomposition-tests: New file.
17172
17173         New module 'uninorm/canonical-decomposition'.
17174         * lib/uninorm/canonical-decomposition.c: New file.
17175         * modules/uninorm/canonical-decomposition: New file.
17176
17177         Tests for module 'uninorm/decomposition'.
17178         * tests/uninorm/test-decomposition.c: New file.
17179         * modules/uninorm/decomposition-tests: New file.
17180
17181         New module 'uninorm/decomposition'.
17182         * lib/uninorm/decomposition.c: New file.
17183         * modules/uninorm/decomposition: New file.
17184
17185         New module 'uninorm/decomposition-table'.
17186         * lib/uninorm/decomposition-table.h: New file.
17187         * lib/uninorm/decomposition-table.c: New file.
17188         * lib/uninorm/decomposition-table1.h: New file, generated by
17189         gen-uni-tables.
17190         * lib/uninorm/decomposition-table2.h: New file, generated by
17191         gen-uni-tables.
17192         * modules/uninorm/decomposition-table: New file.
17193
17194         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
17195         (UC_DECOMP_*): New enumeration items.
17196         (get_decomposition): New function.
17197         (struct decomp_table): New type.
17198         (output_decomposition, output_decomposition_tables): New functions.
17199         (unicode_composition_exclusions): New variable.
17200         (fill_composition_exclusions, debug_output_composition_tables): New
17201         functions.
17202         (main): Accept one more argument. Invoke fill_composition_exclusions.
17203         Output decomposition and composition tables.
17204
17205         New module 'uninorm/base'.
17206         * lib/uninorm.h: New file.
17207         * lib/unictype.h: Update comment.
17208         * modules/uninorm/base: New file.
17209
17210 2009-02-21  David Lutterkort  <lutter@redhat.com>
17211
17212         Tests for module 'safe-alloc'.
17213         * tests/test-safe-alloc.c: New file.
17214         * modules/safe-alloc-tests: New file.
17215
17216         New module 'safe-alloc'.
17217         * lib/safe-alloc.h: New file.
17218         * lib/safe-alloc.c: New file.
17219         * m4/safe-alloc.m4: New file.
17220         * modules/safe-alloc: New file.
17221         * doc/safe-alloc.texi: New file.
17222         * doc/gnulib.texi: Include it.
17223         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17224         safe-alloc.
17225
17226 2009-02-18  Bruno Haible  <bruno@clisp.org>
17227
17228         Fix link error on non-glibc systems.
17229         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
17230         variable.
17231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17232
17233 2009-02-18  Jim Meyering  <meyering@redhat.com>
17234
17235         fts: avoid used-uninitialized error due to recent change
17236         * lib/fts.c (fts_read): Guard uses of the new member,
17237         parent->fts_n_dirs_remaining, since it's not relevant for
17238         the parent of a directory specified on the command-line.
17239
17240 2009-02-17  James Youngman  <jay@gnu.org>
17241             Bruno Haible  <bruno@clisp.org>
17242
17243         * m4/include_next.m4: Reformulate comment.
17244
17245 2009-02-16  Jim Meyering  <meyering@redhat.com>
17246
17247         fts: add #if guards so that the fts_lgpl module still builds
17248         * lib/fts.c: Guard just-added hash-table-using parts with
17249         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
17250         Reported by Simon Josefsson.
17251
17252 2009-02-15  Bruno Haible  <bruno@clisp.org>
17253
17254         * modules/array-mergesort-tests: New file.
17255         * tests/test-array-mergesort.c: New file.
17256
17257         New module 'array-mergesort'.
17258         * modules/array-mergesort: New file.
17259         * lib/array-mergesort.h: New file.
17260
17261 2009-02-15  Bruno Haible  <bruno@clisp.org>
17262
17263         Fix 2009-02-07 commit.
17264         * lib/gen-uni-tables.c (output_predicate, output_category,
17265         output_combclass, output_bidi_category, output_decimal_digit,
17266         output_digit, output_numeric, output_mirror, output_scripts,
17267         output_ident_category, output_simple_mapping): Fix format directives.
17268         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
17269
17270 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
17271
17272         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
17273         fixes are available from IBM.
17274
17275 2009-02-13  Jim Meyering  <meyering@redhat.com>
17276
17277         fts: arrange not to stat non-directories in more cases
17278         This makes GNU find (when it doesn't need to stat each file)
17279         *much* more efficient at traversing reiserfs file systems.
17280         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
17281         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
17282         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
17283         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
17284         (leaf_optimization_applies): New function.
17285         (LCO_hash, LCO_compare): New helper functions.
17286         (link_count_optimize_ok): New function.
17287         (fts_stat): Initialize new member (if dir).
17288         (fts_read): Decrement parent's fts_n_dirs_remaining count if
17289         we've just stat'ed a directory.  Skip the stat call when possible.
17290         ---
17291         Note this AFS-related exchange:
17292         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
17293         and note find's pioctl call in find/fstype.c.
17294         But that is necessary only if you want to enable the
17295         optimization for AFS, and for now, I don't.
17296
17297         fts: move a function definition "up" (no semantic change)
17298         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
17299         "up" to precede upcoming use of a related function.
17300
17301 2009-02-11  Jim Meyering  <meyering@redhat.com>
17302
17303         fts: correct internal computation of nlinks (optimization-related)
17304         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
17305         whether the current entry is a directory, so don't test it.
17306
17307 2009-02-10  Bruno Haible  <bruno@clisp.org>
17308
17309         Tests for module 'uniwbrk/ulc-wordbreaks'.
17310         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
17311         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
17312         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
17313
17314         Tests for module 'uniwbrk/u32-wordbreaks'.
17315         * modules/uniwbrk/u32-wordbreaks-tests: New file.
17316         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
17317
17318         Tests for module 'uniwbrk/u16-wordbreaks'.
17319         * modules/uniwbrk/u16-wordbreaks-tests: New file.
17320         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
17321
17322         Tests for module 'uniwbrk/u8-wordbreaks'.
17323         * modules/uniwbrk/u8-wordbreaks-tests: New file.
17324         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
17325
17326 2009-02-10  Bruno Haible  <bruno@clisp.org>
17327
17328         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
17329         property.
17330         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
17331         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
17332         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
17333
17334 2009-02-10  Simon Josefsson  <simon@josefsson.org>
17335
17336         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
17337         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
17338
17339 2009-02-10  Bruno Haible  <bruno@clisp.org>
17340
17341         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
17342         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
17343         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
17344         * lib/unilbrk/u8-possible-linebreaks.c: Update.
17345         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
17346         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
17347
17348 2009-02-09  Simon Josefsson  <simon@josefsson.org>
17349
17350         * lib/sockets.h (gl_fd_to_handle): New function.
17351
17352         * tests/test-sockets.c: Call gl_fd_to_handle.
17353
17354 2009-02-09  Bruno Haible  <bruno@clisp.org>
17355
17356         * doc/havelib.texi: Document the conventions on bi-arch systems.
17357
17358 2009-02-08  Bruno Haible  <bruno@clisp.org>
17359
17360         Document the AC_LIB_LINKFLAGS macro.
17361         * doc/havelib.texi: New file, mostly written on 2005-05-24.
17362         * doc/gnulib.texi: Include it.
17363
17364 2009-02-08  Bruno Haible  <bruno@clisp.org>
17365
17366         Fix wrong order of sections, compared to TOC.
17367         * doc/gnulib.texi: Include relocatable-maint.texi after the
17368         "Regular expressions" node, not before.
17369
17370 2009-02-08  Bruno Haible  <bruno@clisp.org>
17371
17372         Tests for module 'unicase/totitle'.
17373         * modules/unicase/totitle-tests: New file.
17374
17375         Tests for module 'unicase/tolower'.
17376         * modules/unicase/tolower-tests: New file.
17377
17378         Tests for module 'unicase/toupper'.
17379         * modules/unicase/toupper-tests: New file.
17380         * tests/unicase/test-mapping-part1.h: New file.
17381         * tests/unicase/test-mapping-part2.h: New file.
17382
17383         New module 'unicase/totitle'.
17384         * modules/unicase/totitle: New file.
17385         * lib/unicase/totitle.c: New file.
17386
17387         New module 'unicase/tolower'.
17388         * modules/unicase/tolower: New file.
17389         * lib/unicase/tolower.c: New file.
17390
17391         New module 'unicase/toupper'.
17392         * modules/unicase/toupper: New file.
17393         * lib/unicase/toupper.c: New file.
17394         * lib/unicase/simple-mapping.h: New file.
17395
17396         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
17397         (mapping_table): New structure.
17398         (output_simple_mapping): New function.
17399         (main): Invoke output_simple_mapping_test and output_simple_mapping.
17400         * modules/gen-uni-tables (Description): Update.
17401         * lib/unicase/toupper.h: New file, automatically generated by
17402         gen-uni-tables.
17403         * lib/unicase/tolower.h: New file, automatically generated by
17404         gen-uni-tables.
17405         * lib/unicase/totitle.h: New file, automatically generated by
17406         gen-uni-tables.
17407         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
17408         gen-uni-tables.
17409         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
17410         gen-uni-tables.
17411         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
17412         gen-uni-tables.
17413
17414         New module 'unicase/base'.
17415         * modules/unicase/base: New file.
17416         * lib/unicase.h: New file.
17417
17418 2009-02-08  Bruno Haible  <bruno@clisp.org>
17419
17420         New module 'uniwbrk/ulc-wordbreaks'.
17421         * modules/uniwbrk/ulc-wordbreaks: New file.
17422         * lib/uniwbrk/ulc-wordbreaks.c: New file.
17423
17424         New module 'uniwbrk/u32-wordbreaks'.
17425         * modules/uniwbrk/u32-wordbreaks: New file.
17426         * lib/uniwbrk/u32-wordbreaks.c: New file.
17427
17428         New module 'uniwbrk/u16-wordbreaks'.
17429         * modules/uniwbrk/u16-wordbreaks: New file.
17430         * lib/uniwbrk/u16-wordbreaks.c: New file.
17431
17432         New module 'uniwbrk/u8-wordbreaks'.
17433         * modules/uniwbrk/u8-wordbreaks: New file.
17434         * lib/uniwbrk/u8-wordbreaks.c: New file.
17435         * lib/uniwbrk/u-wordbreaks.h: New file.
17436
17437         New module 'uniwbrk/table'.
17438         * modules/uniwbrk/table: New file.
17439         * lib/uniwbrk/wbrktable.h: New file.
17440         * lib/uniwbrk/wbrktable.c: New file.
17441
17442         New module 'uniwbrk/wordbreak-property'.
17443         * modules/uniwbrk/wordbreak-property: New file.
17444         * lib/uniwbrk/wordbreak-property.c: New file.
17445
17446         * lib/gen-uni-tables.c (WBP_*): New enum items.
17447         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
17448         (unicode_org_wbp): New variable.
17449         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
17450         New functions.
17451         (wbp_table): New structure.
17452         (output_wbp, output_wbrk_tables): New functions.
17453         (main): Accept additional argument. Invoke fill_org_wbp,
17454         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
17455         output_wbrk_tables.
17456         * modules/gen-uni-tables (Description): Update.
17457         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
17458         gen-uni-tables.
17459
17460         New module 'uniwbrk/base'.
17461         * modules/uniwbrk/base: New file.
17462         * lib/uniwbrk.h: New file.
17463
17464 2009-02-08  Bruno Haible  <bruno@clisp.org>
17465
17466         Update to Unicode 5.1.0.
17467         * lib/gen-uni-tables.c (is_property_alphabetic): Include
17468         U+2185..U+2188.
17469         (is_property_default_ignorable_code_point): Don't include characters
17470         of category Cc or Cs and not-a-characters.
17471         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
17472         U+0D79, U+109E, U+109F, U+A60C.
17473         * lib/unictype/bidi_of.h: Regenerated.
17474         * lib/unictype/blocks.h: Regenerated.
17475         * lib/unictype/categ_C.h: Regenerated.
17476         * lib/unictype/categ_Cf.h: Regenerated.
17477         * lib/unictype/categ_Cn.h: Regenerated.
17478         * lib/unictype/categ_L.h: Regenerated.
17479         * lib/unictype/categ_Ll.h: Regenerated.
17480         * lib/unictype/categ_Lm.h: Regenerated.
17481         * lib/unictype/categ_Lo.h: Regenerated.
17482         * lib/unictype/categ_Lu.h: Regenerated.
17483         * lib/unictype/categ_M.h: Regenerated.
17484         * lib/unictype/categ_Mc.h: Regenerated.
17485         * lib/unictype/categ_Me.h: Regenerated.
17486         * lib/unictype/categ_Mn.h: Regenerated.
17487         * lib/unictype/categ_N.h: Regenerated.
17488         * lib/unictype/categ_Nd.h: Regenerated.
17489         * lib/unictype/categ_Nl.h: Regenerated.
17490         * lib/unictype/categ_No.h: Regenerated.
17491         * lib/unictype/categ_P.h: Regenerated.
17492         * lib/unictype/categ_Pd.h: Regenerated.
17493         * lib/unictype/categ_Pe.h: Regenerated.
17494         * lib/unictype/categ_Pf.h: Regenerated.
17495         * lib/unictype/categ_Pi.h: Regenerated.
17496         * lib/unictype/categ_Po.h: Regenerated.
17497         * lib/unictype/categ_Ps.h: Regenerated.
17498         * lib/unictype/categ_S.h: Regenerated.
17499         * lib/unictype/categ_Sk.h: Regenerated.
17500         * lib/unictype/categ_Sm.h: Regenerated.
17501         * lib/unictype/categ_So.h: Regenerated.
17502         * lib/unictype/categ_of.h: Regenerated.
17503         * lib/unictype/combining.h: Regenerated.
17504         * lib/unictype/ctype_alnum.h: Regenerated.
17505         * lib/unictype/ctype_alpha.h: Regenerated.
17506         * lib/unictype/ctype_graph.h: Regenerated.
17507         * lib/unictype/ctype_lower.h: Regenerated.
17508         * lib/unictype/ctype_print.h: Regenerated.
17509         * lib/unictype/ctype_punct.h: Regenerated.
17510         * lib/unictype/ctype_upper.h: Regenerated.
17511         * lib/unictype/decdigit.h: Regenerated.
17512         * lib/unictype/digit.h: Regenerated.
17513         * lib/unictype/mirror.h: Regenerated.
17514         * lib/unictype/numeric.h: Regenerated.
17515         * lib/unictype/pr_alphabetic.h: Regenerated.
17516         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
17517         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
17518         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
17519         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
17520         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
17521         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
17522         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
17523         * lib/unictype/pr_combining.h: Regenerated.
17524         * lib/unictype/pr_dash.h: Regenerated.
17525         * lib/unictype/pr_decimal_digit.h: Regenerated.
17526         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
17527         * lib/unictype/pr_deprecated.h: Regenerated.
17528         * lib/unictype/pr_diacritic.h: Regenerated.
17529         * lib/unictype/pr_extender.h: Regenerated.
17530         * lib/unictype/pr_format_control.h: Regenerated.
17531         * lib/unictype/pr_grapheme_base.h: Regenerated.
17532         * lib/unictype/pr_grapheme_extend.h: Regenerated.
17533         * lib/unictype/pr_grapheme_link.h: Regenerated.
17534         * lib/unictype/pr_id_continue.h: Regenerated.
17535         * lib/unictype/pr_id_start.h: Regenerated.
17536         * lib/unictype/pr_ideographic.h: Regenerated.
17537         * lib/unictype/pr_ignorable_control.h: Regenerated.
17538         * lib/unictype/pr_lowercase.h: Regenerated.
17539         * lib/unictype/pr_math.h: Regenerated.
17540         * lib/unictype/pr_numeric.h: Regenerated.
17541         * lib/unictype/pr_other_alphabetic.h: Regenerated.
17542         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
17543         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
17544         * lib/unictype/pr_other_id_continue.h: Regenerated.
17545         * lib/unictype/pr_other_lowercase.h: Regenerated.
17546         * lib/unictype/pr_other_math.h: Regenerated.
17547         * lib/unictype/pr_punctuation.h: Regenerated.
17548         * lib/unictype/pr_sentence_terminal.h: Regenerated.
17549         * lib/unictype/pr_soft_dotted.h: Regenerated.
17550         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
17551         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
17552         * lib/unictype/pr_unified_ideograph.h: Regenerated.
17553         * lib/unictype/pr_uppercase.h: Regenerated.
17554         * lib/unictype/pr_xid_continue.h: Regenerated.
17555         * lib/unictype/pr_xid_start.h: Regenerated.
17556         * lib/unictype/pr_zero_width.h: Regenerated.
17557         * lib/unictype/scripts.h: Regenerated.
17558         * lib/unictype/scripts_byname.gperf: Regenerated.
17559         * lib/unictype/sy_java_ident.h: Regenerated.
17560         * lib/unilbrk/lbrkprop1.h: Regenerated.
17561         * lib/unilbrk/lbrkprop2.h: Regenerated.
17562         * tests/unictype/test-categ_C.c: Regenerated.
17563         * tests/unictype/test-categ_Cf.c: Regenerated.
17564         * tests/unictype/test-categ_Cn.c: Regenerated.
17565         * tests/unictype/test-categ_L.c: Regenerated.
17566         * tests/unictype/test-categ_Ll.c: Regenerated.
17567         * tests/unictype/test-categ_Lm.c: Regenerated.
17568         * tests/unictype/test-categ_Lo.c: Regenerated.
17569         * tests/unictype/test-categ_Lu.c: Regenerated.
17570         * tests/unictype/test-categ_M.c: Regenerated.
17571         * tests/unictype/test-categ_Mc.c: Regenerated.
17572         * tests/unictype/test-categ_Me.c: Regenerated.
17573         * tests/unictype/test-categ_Mn.c: Regenerated.
17574         * tests/unictype/test-categ_N.c: Regenerated.
17575         * tests/unictype/test-categ_Nd.c: Regenerated.
17576         * tests/unictype/test-categ_Nl.c: Regenerated.
17577         * tests/unictype/test-categ_No.c: Regenerated.
17578         * tests/unictype/test-categ_P.c: Regenerated.
17579         * tests/unictype/test-categ_Pd.c: Regenerated.
17580         * tests/unictype/test-categ_Pe.c: Regenerated.
17581         * tests/unictype/test-categ_Pf.c: Regenerated.
17582         * tests/unictype/test-categ_Pi.c: Regenerated.
17583         * tests/unictype/test-categ_Po.c: Regenerated.
17584         * tests/unictype/test-categ_Ps.c: Regenerated.
17585         * tests/unictype/test-categ_S.c: Regenerated.
17586         * tests/unictype/test-categ_Sk.c: Regenerated.
17587         * tests/unictype/test-categ_Sm.c: Regenerated.
17588         * tests/unictype/test-categ_So.c: Regenerated.
17589         * tests/unictype/test-ctype_alnum.c: Regenerated.
17590         * tests/unictype/test-ctype_alpha.c: Regenerated.
17591         * tests/unictype/test-ctype_graph.c: Regenerated.
17592         * tests/unictype/test-ctype_lower.c: Regenerated.
17593         * tests/unictype/test-ctype_print.c: Regenerated.
17594         * tests/unictype/test-ctype_punct.c: Regenerated.
17595         * tests/unictype/test-ctype_upper.c: Regenerated.
17596         * tests/unictype/test-decdigit.h: Regenerated.
17597         * tests/unictype/test-digit.h: Regenerated.
17598         * tests/unictype/test-numeric.h: Regenerated.
17599         * tests/unictype/test-pr_alphabetic.c: Regenerated.
17600         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
17601         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
17602         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
17603         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
17604         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
17605         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
17606         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
17607         * tests/unictype/test-pr_combining.c: Regenerated.
17608         * tests/unictype/test-pr_dash.c: Regenerated.
17609         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
17610         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
17611         * tests/unictype/test-pr_deprecated.c: Regenerated.
17612         * tests/unictype/test-pr_diacritic.c: Regenerated.
17613         * tests/unictype/test-pr_extender.c: Regenerated.
17614         * tests/unictype/test-pr_format_control.c: Regenerated.
17615         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
17616         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
17617         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17618         * tests/unictype/test-pr_id_continue.c: Regenerated.
17619         * tests/unictype/test-pr_id_start.c: Regenerated.
17620         * tests/unictype/test-pr_ideographic.c: Regenerated.
17621         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17622         * tests/unictype/test-pr_lowercase.c: Regenerated.
17623         * tests/unictype/test-pr_math.c: Regenerated.
17624         * tests/unictype/test-pr_numeric.c: Regenerated.
17625         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17626         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17627         Regenerated.
17628         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17629         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17630         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17631         * tests/unictype/test-pr_other_math.c: Regenerated.
17632         * tests/unictype/test-pr_punctuation.c: Regenerated.
17633         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17634         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17635         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17636         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17637         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17638         * tests/unictype/test-pr_uppercase.c: Regenerated.
17639         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17640         * tests/unictype/test-pr_xid_start.c: Regenerated.
17641         * tests/unictype/test-pr_zero_width.c: Regenerated.
17642
17643         Update to Unicode 5.1.0.
17644         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17645         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17646         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17647         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17648         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17649         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17650         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17651         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17652         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17653         (nonspacing_table_ind): Update.
17654         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17655
17656         Update to Unicode 5.1.0.
17657         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17658         code transform.
17659         * lib/uniname/uniname.c (unicode_character_name,
17660         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17661         * lib/uniname/uninames.h: Regenerated.
17662         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17663
17664 2009-02-07  Bruno Haible  <bruno@clisp.org>
17665
17666         Merge gen-ctype and gen-lbrk into a single program.
17667         * lib/gen-uni-tables.c: New file, incorporating
17668         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17669         Add directory prefixes to the names of the generated files.
17670         * lib/unictype/gen-ctype.c: Remove file.
17671         * lib/unilbrk/gen-lbrk.c: Remove file.
17672         * modules/gen-uni-tables: New file.
17673         * modules/unictype/gen-ctype: Remove file.
17674         * modules/unilbrk/gen-lbrk: Remove file.
17675
17676 2009-02-07  Bruno Haible  <bruno@clisp.org>
17677
17678         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17679
17680         New module 'unistr/u32-strcoll'.
17681         * modules/unistr/u32-strcoll: New file.
17682         * lib/unistr/u32-strcoll.c: New file.
17683
17684         New module 'unistr/u16-strcoll'.
17685         * modules/unistr/u16-strcoll: New file.
17686         * lib/unistr/u16-strcoll.c: New file.
17687
17688         New module 'unistr/u8-strcoll'.
17689         * modules/unistr/u8-strcoll: New file.
17690         * lib/unistr/u8-strcoll.c: New file.
17691         * lib/unistr/u-strcoll.h: New file.
17692
17693 2009-02-07  Bruno Haible  <bruno@clisp.org>
17694
17695         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17696         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17697         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17698         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17699         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17700         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17701
17702 2009-02-07  Bruno Haible  <bruno@clisp.org>
17703
17704         Make 64-bit clean.
17705         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17706         output_combclass, output_bidi_category, output_decimal_digit,
17707         output_digit, output_numeric, output_mirror, output_scripts,
17708         output_ident_category): Use proper width specifier in format strings.
17709
17710 2009-02-07  Bruno Haible  <bruno@clisp.org>
17711
17712         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17713         failure behaviour.
17714
17715 2009-02-07  Jim Meyering  <meyering@redhat.com>
17716
17717         regex: avoid compilation failure with upcoming gcc-4.4
17718         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17719         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17720         "... error: integer overflow in preprocessor expression".
17721
17722 2009-02-05  Ben Pfaff  <blp@gnu.org>
17723
17724         Fix link errors on Windows when close module is used.
17725         * modules/close: Add $(LIB_CLOSE) to Link section.
17726         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17727         $(LIB_CLOSE) on Windows.
17728
17729 2009-02-05  Jim Meyering  <meyering@redhat.com>
17730
17731         still avoid unused-parameter warnings, but do it cleanly
17732         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17733         (get_fs_usage): Cast to void instead.
17734         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17735         (dev_from_mount_options, read_file_system_list): Cast to void.
17736         Prompted by Bruno Haible.
17737
17738 2009-02-04  Jim Meyering  <meyering@redhat.com>
17739
17740         fsusage.c: correct copyright year
17741         * lib/fsusage.c: Reflect year in which the change is pushed into
17742
17743         avoid misc. warnings
17744         * lib/fsusage.c (UNUSED_PARAM): Define.
17745         (get_fs_usage): Mark parameter "disk" as unused.
17746         * lib/getugroups.c (getgrent): Use "void" in prototype.
17747         * lib/mountlist.c: Mark unused parameters.
17748         (read_file_system_list): Declare a local with "const".
17749         * lib/nanosleep.c (getnow): Declare static.
17750         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17751
17752         dirfd: set errno upon failure
17753         * lib/dirfd.c: Include <errno.h>.
17754         Set errno to ENOTSUP when returning -1.
17755         * modules/dirfd (Depends-on): Add errno.
17756         Suggested by John Kodis <kodis@comcast.net>.
17757
17758 2009-02-01  Bruno Haible  <bruno@clisp.org>
17759
17760         Don't assume sizeof (long) >= sizeof (void *).
17761         * lib/memcmp.c: Include stdint.h.
17762         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17763         srcp2 to 'const byte *'.
17764         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17765         types to uintptr_t.
17766         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17767         * modules/memcmp (Depends-on): Add stdint.
17768         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17769
17770 2009-01-30  Eric Blake  <ebb9@byu.net>
17771
17772         fix more require-before-expand issues
17773         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17774         expand, AC_PROG_AWK.
17775         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17776
17777 2009-01-28  Eric Blake  <ebb9@byu.net>
17778
17779         version-etc: use consistent URL formatting
17780         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17781         Improve formatting.  Use fputs for string without %.
17782
17783 2009-01-28  Jim Meyering  <meyering@redhat.com>
17784
17785         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17786         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17787         "underquoted definition of NAME" from autoconf-2.59.
17788
17789 2009-01-28  Bruno Haible  <bruno@clisp.org>
17790
17791         * doc/gnulib.texi: Add "Obsolete modules" to index.
17792
17793 2009-01-28  Jim Meyering  <meyering@redhat.com>
17794
17795         useless-if-before-free: recognize more variants
17796         * build-aux/useless-if-before-free: Also recognize e.g.,
17797         if (NULL != p) free (p);
17798
17799 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17800
17801         test-getaddrinfo: skip (don't fail) this test when there's no network
17802         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17803         on the presumption that it means you lack network access.
17804
17805 2009-01-26  Jim Meyering  <meyering@redhat.com>
17806
17807         fflush: avoid warnings on modern systems
17808         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17809         pos and result, into scopes where they're used.
17810
17811 2009-01-26  Eric Blake  <ebb9@byu.net>
17812
17813         Silence warning reintroduced by recent extensions patch.
17814         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17815         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17816         autoconf.
17817
17818         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17819         * m4/00gnulib.m4: New file.
17820         * gnulib-tool (func_get_filelist): Always use it.
17821         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17822         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17823
17824 2009-01-25  Bruno Haible  <bruno@clisp.org>
17825
17826         Make test-quotearg work on MacOS X and AIX.
17827         * tests/test-quotearg.sh: New file.
17828         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17829         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17830         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17831         include <libintl.h>.
17832         (fake_locale): Remove variable.
17833         (gettext, dgettext, dcgettext): Remove functions.
17834         (main): Instead of setting a fake locale, set a real locale. Call
17835         textdomain and bindtextdomain.
17836         * modules/quotearg-tests (Files): Add the new files.
17837         (Depends-on): Add gettext, setenv, unsetenv.
17838         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17839         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17840         Augment TESTS_ENVIRONMENT.
17841
17842 2009-01-25  Bruno Haible  <bruno@clisp.org>
17843
17844         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17845         fr_FR.ISO8859-1 locale on MacOS X.
17846         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17847         ja_JP.eucJP locale on MacOS X.
17848         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17849         zh_CN.GB18030 locale on MacOS X.
17850
17851 2009-01-25  Bruno Haible  <bruno@clisp.org>
17852
17853         Avoid link errors on MacOS X 10.3.
17854         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17855         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17856
17857 2009-01-25  Bruno Haible  <bruno@clisp.org>
17858
17859         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17860         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17861         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17862         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17863         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17864         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17865         posix_spawnattr_init, posix_spawnattr_setsigmask,
17866         posix_spawnattr_setflags, posix_spawnattr_destroy.
17867
17868         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17869         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17870         * modules/execute (Files): Remove m4/posix_spawn.m4.
17871         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17872         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17873         posix_spawnattr_init, posix_spawnattr_setsigmask,
17874         posix_spawnattr_setflags, posix_spawnattr_destroy.
17875
17876 2009-01-25  Bruno Haible  <bruno@clisp.org>
17877
17878         * lib/glthread/threadlib.c: Include <stdlib.h>.
17879
17880 2009-01-25  Bruno Haible  <bruno@clisp.org>
17881
17882         * lib/glthread/threadlib.c (dummy): New declaration.
17883
17884 2009-01-25  Bruno Haible  <bruno@clisp.org>
17885
17886         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17887         multibyte characters also for the GB18030 encoding. Don't crash when
17888         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17889
17890 2009-01-25  Bruno Haible  <bruno@clisp.org>
17891
17892         Avoid redefining 'struct random_data' on OSF/1 5.1.
17893         * lib/stdlib.in.h: Include <random.h> if it exists.
17894         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17895         HAVE_RANDOM_H. Include <random.h> when testing whether
17896         'struct random_data' exists.
17897         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17898
17899 2009-01-25  Bruno Haible  <bruno@clisp.org>
17900
17901         Don't install charset.alias on MacOS X >= 10.3.
17902         * lib/localcharset.c (DARWIN7): New macro.
17903         (get_charset_aliases): Hardcode the result for Darwin7.
17904         * modules/localcharset (install-exec-local): Don't install
17905         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17906
17907 2009-01-25  Bruno Haible  <bruno@clisp.org>
17908
17909         Don't install charset.alias on mingw and Cygwin.
17910         * modules/localcharset (install-exec-local): Don't install
17911         charset.alias on mingw and Cygwin, if the file does not yet exist.
17912         The result for these platforms is hardcoded in localcharset.c.
17913
17914 2009-01-25  Bruno Haible  <bruno@clisp.org>
17915
17916         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17917         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17918         before requiring AC_USE_SYSTEM_EXTENSIONS.
17919
17920 2009-01-25  Jim Meyering  <meyering@redhat.com>
17921
17922         c-strtod: avoid warnings
17923         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17924         "assignment discards qualifiers from pointer target type" warnings.
17925
17926 2009-01-24  Bruno Haible  <bruno@clisp.org>
17927
17928         Add support for non-UTF-8 locales on MacOS X.
17929         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17930         canonical encodings. For Darwin 7 and newer, don't map traditional
17931         encodings to UTF-8.
17932         Reported by Vincent Lefevre <vincent@vinc17.org>
17933         at <http://savannah.gnu.org/bugs/?25235>.
17934
17935 2009-01-24  Bruno Haible  <bruno@clisp.org>
17936
17937         * doc/gnulib.texi (Obsolete modules): New section.
17938         Reported by Mike Frysinger <vapier@gentoo.org>.
17939
17940 2009-01-24  Bruno Haible  <bruno@clisp.org>
17941
17942         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17943         (%.dvi): New rule.
17944
17945 2009-01-24  Bruno Haible  <bruno@clisp.org>
17946
17947         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17948         Reported by Eric Blake.
17949
17950 2009-01-24  Bruno Haible  <bruno@clisp.org>
17951
17952         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17953         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17954         Reported by Gary V. Vaughan <gary@gnu.org>.
17955
17956 2009-01-24  Bruno Haible  <bruno@clisp.org>
17957
17958         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17959
17960 2009-01-23  Bruno Haible  <bruno@clisp.org>
17961
17962         Make c-strtod, c-strtold usable in libraries.
17963         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17964         (C_STRTOD): Call strdup instead of xstrdup.
17965         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17966         * modules/c-strtold (Depends-on): Likewise.
17967         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17968         * NEWS: Mention the change.
17969         Reported by Michael Gold <mgold@ncf.ca>.
17970
17971 2009-01-23  Jim Meyering  <meyering@redhat.com>
17972
17973         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17974         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17975         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17976
17977 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17978
17979         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17980         GNU CoreUtils.
17981         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17982         * modules/version-etc (Description): Update.
17983
17984 2009-01-22  Bruno Haible  <bruno@clisp.org>
17985
17986         Cache the C locale object.
17987         * lib/c-strtod.c (c_locale_cache): New variable.
17988         (c_locale): New function.
17989         (C_STRTOD): Use it, and don't call freelocale.
17990         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17991         Suggested by Paolo Bonzini.
17992
17993 2009-01-21  Bruno Haible  <bruno@clisp.org>
17994
17995         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17996         conditions other than overflow.
17997
17998 2009-01-21  Bruno Haible  <bruno@clisp.org>
17999
18000         * lib/c-strtod.c: Include errno.h.
18001         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
18002         value from STRTOD_L and STRTOD.
18003
18004 2009-01-21  Bruno Haible  <bruno@clisp.org>
18005         and Jim Meyering  <meyering@redhat.com>
18006
18007         nanosleep: skip configure test (fail it) for apple universal builds
18008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
18009         universal builds, assume that nanosleep does not work.
18010         * modules/nanosleep (Depends-on): Add multiarch.
18011
18012         mktime: skip configure test (fail it) for apple universal builds
18013         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
18014         universal builds, assume that mktime does not work.
18015         * modules/mktime (Depends-on): Add multiarch.
18016
18017 2009-01-21  Eric Blake  <ebb9@byu.net>
18018
18019         multiarch: avoid expand-before-require warning
18020         * modules/multiarch (configure.ac): Require, rather than expand,
18021         gl_MULTIARCH.
18022         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
18023         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
18024         enforce that all clients require it.  Partial reversion of
18025         2008-12-29 patch.
18026
18027         error: avoid expand-before-require warning
18028         * modules/errno (configure.ac): Require, rather than expand,
18029         gl_HEADER_ERRNO_H.
18030         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
18031         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
18032         enforce that all clients require it.
18033
18034         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
18035         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
18036         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
18037         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
18038
18039 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
18040
18041         Revert:
18042         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
18043
18044         regex: do not depend on obsolete modules.
18045         * modules/regex: Remove memcmp and memmove.
18046
18047 2009-01-20  Bruno Haible  <bruno@clisp.org>
18048
18049         Make the 'link' module link on Windows NT 4.
18050         * lib/link.c (_WIN32_WINNT): Don't define.
18051         (CreateHardLinkFuncType): New type.
18052         (CreateHardLinkFunc, initialized): New variables.
18053         (initialize): New function.
18054         (link): Invoke CreateHardLink indirectly through the function pointer.
18055
18056 2009-01-20  Bruno Haible  <bruno@clisp.org>
18057
18058         Fix compilation failure on mingw.
18059         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
18060
18061 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
18062
18063         * doc/c-strtod.texi: Mention a couple of restrictions.
18064
18065 2009-01-20  Jim Meyering  <meyering@redhat.com>
18066
18067         gettimeofday: move more declarations out of functions
18068         * lib/gettimeofday.c: Move extern declarations of tzset and
18069         gmtime out of containing functions.  Prompted by Bruno Haible.
18070
18071 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
18072
18073         regex: do not depend on obsolete modules.
18074         * modules/regex: Remove memcmp and memmove.
18075
18076 2009-01-19  Bruno Haible  <bruno@clisp.org>
18077
18078         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
18079         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
18080         gl_BIGENDIAN, not AC_C_BIGENDIAN.
18081         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
18082         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
18083
18084 2009-01-19  Bruno Haible  <bruno@clisp.org>
18085
18086         * tests/test-link.c: Include <errno.h>.
18087         (main): Exit with code 77 when a hard link cannot be created due to
18088         the file system.
18089         * tests/test-link.sh: Skip test when a hard link cannot be created due
18090         to the file system.
18091         Suggested by Eric Blake.
18092
18093 2009-01-19  Martin Lambers  <marlam@marlam.de>
18094
18095         * modules/link-tests: New file.
18096         * tests/test-link.sh: New file.
18097         * tests/test-link.c: New file.
18098
18099 2009-01-19  Eric Blake  <ebb9@byu.net>
18100
18101         doc: mention another function added in cygwin 1.7.0
18102         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
18103         Another new function in cygwin 1.7.
18104
18105 2009-01-19  Bruno Haible  <bruno@clisp.org>
18106
18107         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
18108         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
18109         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
18110         gl_BIGENDIAN, not AC_C_BIGENDIAN.
18111         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18112         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
18113         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18114         * m4/md4.m4 (gl_MD4): Likewise.
18115         * m4/md5.m4 (gl_MD5): Likewise.
18116         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
18117         * m4/sha1.m4 (gl_SHA1): Likewise.
18118         * m4/sha256.m4 (gl_SHA256): Likewise.
18119         * m4/sha512.m4 (gl_SHA512): Likewise.
18120
18121 2009-01-19  Bruno Haible  <bruno@clisp.org>
18122
18123         * modules/uniname/uniname-tests (Depends-on): Add progname.
18124         * tests/uniname/test-uninames.c: Include progname.h.
18125         (main): Call set_program_name.
18126
18127         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
18128         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
18129         (main): Call set_program_name.
18130
18131         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
18132         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
18133         (main): Call set_program_name.
18134
18135         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
18136         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
18137         (main): Call set_program_name.
18138
18139         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
18140         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
18141         (main): Call set_program_name.
18142
18143         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
18144         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
18145         (main): Call set_program_name.
18146
18147         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
18148         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
18149         (main): Call set_program_name.
18150
18151         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
18152         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
18153         (main): Call set_program_name.
18154
18155         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
18156         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
18157         (main): Call set_program_name.
18158
18159 2009-01-19  Eric Blake  <ebb9@byu.net>
18160
18161         test-unistd: test previous patch
18162         * tests/test-unistd.c: Test *_FILENO macros.
18163
18164         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
18165         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
18166         Guarantee a definition.
18167         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
18168         * modules/unistd-safer (Depends-on): Add dependency on unistd.
18169         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
18170         * lib/dup-safer.c (STDERR_FILENO): Likewise.
18171         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
18172         Likewise.
18173         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
18174         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
18175         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
18176         Likewise.
18177         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
18178         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
18179         (STDERR_FILENO): Likewise.
18180         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
18181         (STDERR_FILENO): Likewise.
18182         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
18183         (STDERR_FILENO): Likewise.
18184         Reported by Elbert Pol.
18185
18186 2009-01-19  Eric Blake  <ebb9@byu.net>
18187
18188         doc: mention more functions added in cygwin 1.7.0
18189         * doc/posix-functions/abort.texi (abort): Update wording related
18190         to cygwin.
18191         * doc/posix-functions/daylight.texi (daylight): Likewise.
18192         * doc/posix-functions/optarg.texi (optarg): Likewise.
18193         * doc/posix-functions/optarg.texi (opterr): Likewise.
18194         * doc/posix-functions/optarg.texi (optind): Likewise.
18195         * doc/posix-functions/optarg.texi (optopt): Likewise.
18196         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
18197         worked in 1.5.x, and was withdrawn in 1.7.
18198         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18199         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
18200         cygwin versions.
18201         * doc/posix-functions/perror.texi (perror): Likewise.
18202         * doc/posix-functions/printf.texi (printf): Likewise.
18203         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
18204         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
18205         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18206         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18207         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18208         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
18209         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
18210         Likewise.
18211         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
18212         Likewise.
18213         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
18214         this function.
18215         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
18216         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
18217         Likewise.
18218         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
18219         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
18220         * doc/posix-functions/confstr.texi (confstr): Likewise.
18221         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
18222         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
18223         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
18224         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
18225         * doc/posix-functions/fputws.texi (fputws): Likewise.
18226         * doc/posix-functions/fwide.texi (fwide): Likewise.
18227         * doc/posix-functions/getwc.texi (getwc): Likewise.
18228         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
18229         * doc/posix-functions/putwc.texi (putwc): Likewise.
18230         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18231         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
18232         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
18233         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18234         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
18235         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
18236         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
18237         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
18238         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
18239         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
18240         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
18241
18242 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
18243
18244         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
18245         * lib/ioctl.c: Include <sys/ioctl.h>.
18246
18247 2009-01-19  Simon Josefsson  <simon@josefsson.org>
18248
18249         * modules/getdate-tests (Depends-on): Add progname.
18250         * tests/test-getdate.c: Use progname module, to avoid link errors
18251         on non-glibc systems.
18252
18253 2009-01-18  Simon Josefsson  <simon@josefsson.org>
18254
18255         * modules/filenamecat-tests (Depends-on): Add progname.
18256         * modules/fstrcmp-tests (Depends-on): Likewise.
18257
18258         * tests/test-filenamecat.c: Use progname module, to avoid link
18259         errors on non-glibc systems.
18260         * tests/test-fstrcmp.c: Likewise.
18261
18262 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
18263
18264         gettimeofday: avoid warning: nested extern declaration of 'localtime'
18265         * lib/gettimeofday.c: Move extern declaration out of function.
18266
18267 2009-01-18  Bruno Haible  <bruno@clisp.org>
18268
18269         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
18270         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
18271         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
18272
18273 2009-01-18  Bruno Haible  <bruno@clisp.org>
18274
18275         * lib/strftime.c (MEMPCPY): Remove unused macro.
18276         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
18277
18278 2009-01-18  Martin Lambers  <marlam@marlam.de>
18279
18280         New module 'link'.
18281         * lib/unistd.in.h (link): New declaration.
18282         * lib/link.c: New file.
18283         * m4/link.m4: New file.
18284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
18285         HAVE_LINK.
18286         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
18287         * modules/link: New file.
18288         * doc/posix-functions/link.texi: Mention the new module.
18289
18290 2009-01-18  Bruno Haible  <bruno@clisp.org>
18291
18292         * tests/test-avltree_list.c (main): Call set_program_name.
18293         * tests/test-avltree_oset.c (main): Likewise.
18294         * tests/test-obstack-printf.c: Include progname.h.
18295         (main): Call set_program_name.
18296         * tests/test-quotearg.c: Include progname.h.
18297         (main): Call set_program_name.
18298         * tests/test-xmemdup0.c: Include progname.h.
18299         (main): Call set_program_name.
18300
18301 2009-01-18  Bruno Haible  <bruno@clisp.org>
18302
18303         New module 'alphasort'.
18304         * lib/dirent.in.h (alphasort): New declaration.
18305         * lib/alphasort.c: New file, from glibc with modifications.
18306         * m4/alphasort.m4: New file.
18307         * modules/alphasort: New file.
18308         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
18309         HAVE_ALPHASORT.
18310         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
18311         HAVE_ALPHASORT.
18312         * doc/posix-functions/alphasort.texi: Mention the new module and the
18313         portability problems.
18314
18315 2009-01-18  Bruno Haible  <bruno@clisp.org>
18316
18317         New module 'scandir'.
18318         * lib/dirent.in.h (scandir): New declaration.
18319         * lib/scandir.c: New file, from glibc with modifications.
18320         * m4/scandir.m4: New file.
18321         * modules/scandir: New file.
18322         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
18323         HAVE_SCANDIR.
18324         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
18325         HAVE_SCANDIR.
18326         * doc/posix-functions/scandir.texi: Mention the new module and the
18327         portability problems.
18328
18329 2009-01-17  Bruno Haible  <bruno@clisp.org>
18330
18331         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
18332         Update documentation.
18333         (func_remove_suffix): Escape all dots in the suffix. Update
18334         documentation.
18335         (func_filter_filelist): Update documentation.
18336         Reported by Ralf Wildenhues.
18337
18338 2009-01-17  Bruno Haible  <bruno@clisp.org>
18339
18340         * modules/dprintf-posix-tests: New file.
18341         * tests/test-dprintf-posix.sh: New file.
18342         * tests/test-dprintf-posix.c: New file.
18343
18344         New modules 'dprintf', 'dprintf-posix'.
18345         * lib/stdio.in.h (dprintf): New declaration.
18346         * lib/dprintf.c: New file.
18347         * m4/dprintf.m4: New file.
18348         * m4/dprintf-posix.m4: New file.
18349         * modules/dprintf: New file.
18350         * modules/dprintf-posix: New file.
18351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
18352         HAVE_DPRINTF, REPLACE_DPRINTF.
18353         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
18354         HAVE_DPRINTF, REPLACE_DPRINTF.
18355         * doc/posix-functions/dprintf.texi: Mention the new modules.
18356
18357 2009-01-17  Bruno Haible  <bruno@clisp.org>
18358
18359         * modules/vdprintf-posix-tests: New file.
18360         * tests/test-vdprintf-posix.sh: New file.
18361         * tests/test-vdprintf-posix.c: New file.
18362
18363         New modules 'vdprintf', 'vdprintf-posix'.
18364         * lib/stdio.in.h (vdprintf): New declaration.
18365         * lib/vdprintf.c: New file.
18366         * m4/vdprintf.m4: New file.
18367         * m4/vdprintf-posix.m4: New file.
18368         * modules/vdprintf: New file.
18369         * modules/vdprintf-posix: New file.
18370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
18371         HAVE_VDPRINTF, REPLACE_VDPRINTF.
18372         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
18373         HAVE_VDPRINTF, REPLACE_VDPRINTF.
18374         * doc/posix-functions/vdprintf.texi: Mention the new modules.
18375
18376 2009-01-17  Bruno Haible  <bruno@clisp.org>
18377
18378         Fix replacement of fopen on mingw.
18379         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
18380         mingw.
18381
18382 2009-01-17  Bruno Haible  <bruno@clisp.org>
18383
18384         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
18385         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
18386
18387 2009-01-17  Bruno Haible  <bruno@clisp.org>
18388
18389         Avoid test-fflush2.sh failure on mingw.
18390         * tests/test-fflush2.c: Include binary-io.h.
18391         (main): Put standard input into binary mode.
18392         * modules/fflush-tests (Depends-on): Add binary-io.
18393
18394 2009-01-17  Bruno Haible  <bruno@clisp.org>
18395
18396         * lib/wchar.in.h: In another particular situation, include only the
18397         system's <wchar.h> file.
18398         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
18399         Reported by Albert Chin-A-Young <china@thewrittenword.com>
18400         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
18401
18402 2009-01-17  Bruno Haible  <bruno@clisp.org>
18403
18404         Support for stripping executables in --enable-relocatable.
18405         * build-aux/install-reloc: Expect one more argument, or an environment
18406         variable RELOC_STRIP_PROG. If set, strip the destination program and
18407         its wrapper.
18408         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
18409         RELOC_STRIP_PROG.
18410         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
18411         to set RELOCATABLE_STRIP.
18412         * NEWS: Mention the new Makefile requirement.
18413
18414 2009-01-17  Bruno Haible  <bruno@clisp.org>
18415
18416         * build-aux/install-reloc: Remove debugging information left over by
18417         C compiler on MacOS X.
18418
18419 2009-01-17  Bruno Haible  <bruno@clisp.org>
18420
18421         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
18422         * lib/progreloc.c (find_executable): Fix type of pointer passed to
18423         _NSGetExecutablePath.
18424
18425 2009-01-16  Jim Meyering  <meyering@redhat.com>
18426
18427         strerror: avoid warnings about discarding "const"
18428         * lib/strerror.c (rpl_strerror): Instead of returning a const
18429         string from each and every "case", use a variable, and add a single
18430         cast after the switch.
18431
18432 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
18433
18434         * lib/arpa_inet.in.h: Add extern "C" block for C++.
18435
18436 2009-01-16  Bruno Haible  <bruno@clisp.org>
18437
18438         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
18439         array initializer syntax that also works in C++ mode.
18440         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18441
18442 2009-01-16  Jim Meyering  <meyering@redhat.com>
18443
18444         poll: suppress a warning
18445         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
18446         to ignore "...unsigned expression < 0 is always false" warnings.
18447
18448 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
18449
18450         poll: remove declarations of unused variables
18451         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
18452         sockbuf and optlen.
18453
18454 2009-01-15  Bruno Haible  <bruno@clisp.org>
18455
18456         Make fflush-after-ungetc POSIX compliant on BSD systems.
18457         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
18458         (clear_ungetc_buffer): Implement also for other systems.
18459         (rpl_fflush): On glibc systems, invoke
18460         clear_ungetc_buffer_preserving_position. Otherwise, invoke
18461         clear_ungetc_buffer after fetching the stream's position, not before.
18462
18463 2009-01-15  Bruno Haible  <bruno@clisp.org>
18464
18465         Make fflush-after-ungetc POSIX compliant on glibc systems.
18466         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
18467         after ungetc.
18468         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
18469         (rpl_fflush): On glibc systems, simply call the system's fflush
18470         function after clearing the ungetc buffer.
18471         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
18472         Instead, lseek only to the end of file, then use the system's fseeko
18473         for the rest. On glibc systems, reset the EOF indicator bit.
18474
18475 2009-01-15  Jim Meyering  <meyering@redhat.com>
18476
18477         openmp.m4: revert quote-adding change, for portability to older autoconf
18478         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
18479         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
18480         Simon Josefsson noticed the problem when using autoconf-2.61.
18481
18482 2009-01-15  Bruno Haible  <bruno@clisp.org>
18483
18484         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
18485         * tests/test-fflush2.c (ASSERT): Always fail.
18486         (main): Add two tests for fflush() after ungetc(), taking into account
18487         the Austin Group's clarification.
18488         Suggested by Eric Blake.
18489
18490 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
18491
18492         mktime.m4: remove K&R-style function prototypes
18493         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
18494         for the Sun C++ compiler.
18495
18496 2009-01-14  Bruno Haible  <bruno@clisp.org>
18497
18498         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
18499         while including <wchar.h>.
18500         * lib/wchar.in.h: In two particular situations on HP-UX, include only
18501         the system's <wchar.h> file.
18502         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18503
18504 2009-01-14  Bruno Haible  <bruno@clisp.org>
18505
18506         * m4/csharp.m4: Don't mention gettext on the serial number line.
18507         * m4/csharpexec.m4: Likewise.
18508         * m4/eaccess.m4: Likewise.
18509         * m4/javaexec.m4: Likewise.
18510         * m4/sig_atomic_t.m4: Likewise.
18511         * m4/tmpdir.m4: Likewise.
18512         * m4/intldir.m4: Bump gettext version.
18513         * m4/lib-ld.m4: Likewise.
18514
18515 2009-01-14  Bruno Haible  <bruno@clisp.org>
18516
18517         * lib/progname.c (set_program_name): Add more comments.
18518         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18519
18520 2009-01-14  Simon Josefsson  <simon@josefsson.org>
18521
18522         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
18523         were sys/stat.h does not define it.
18524
18525 2009-01-14  Jim Meyering  <meyering@redhat.com>
18526
18527         many *.m4 files: improve m4 quoting
18528         99% of this change was performed by running the following commands:
18529         git ls-files | grep '\.m4$' | xargs perl -pi \
18530           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
18531           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18532           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18533           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
18534         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
18535         The remainder were to add Copyright dates, increment serial numbers,
18536         undo some changes in comments, exclude m4/intl.m4, and add quotes
18537         around the "1" in ",1" where the unusual spacing prohibited the
18538         above regexps from doing the job.  For more details, see
18539         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
18540         * m4/acl.m4: Modified.
18541         * m4/afs.m4: Likewise.
18542         * m4/alloca.m4: Likewise.
18543         * m4/argp.m4: Likewise.
18544         * m4/argz.m4: Likewise.
18545         * m4/atexit.m4: Likewise.
18546         * m4/bison-i18n.m4: Likewise.
18547         * m4/bison.m4: Likewise.
18548         * m4/byteswap.m4: Likewise.
18549         * m4/c-stack.m4: Likewise.
18550         * m4/c-strtod.m4: Likewise.
18551         * m4/calloc.m4: Likewise.
18552         * m4/canonicalize-lgpl.m4: Likewise.
18553         * m4/chown.m4: Likewise.
18554         * m4/clock_time.m4: Likewise.
18555         * m4/codeset.m4: Likewise.
18556         * m4/copy-file.m4: Likewise.
18557         * m4/csharp.m4: Likewise.
18558         * m4/csharpcomp.m4: Likewise.
18559         * m4/csharpexec.m4: Likewise.
18560         * m4/d-ino.m4: Likewise.
18561         * m4/d-type.m4: Likewise.
18562         * m4/dirfd.m4: Likewise.
18563         * m4/double-slash-root.m4: Likewise.
18564         * m4/eaccess.m4: Likewise.
18565         * m4/eealloc.m4: Likewise.
18566         * m4/environ.m4: Likewise.
18567         * m4/errno_h.m4: Likewise.
18568         * m4/euidaccess.m4: Likewise.
18569         * m4/execute.m4: Likewise.
18570         * m4/fatal-signal.m4: Likewise.
18571         * m4/fchdir.m4: Likewise.
18572         * m4/fcntl_h.m4: Likewise.
18573         * m4/fileblocks.m4: Likewise.
18574         * m4/filenamecat.m4: Likewise.
18575         * m4/findprog.m4: Likewise.
18576         * m4/flexmember.m4: Likewise.
18577         * m4/fnmatch.m4: Likewise.
18578         * m4/fopen.m4: Likewise.
18579         * m4/fpending.m4: Likewise.
18580         * m4/fprintf-posix.m4: Likewise.
18581         * m4/free.m4: Likewise.
18582         * m4/frexp.m4: Likewise.
18583         * m4/frexpl.m4: Likewise.
18584         * m4/fsusage.m4: Likewise.
18585         * m4/ftruncate.m4: Likewise.
18586         * m4/gc-camellia.m4: Likewise.
18587         * m4/gc-random.m4: Likewise.
18588         * m4/gc.m4: Likewise.
18589         * m4/getaddrinfo.m4: Likewise.
18590         * m4/getcwd-abort-bug.m4: Likewise.
18591         * m4/getcwd-path-max.m4: Likewise.
18592         * m4/getdate.m4: Likewise.
18593         * m4/getdomainname.m4: Likewise.
18594         * m4/getgroups.m4: Likewise.
18595         * m4/gethostname.m4: Likewise.
18596         * m4/gethrxtime.m4: Likewise.
18597         * m4/getline.m4: Likewise.
18598         * m4/getloadavg.m4: Likewise.
18599         * m4/getndelim2.m4: Likewise.
18600         * m4/getpass.m4: Likewise.
18601         * m4/gettext.m4: Likewise.
18602         * m4/gettime.m4: Likewise.
18603         * m4/gettimeofday.m4: Likewise.
18604         * m4/gnulib-common.m4: Likewise.
18605         * m4/group-member.m4: Likewise.
18606         * m4/host-os.m4: Likewise.
18607         * m4/iconv.m4: Likewise.
18608         * m4/iconv_open.m4: Likewise.
18609         * m4/inet_ntop.m4: Likewise.
18610         * m4/inet_pton.m4: Likewise.
18611         * m4/inline.m4: Likewise.
18612         * m4/intldir.m4: Likewise.
18613         * m4/intlmacosx.m4: Likewise.
18614         * m4/intmax.m4: Likewise.
18615         * m4/intmax_t.m4: Likewise.
18616         * m4/inttypes.m4: Likewise.
18617         * m4/inttypes_h.m4: Likewise.
18618         * m4/inttypes-pri.m4: Likewise.
18619         * m4/isapipe.m4: Likewise.
18620         * m4/isnand.m4: Likewise.
18621         * m4/isnanf.m4: Likewise.
18622         * m4/isnanl.m4: Likewise.
18623         * m4/javacomp.m4: Likewise.
18624         * m4/javaexec.m4: Likewise.
18625         * m4/jm-winsz1.m4: Likewise.
18626         * m4/jm-winsz2.m4: Likewise.
18627         * m4/lchown.m4: Likewise.
18628         * m4/lcmessage.m4: Likewise.
18629         * m4/ldexpl.m4: Likewise.
18630         * m4/lib-ld.m4: Likewise.
18631         * m4/lib-link.m4: Likewise.
18632         * m4/libsigsegv.m4: Likewise.
18633         * m4/link-follow.m4: Likewise.
18634         * m4/localcharset.m4: Likewise.
18635         * m4/locale-fr.m4: Likewise.
18636         * m4/locale-ja.m4: Likewise.
18637         * m4/locale-tr.m4: Likewise.
18638         * m4/locale-zh.m4: Likewise.
18639         * m4/lock.m4: Likewise.
18640         * m4/longlong.m4: Likewise.
18641         * m4/ls-mntd-fs.m4: Likewise.
18642         * m4/lstat.m4: Likewise.
18643         * m4/malloc.m4: Likewise.
18644         * m4/mathl.m4: Likewise.
18645         * m4/mbrtowc.m4: Likewise.
18646         * m4/mbstate_t.m4: Likewise.
18647         * m4/mbswidth.m4: Likewise.
18648         * m4/memchr.m4: Likewise.
18649         * m4/memcmp.m4: Likewise.
18650         * m4/memcpy.m4: Likewise.
18651         * m4/memmem.m4: Likewise.
18652         * m4/memmove.m4: Likewise.
18653         * m4/mempcpy.m4: Likewise.
18654         * m4/memrchr.m4: Likewise.
18655         * m4/memset.m4: Likewise.
18656         * m4/minmax.m4: Likewise.
18657         * m4/mkdir-slash.m4: Likewise.
18658         * m4/mkdtemp.m4: Likewise.
18659         * m4/mktime.m4: Likewise.
18660         * m4/mmap-anon.m4: Likewise.
18661         * m4/mountlist.m4: Likewise.
18662         * m4/nanosleep.m4: Likewise.
18663         * m4/nls.m4: Likewise.
18664         * m4/nocrash.m4: Likewise.
18665         * m4/open.m4: Likewise.
18666         * m4/openat.m4: Likewise.
18667         * m4/openmp.m4: Likewise.
18668         * m4/pathmax.m4: Likewise.
18669         * m4/perl.m4: Likewise.
18670         * m4/physmem.m4: Likewise.
18671         * m4/pipe.m4: Likewise.
18672         * m4/po.m4: Likewise.
18673         * m4/poll.m4: Likewise.
18674         * m4/posixtm.m4: Likewise.
18675         * m4/posixver.m4: Likewise.
18676         * m4/printf-frexp.m4: Likewise.
18677         * m4/printf-frexpl.m4: Likewise.
18678         * m4/printf-posix.m4: Likewise.
18679         * m4/printf-posix-rpl.m4: Likewise.
18680         * m4/printf.m4: Likewise.
18681         * m4/progtest.m4: Likewise.
18682         * m4/putenv.m4: Likewise.
18683         * m4/readline.m4: Likewise.
18684         * m4/readlink.m4: Likewise.
18685         * m4/readutmp.m4: Likewise.
18686         * m4/realloc.m4: Likewise.
18687         * m4/regex.m4: Likewise.
18688         * m4/relocatable.m4: Likewise.
18689         * m4/relocatable-lib.m4: Likewise.
18690         * m4/rename-dest-slash.m4: Likewise.
18691         * m4/rename.m4: Likewise.
18692         * m4/rmdir-errno.m4: Likewise.
18693         * m4/rmdir.m4: Likewise.
18694         * m4/roundf.m4: Likewise.
18695         * m4/roundl.m4: Likewise.
18696         * m4/rpmatch.m4: Likewise.
18697         * m4/save-cwd.m4: Likewise.
18698         * m4/selinux-selinux-h.m4: Likewise.
18699         * m4/setenv.m4: Likewise.
18700         * m4/settime.m4: Likewise.
18701         * m4/sig2str.m4: Likewise.
18702         * m4/sig_atomic_t.m4: Likewise.
18703         * m4/signalblocking.m4: Likewise.
18704         * m4/signbit.m4: Likewise.
18705         * m4/sigpipe.m4: Likewise.
18706         * m4/sockets.m4: Likewise.
18707         * m4/sockpfaf.m4: Likewise.
18708         * m4/st_dm_mode.m4: Likewise.
18709         * m4/stat-time.m4: Likewise.
18710         * m4/stdbool.m4: Likewise.
18711         * m4/stdint.m4: Likewise.
18712         * m4/stdint_h.m4: Likewise.
18713         * m4/stpcpy.m4: Likewise.
18714         * m4/stpncpy.m4: Likewise.
18715         * m4/strcase.m4: Likewise.
18716         * m4/strchrnul.m4: Likewise.
18717         * m4/strcspn.m4: Likewise.
18718         * m4/strdup.m4: Likewise.
18719         * m4/strftime.m4: Likewise.
18720         * m4/strndup.m4: Likewise.
18721         * m4/strnlen.m4: Likewise.
18722         * m4/strpbrk.m4: Likewise.
18723         * m4/strptime.m4: Likewise.
18724         * m4/strsep.m4: Likewise.
18725         * m4/strtod.m4: Likewise.
18726         * m4/strtoimax.m4: Likewise.
18727         * m4/strtok_r.m4: Likewise.
18728         * m4/strtol.m4: Likewise.
18729         * m4/strtoll.m4: Likewise.
18730         * m4/strtoul.m4: Likewise.
18731         * m4/strtoull.m4: Likewise.
18732         * m4/strtoumax.m4: Likewise.
18733         * m4/strverscmp.m4: Likewise.
18734         * m4/threadlib.m4: Likewise.
18735         * m4/timegm.m4: Likewise.
18736         * m4/tm_gmtoff.m4: Likewise.
18737         * m4/tmpdir.m4: Likewise.
18738         * m4/tmpfile.m4: Likewise.
18739         * m4/tzset.m4: Likewise.
18740         * m4/uintmax_t.m4: Likewise.
18741         * m4/unlinkdir.m4: Likewise.
18742         * m4/unlocked-io.m4: Likewise.
18743         * m4/uptime.m4: Likewise.
18744         * m4/userspec.m4: Likewise.
18745         * m4/utimbuf.m4: Likewise.
18746         * m4/utime.m4: Likewise.
18747         * m4/utimes-null.m4: Likewise.
18748         * m4/utimes.m4: Likewise.
18749         * m4/vararrays.m4: Likewise.
18750         * m4/vasnprintf.m4: Likewise.
18751         * m4/vfprintf-posix.m4: Likewise.
18752         * m4/vprintf-posix.m4: Likewise.
18753         * m4/wait-process.m4: Likewise.
18754         * m4/wchar_t.m4: Likewise.
18755         * m4/wint_t.m4: Likewise.
18756         * m4/write-any-file.m4: Likewise.
18757         * m4/yield.m4: Likewise.
18758
18759 2009-01-13  Bruno Haible  <bruno@clisp.org>
18760
18761         Avoid test-copy-file.sh failures when ACL support insufficient.
18762         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18763         TESTS_ENVIRONMENT.
18764         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18765         Reported by Jim Meyering.
18766
18767 2009-01-13  Bruno Haible  <bruno@clisp.org>
18768
18769         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18770         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18771         * modules/unistdio/u8-printf-parse (Files): Likewise.
18772         * modules/unistdio/u32-printf-parse (Files): Likewise.
18773         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18774
18775 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18776
18777         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18778         and m4/inttypes_h.m4 too.
18779
18780 2009-01-12  Eric Blake  <ebb9@byu.net>
18781
18782         tests: IRIX 6.2 cc can't compile -0.0 into .data
18783         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18784         rather than at compile-time.
18785         * tests/test-floorl.c (minus_zero): Likewise.
18786         * tests/test-frexpl.c (minus_zero): Likewise.
18787         * tests/test-isnan.c (minus_zerol): Likewise.
18788         * tests/test-isnanl.h (minus_zero): Likewise.
18789         * tests/test-ldexpl.c (minus_zero): Likewise.
18790         * tests/test-roundl.c (minus_zero): Likewise.
18791         * tests/test-signbit.c (minus_zerol): Likewise.
18792         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18793         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18794         * tests/test-truncl.c (minus_zero): Likewise.
18795         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18796         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18797         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18798
18799 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18800
18801         regex: fix glibc bug 9697
18802         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18803         handling.
18804
18805 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18806
18807         regex: fix glibc bug 697
18808         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18809         being NULL also if there are no backreferences.
18810
18811 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18812
18813         regex: merge glibc changes
18814         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18815         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18816         re_string_skip_chars, re_string_reconstruct): Likewise.
18817         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18818
18819 2009-01-07  Jim Meyering  <meyering@redhat.com>
18820
18821         poll: filter through cppi
18822         * lib/poll.c: Indent cpp directives to reflect nesting.
18823
18824 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18825
18826         poll: don't return uninitialized
18827         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18828
18829 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18830
18831         avoid compile failure on AIX 6.1
18832         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18833         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18834
18835 2009-01-04  Jim Meyering  <meyering@redhat.com>
18836
18837         remove duplicate inclusion of <stdio.h>
18838         * tests/test-fprintf-posix.c: Likewise.
18839         * tests/test-printf-posix.c: Likewise.
18840         * tests/test-snprintf-posix.c: Likewise.
18841         * tests/test-sprintf-posix.c: Likewise.
18842         * tests/test-vasprintf-posix.c: Likewise.
18843         * tests/test-vfprintf-posix.c: Likewise.
18844         * tests/test-vprintf-posix.c: Likewise.
18845         * tests/test-vsnprintf-posix.c: Likewise.
18846         * tests/test-vsprintf-posix.c: Likewise.
18847
18848 2009-01-03  Jim Meyering  <meyering@redhat.com>
18849
18850         gnulib-tool: fix sed-based filtering
18851         * gnulib-tool (func_filter_filelist): Remove extra backslash
18852         in sed_fff_filter definition.
18853
18854 2009-01-02  Jim Meyering  <meyering@redhat.com>
18855
18856         strftime: avoid compilation failure on Solaris 2.6
18857         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18858         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18859         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18860         be available.  Reported by Tom G. Christensen.  Details in
18861         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18862
18863 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18864             Bruno Haible  <bruno@clisp.org>
18865
18866         Speed up gnulib-tool by doing more string processing through shell
18867         built-ins.
18868         * gnulib-tool (fast_func_append): New variable.
18869         (func_remove_prefix, func_remove_suffix): New functions.
18870         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18871         (func_filter_filelist): New function.
18872         (func_get_dependencies): Use func_remove_suffix instead of sed.
18873         (func_get_automake_snippet): Use func_filter_filelist instead of a
18874         subshell and sed invocation.
18875
18876 2009-01-01  Bruno Haible  <bruno@clisp.org>
18877
18878         Fix a security bug.
18879         * gnulib-tool (func_import, import, update): Don't allow the characters
18880         '"', '$', '`', '\' in macro arguments that become part of commands that
18881         are evaluated.
18882
18883 2009-01-01  Bruno Haible  <bruno@clisp.org>
18884
18885         * gnulib-tool (func_reset_sigpipe): Add more comments.
18886
18887 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18888
18889         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18890         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18891         already know the answer.
18892
18893 2009-01-01  Jim Meyering  <meyering@redhat.com>
18894
18895         * lib/version-etc.c (version_etc_va): Update copyright year.
18896
18897 2008-12-30  Bruno Haible  <bruno@clisp.org>
18898
18899         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18900         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18901         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18902
18903 2008-12-29  Eric Blake  <ebb9@byu.net>
18904
18905         multiarch: avoid autoconf AC_REQUIRE bug
18906         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18907         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18908         2.63 and older.
18909         Reported by Bruno Haible, and analyzed in
18910         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18911
18912 2008-12-29  Bruno Haible  <bruno@clisp.org>
18913
18914         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18915         files in subdirectories correctly.
18916         Reported by Ralf Wildenhues.
18917
18918 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18919
18920         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18921         rather than 'join FILE -', for Solaris join.
18922
18923 2008-12-29  Bruno Haible  <bruno@clisp.org>
18924
18925         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18926         quoting.
18927         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18928         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18929         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18930         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18931         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18932         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18933         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18934         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18935         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18936         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18937         * m4/nls.m4 (AM_NLS): Likewise.
18938         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18939         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18940         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18941         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18942         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18943         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18944         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18945         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18946         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18947         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18948         * m4/xsize.m4 (gl_XSIZE): Likewise.
18949         Suggested by Jim Meyering.
18950
18951 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18952
18953         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18954         * lib/parse-duration.c: use a switch instead of cascading if's.
18955
18956 2008-12-29  Eric Blake  <ebb9@byu.net>
18957
18958         wchar.h: supply WEOF on Irix 5.3
18959         * lib/wchar.in.h (wint_t): Also supply WEOF.
18960         * lib/wctype.in.h (wint_t): Likewise.
18961         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18962         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18963         Reported by Tom G. Christensen.
18964
18965 2008-12-26  Bruno Haible  <bruno@clisp.org>
18966
18967         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18968         i486, i586, i686.
18969
18970 2008-12-26  Bruno Haible  <bruno@clisp.org>
18971
18972         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18973
18974 2008-12-26  Bruno Haible  <bruno@clisp.org>
18975
18976         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18977         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18978         not __STDC_CONSTANT_MACROS.
18979         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18980
18981 2008-12-25  Bruno Haible  <bruno@clisp.org>
18982
18983         Add support for universal builds to vasnprintf.
18984         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18985         universal builds, guess no.
18986         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18987         * modules/vasprintf-posix (Depends-on): Likewise.
18988         * modules/fprintf-posix (Depends-on): Likewise.
18989         * modules/vfprintf-posix (Depends-on): Likewise.
18990         * modules/snprintf-posix (Depends-on): Likewise.
18991         * modules/vsnprintf-posix (Depends-on): Likewise.
18992         * modules/sprintf-posix (Depends-on): Likewise.
18993         * modules/vsprintf-posix (Depends-on): Likewise.
18994         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18995         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18996         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18997         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18998         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18999         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19000         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19001
19002         Add support for universal builds to <inttypes.h>.
19003         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
19004         _SCNu64_PREFIX): In Apple
19005         universal builds, define directly, using _LP64.
19006         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
19007         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
19008         * modules/inttypes (Depends-on): Add multiarch.
19009         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
19010
19011         Add support for universal builds to <stdint.h>.
19012         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
19013         universal builds, define directly, using _LP64.
19014         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
19015         Apple universal builds, don't test for the size and suffix of ptrdiff_t
19016         and size_t.
19017         * modules/stdint (Depends-on): Add multiarch.
19018         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
19019
19020         New module 'multiarch'.
19021         * modules/multiarch: New file.
19022         * m4/multiarch.m4: New file.
19023
19024 2008-12-25  Bruno Haible  <bruno@clisp.org>
19025
19026         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
19027
19028 2008-12-25  Bruno Haible  <bruno@clisp.org>
19029
19030         * modules/btowc (License): Relicense under LGPLv2+.
19031         * modules/mbsinit (License): Likewise.
19032         * modules/mbrtowc (License): Likewise.
19033         * modules/wcrtomb (License): Likewise.
19034         * modules/streq (License): Likewise.
19035         Reported by David Lutterkort <lutter@redhat.com>.
19036
19037 2008-12-23  Bruno Haible  <bruno@clisp.org>
19038
19039         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
19040
19041 2008-12-23  Bruno Haible  <bruno@clisp.org>
19042
19043         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
19044         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
19045         GETADDRINFO_LIB, not in LIBS.
19046         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
19047         * modules/canon-host (Link): Likewise.
19048         * NEWS: Mention the change.
19049         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
19050         GETADDRINFO_LIB.
19051
19052 2008-12-22  Bruno Haible  <bruno@clisp.org>
19053
19054         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
19055         * doc/posix-functions/iswalpha_l.texi: Likewise.
19056         * doc/posix-functions/iswblank_l.texi: Likewise.
19057         * doc/posix-functions/iswcntrl_l.texi: Likewise.
19058         * doc/posix-functions/iswctype_l.texi: Likewise.
19059         * doc/posix-functions/iswdigit_l.texi: Likewise.
19060         * doc/posix-functions/iswgraph_l.texi: Likewise.
19061         * doc/posix-functions/iswlower_l.texi: Likewise.
19062         * doc/posix-functions/iswprint_l.texi: Likewise.
19063         * doc/posix-functions/iswpunct_l.texi: Likewise.
19064         * doc/posix-functions/iswspace_l.texi: Likewise.
19065         * doc/posix-functions/iswupper_l.texi: Likewise.
19066         * doc/posix-functions/iswxdigit_l.texi: Likewise.
19067         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
19068         * doc/posix-functions/open_wmemstream.texi: Likewise.
19069         * doc/posix-functions/swscanf.texi: Likewise.
19070         * doc/posix-functions/towctrans_l.texi: Likewise.
19071         * doc/posix-functions/towlower.texi: Likewise.
19072         * doc/posix-functions/towlower_l.texi: Likewise.
19073         * doc/posix-functions/towupper.texi: Likewise.
19074         * doc/posix-functions/towupper_l.texi: Likewise.
19075         * doc/posix-functions/vfwprintf.texi: Likewise.
19076         * doc/posix-functions/vfwscanf.texi: Likewise.
19077         * doc/posix-functions/vswscanf.texi: Likewise.
19078         * doc/posix-functions/vwprintf.texi: Likewise.
19079         * doc/posix-functions/vwscanf.texi: Likewise.
19080         * doc/posix-functions/wcpcpy.texi: Likewise.
19081         * doc/posix-functions/wcpncpy.texi: Likewise.
19082         * doc/posix-functions/wcscasecmp.texi: Likewise.
19083         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
19084         * doc/posix-functions/wcscoll_l.texi: Likewise.
19085         * doc/posix-functions/wcsdup.texi: Likewise.
19086         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19087         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
19088         * doc/posix-functions/wcsnlen.texi: Likewise.
19089         * doc/posix-functions/wcsnrtombs.texi: Likewise.
19090         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
19091         * doc/posix-functions/wctrans_l.texi: Likewise.
19092         * doc/posix-functions/wctype_l.texi: Likewise.
19093         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
19094         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
19095         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
19096         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
19097         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
19098         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
19099         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
19100         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
19101         * doc/glibc-functions/wcschrnul.texi: Likewise.
19102         * doc/glibc-functions/wcsftime_l.texi: Likewise.
19103         * doc/glibc-functions/wcstod_l.texi: Likewise.
19104         * doc/glibc-functions/wcstof_l.texi: Likewise.
19105         * doc/glibc-functions/wcstol_l.texi: Likewise.
19106         * doc/glibc-functions/wcstold_l.texi: Likewise.
19107         * doc/glibc-functions/wcstoll_l.texi: Likewise.
19108         * doc/glibc-functions/wcstoq.texi: Likewise.
19109         * doc/glibc-functions/wcstoul_l.texi: Likewise.
19110         * doc/glibc-functions/wcstoull_l.texi: Likewise.
19111         * doc/glibc-functions/wcstouq.texi: Likewise.
19112         * doc/glibc-functions/wmempcpy.texi: Likewise.
19113
19114 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
19115             Eric Blake  <ebb9@byu.net>
19116             Paolo Bonzini  <bonzini@gnu.org>
19117             Bruno Haible  <bruno@clisp.org>
19118
19119         Make c-stack work on Haiku.
19120         * lib/c-stack.c (SA_ONSTACK): Define fallback.
19121         (c_stack_action): Use SA_ONSTACK flag.
19122
19123 2008-12-22  Bruno Haible  <bruno@clisp.org>
19124
19125         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
19126
19127 2008-12-22  Bruno Haible  <bruno@clisp.org>
19128
19129         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
19130         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
19131         being overridden.
19132         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
19133         New macros.
19134         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
19135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
19136         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
19137         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
19138
19139 2008-12-22  Bruno Haible  <bruno@clisp.org>
19140
19141         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
19142         from test code.
19143
19144 2008-12-22  Eric Blake  <ebb9@byu.net>
19145
19146         Avoid gcc warnings on cygwin.
19147         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19148         Avoid unused variable.
19149         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19150         Likewise.
19151
19152 2008-12-22  Bruno Haible  <bruno@clisp.org>
19153
19154         Remove HAVE_MBRTOWC conditionals.
19155         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
19156         (mbscasecmp): Assume mbrtowc function.
19157         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
19158         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
19159         * lib/mbschr.c: Include mbuiter.h unconditionally.
19160         (mbschr): Assume mbrtowc function.
19161         * lib/mbscspn.c: Include mbuiter.h unconditionally.
19162         (mbscspn): Assume mbrtowc function.
19163         * lib/mbslen.c: Include mbuiter.h unconditionally.
19164         (mbslen): Assume mbrtowc function.
19165         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
19166         (mbsncasecmp): Assume mbrtowc function.
19167         * lib/mbsnlen.c: Include mbiter.h unconditionally.
19168         (mbsnlen): Assume mbrtowc function.
19169         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
19170         (mbspbrk): Assume mbrtowc function.
19171         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
19172         (mbspcasecmp): Assume mbrtowc function.
19173         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
19174         (mbsrchr): Assume mbrtowc function.
19175         * lib/mbssep.c: Include mbuiter.h unconditionally.
19176         (mbssep): Assume mbrtowc function.
19177         * lib/mbsspn.c: Include mbuiter.h unconditionally.
19178         (mbsspn): Assume mbrtowc function.
19179         * lib/mbsstr.c: Include mbuiter.h unconditionally.
19180         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
19181         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
19182         (mbstok_r): Assume mbrtowc function.
19183         * lib/propername.c: Include mbuiter.h unconditionally.
19184         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
19185         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
19186         (trim2): Assume mbrtowc function.
19187         * lib/mbswidth.c (mbsinit): Remove fallback definition.
19188         (mbsnwidth): Assume mbrtowc function.
19189         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
19190         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
19191         fallback definitions.
19192         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
19193
19194 2008-12-22  Bruno Haible  <bruno@clisp.org>
19195
19196         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
19197
19198 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
19199
19200         * modules/regex: Request emulations for the mb*/wc* functions we need.
19201         * m4/regex.m4: Don't look for those functions here.
19202         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
19203
19204 2008-12-22  Bruno Haible  <bruno@clisp.org>
19205
19206         * modules/fnmatch (Depends-on): Remove duplicated dependency.
19207
19208 2008-12-21  Bruno Haible  <bruno@clisp.org>
19209
19210         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
19211         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
19212         (Include): Remove conditionalization.
19213         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
19214         (Include): Remove conditionalization.
19215         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
19216         (Include): Remove conditionalization.
19217         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
19218         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19219         * NEWS: Mention the change.
19220         Reported by Alan Hourihane <alanh@fairlite.co.uk>
19221         via Sergey Poznyakoff <gray@gnu.org.ua>.
19222
19223 2008-12-21  Bruno Haible  <bruno@clisp.org>
19224
19225         * MODULES.html.sh (Extended multibyte and wide character utilities
19226         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
19227         wcrtomb, wcsrtombs.
19228         (Support for systems lacking POSIX:2008): Add accept, bind, close,
19229         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
19230         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
19231         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
19232
19233 2008-12-21  Bruno Haible  <bruno@clisp.org>
19234
19235         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
19236
19237 2008-12-21  Bruno Haible  <bruno@clisp.org>
19238
19239         * modules/wcsnrtombs-tests: New file.
19240         * tests/test-wcsnrtombs1.sh: New file.
19241         * tests/test-wcsnrtombs2.sh: New file.
19242         * tests/test-wcsnrtombs3.sh: New file.
19243         * tests/test-wcsnrtombs4.sh: New file.
19244         * tests/test-wcsnrtombs.c: New file.
19245
19246         New module 'wcsnrtombs'.
19247         * lib/wchar.in.h (wcsnrtombs): New declaration.
19248         * lib/wcsnrtombs.c: New file.
19249         * lib/wcsrtombs-state.c: New file.
19250         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
19251         (internal_state): Remove variable.
19252         * m4/wcsnrtombs.m4: New file.
19253         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
19254         compilation units.
19255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
19256         HAVE_WCSNRTOMBS.
19257         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
19258         HAVE_WCSNRTOMBS.
19259         * modules/wcsnrtombs: New file.
19260         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
19261         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
19262
19263 2008-12-21  Bruno Haible  <bruno@clisp.org>
19264
19265         * modules/wcsrtombs-tests: New file.
19266         * tests/test-wcsrtombs1.sh: New file.
19267         * tests/test-wcsrtombs2.sh: New file.
19268         * tests/test-wcsrtombs3.sh: New file.
19269         * tests/test-wcsrtombs4.sh: New file.
19270         * tests/test-wcsrtombs.c: New file.
19271
19272         New module 'wcsrtombs'.
19273         * lib/wchar.in.h (wcsrtombs): New declaration.
19274         * lib/wcsrtombs.c: New file.
19275         * m4/wcsrtombs.m4: New file.
19276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
19277         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
19278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
19279         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
19280         * modules/wcsrtombs: New file.
19281         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
19282         bugs.
19283
19284 2008-12-21  Bruno Haible  <bruno@clisp.org>
19285
19286         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
19287         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
19288         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
19289         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
19290         if not correct.
19291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
19292         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
19293         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19294         m4/locale-zh.m4, m4/codeset.m4.
19295         * doc/posix-functions/wcrtomb.texi: Document the bug.
19296
19297 2008-12-21  Bruno Haible  <bruno@clisp.org>
19298
19299         Work around a btowc() bug on IRIX 6.5.
19300         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
19301         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
19302         REPLACE_WTOBC if not.
19303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
19304         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
19305         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
19306
19307 2008-12-21  Bruno Haible  <bruno@clisp.org>
19308
19309         * modules/wcrtomb-tests: New file.
19310         * tests/test-wcrtomb.sh: New file.
19311         * tests/test-wcrtomb.c: New file.
19312
19313         New module 'wcrtomb'.
19314         * lib/wchar.in.h (wcrtomb): New declaration.
19315         * lib/wcrtomb.c: New file.
19316         * m4/wcrtomb.m4: New file.
19317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
19318         HAVE_WCRTOMB.
19319         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
19320         HAVE_WCRTOMB.
19321         * modules/wcrtomb: New file.
19322         * doc/posix-functions/wcrtomb.texi: Mention the new module.
19323
19324 2008-12-21  Bruno Haible  <bruno@clisp.org>
19325
19326         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
19327         * modules/mbsrtowcs (Files): Likewise.
19328         * modules/wctob (Files): Likewise.
19329         * modules/c-strcase-tests (Files): Likewise.
19330         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19331         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19332         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19333         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19334         * modules/vasnprintf-posix-tests (Files): Likewise.
19335
19336 2008-12-21  William Pursell  <bill.pursell@gmail.com>
19337
19338         gitlog-to-changelog: pass all command-line arguments to git-log
19339         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
19340         it is sometimes convenient to filter the commits in various ways.
19341         gitlog-to-changelog only allows --since to specify a start date,
19342         but git-log itself supports many other filtering mechanisms.
19343         At the moment, I want to filter by branch name.  Rather than
19344         adding a --branch option to gitlog-to-changelog, it seems more
19345         flexible to simply pass all options directly to git-log and let
19346         git do the work.  Notice that this effectively makes --since a
19347         redundant option for gitlog-to-changelog, but removing it would
19348         require current usage to change since calls would then require
19349         an additional '--'.
19350
19351 2008-12-21  Bruno Haible  <bruno@clisp.org>
19352
19353         * modules/mbsnrtowcs-tests: New file.
19354         * tests/test-mbsnrtowcs1.sh: New file.
19355         * tests/test-mbsnrtowcs2.sh: New file.
19356         * tests/test-mbsnrtowcs3.sh: New file.
19357         * tests/test-mbsnrtowcs4.sh: New file.
19358         * tests/test-mbsnrtowcs.c: New file.
19359
19360         New module 'mbsnrtowcs'.
19361         * lib/wchar.in.h (mbsnrtowcs): New declaration.
19362         * lib/mbsnrtowcs.c: New file.
19363         * lib/mbsrtowcs-state.c: New file.
19364         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
19365         (internal_state): Remove variable.
19366         * m4/mbsnrtowcs.m4: New file.
19367         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
19368         compilation units.
19369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
19370         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
19371         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
19372         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
19373         * modules/mbsnrtowcs: New file.
19374         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
19375         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
19376         portability problem.
19377
19378 2008-12-21  Bruno Haible  <bruno@clisp.org>
19379
19380         Work around mbsrtowcs bug.
19381         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
19382         (gl_FUNC_MBSRTOWCS): Invoke it.
19383         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19384         m4/locale-zh.m4.
19385         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
19386
19387 2008-12-21  Bruno Haible  <bruno@clisp.org>
19388
19389         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
19390
19391 2008-12-21  Bruno Haible  <bruno@clisp.org>
19392
19393         Update doc for AIX.
19394         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
19395         16-bit wchar_t type.
19396         * doc/posix-functions/btowc.texi: Likewise.
19397         * doc/posix-functions/fgetwc.texi: Likewise.
19398         * doc/posix-functions/fgetws.texi: Likewise.
19399         * doc/posix-functions/fputwc.texi: Likewise.
19400         * doc/posix-functions/fputws.texi: Likewise.
19401         * doc/posix-functions/fwide.texi: Likewise.
19402         * doc/posix-functions/fwprintf.texi: Likewise.
19403         * doc/posix-functions/fwscanf.texi: Likewise.
19404         * doc/posix-functions/getwchar.texi: Likewise.
19405         * doc/posix-functions/getwc.texi: Likewise.
19406         * doc/posix-functions/iswalnum.texi: Likewise.
19407         * doc/posix-functions/iswalpha.texi: Likewise.
19408         * doc/posix-functions/iswblank.texi: Likewise.
19409         * doc/posix-functions/iswcntrl.texi: Likewise.
19410         * doc/posix-functions/iswctype.texi: Likewise.
19411         * doc/posix-functions/iswdigit.texi: Likewise.
19412         * doc/posix-functions/iswgraph.texi: Likewise.
19413         * doc/posix-functions/iswlower.texi: Likewise.
19414         * doc/posix-functions/iswprint.texi: Likewise.
19415         * doc/posix-functions/iswpunct.texi: Likewise.
19416         * doc/posix-functions/iswspace.texi: Likewise.
19417         * doc/posix-functions/iswupper.texi: Likewise.
19418         * doc/posix-functions/iswxdigit.texi: Likewise.
19419         * doc/posix-functions/mbrtowc.texi: Likewise.
19420         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19421         * doc/posix-functions/mbstowcs.texi: Likewise.
19422         * doc/posix-functions/mbtowc.texi: Likewise.
19423         * doc/posix-functions/putwchar.texi: Likewise.
19424         * doc/posix-functions/putwc.texi: Likewise.
19425         * doc/posix-functions/swprintf.texi: Likewise.
19426         * doc/posix-functions/tolower.texi: Likewise.
19427         * doc/posix-functions/toupper.texi: Likewise.
19428         * doc/posix-functions/towctrans.texi: Likewise.
19429         * doc/posix-functions/ungetwc.texi: Likewise.
19430         * doc/posix-functions/vswprintf.texi: Likewise.
19431         * doc/posix-functions/wcrtomb.texi: Likewise.
19432         * doc/posix-functions/wcscat.texi: Likewise.
19433         * doc/posix-functions/wcschr.texi: Likewise.
19434         * doc/posix-functions/wcscmp.texi: Likewise.
19435         * doc/posix-functions/wcscoll.texi: Likewise.
19436         * doc/posix-functions/wcscpy.texi: Likewise.
19437         * doc/posix-functions/wcscspn.texi: Likewise.
19438         * doc/posix-functions/wcsftime.texi: Likewise.
19439         * doc/posix-functions/wcslen.texi: Likewise.
19440         * doc/posix-functions/wcsncat.texi: Likewise.
19441         * doc/posix-functions/wcsncmp.texi: Likewise.
19442         * doc/posix-functions/wcsncpy.texi: Likewise.
19443         * doc/posix-functions/wcspbrk.texi: Likewise.
19444         * doc/posix-functions/wcsrchr.texi: Likewise.
19445         * doc/posix-functions/wcsrtombs.texi: Likewise.
19446         * doc/posix-functions/wcsspn.texi: Likewise.
19447         * doc/posix-functions/wcsstr.texi: Likewise.
19448         * doc/posix-functions/wcstod.texi: Likewise.
19449         * doc/posix-functions/wcstof.texi: Likewise.
19450         * doc/posix-functions/wcstoimax.texi: Likewise.
19451         * doc/posix-functions/wcstok.texi: Likewise.
19452         * doc/posix-functions/wcstold.texi: Likewise.
19453         * doc/posix-functions/wcstoll.texi: Likewise.
19454         * doc/posix-functions/wcstol.texi: Likewise.
19455         * doc/posix-functions/wcstombs.texi: Likewise.
19456         * doc/posix-functions/wcstoull.texi: Likewise.
19457         * doc/posix-functions/wcstoul.texi: Likewise.
19458         * doc/posix-functions/wcstoumax.texi: Likewise.
19459         * doc/posix-functions/wcswidth.texi: Likewise.
19460         * doc/posix-functions/wcsxfrm.texi: Likewise.
19461         * doc/posix-functions/wctob.texi: Likewise.
19462         * doc/posix-functions/wctomb.texi: Likewise.
19463         * doc/posix-functions/wctrans.texi: Likewise.
19464         * doc/posix-functions/wctype.texi: Likewise.
19465         * doc/posix-functions/wcwidth.texi: Likewise.
19466         * doc/posix-functions/wmemchr.texi: Likewise.
19467         * doc/posix-functions/wmemcmp.texi: Likewise.
19468         * doc/posix-functions/wmemcpy.texi: Likewise.
19469         * doc/posix-functions/wmemmove.texi: Likewise.
19470         * doc/posix-functions/wmemset.texi: Likewise.
19471         * doc/posix-functions/wprintf.texi: Likewise.
19472         * doc/posix-functions/wscanf.texi: Likewise.
19473
19474 2008-12-21  Bruno Haible  <bruno@clisp.org>
19475
19476         Update doc for HP-UX 11.11.
19477         * doc/posix-functions/btowc.texi: Clarify that the function is missing
19478         in HP-UX version 11.00, not in all versions of HP-UX 11.
19479         * doc/posix-functions/fwide.texi: Likewise.
19480         * doc/posix-functions/fwprintf.texi: Likewise.
19481         * doc/posix-functions/fwscanf.texi: Likewise.
19482         * doc/posix-functions/inet_ntop.texi: Likewise.
19483         * doc/posix-functions/inet_pton.texi: Likewise.
19484         * doc/posix-functions/mbrlen.texi: Likewise.
19485         * doc/posix-functions/mbrtowc.texi: Likewise.
19486         * doc/posix-functions/mbsinit.texi: Likewise.
19487         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19488         * doc/posix-functions/swprintf.texi: Likewise.
19489         * doc/posix-functions/swscanf.texi: Likewise.
19490         * doc/posix-functions/towctrans.texi: Likewise.
19491         * doc/posix-functions/vfwprintf.texi: Likewise.
19492         * doc/posix-functions/vswprintf.texi: Likewise.
19493         * doc/posix-functions/vwprintf.texi: Likewise.
19494         * doc/posix-functions/wcrtomb.texi: Likewise.
19495         * doc/posix-functions/wcsrtombs.texi: Likewise.
19496         * doc/posix-functions/wcsstr.texi: Likewise.
19497         * doc/posix-functions/wctob.texi: Likewise.
19498         * doc/posix-functions/wctrans.texi: Likewise.
19499         * doc/posix-functions/wmemchr.texi: Likewise.
19500         * doc/posix-functions/wmemcmp.texi: Likewise.
19501         * doc/posix-functions/wmemcpy.texi: Likewise.
19502         * doc/posix-functions/wmemmove.texi: Likewise.
19503         * doc/posix-functions/wmemset.texi: Likewise.
19504         * doc/posix-functions/wprintf.texi: Likewise.
19505         * doc/posix-functions/wscanf.texi: Likewise.
19506
19507 2008-12-21  Bruno Haible  <bruno@clisp.org>
19508
19509         Work around a portability problem.
19510         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
19511         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
19512
19513 2008-12-20  Bruno Haible  <bruno@clisp.org>
19514
19515         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
19516         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
19517         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
19518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
19519         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
19520
19521         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
19522         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
19523         set.
19524         (GNULIB_defined_mbstate_t): New macro.
19525         (mbsinit): Redefine if REPLACE_MBSINIT is set.
19526         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
19527         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
19528         reuses the system's mbrtowc function but works around the bugs.
19529         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
19530         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
19531         macros.
19532         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
19533         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
19534         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
19535         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
19536         REPLACE_MBSINIT if mbsinit needs to be overridden.
19537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
19538         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19539         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
19540         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19541         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19542         m4/locale-zh.m4.
19543         (Depends): Add mbsinit.
19544         * modules/mbsinit (Depends): Add mbrtowc.
19545         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
19546
19547 2008-12-20  Bruno Haible  <bruno@clisp.org>
19548
19549         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
19550         so that there are no conversion errors on AIX.
19551         * tests/test-mbsrtowcs.c (main): LIkewise.
19552
19553 2008-12-20  Bruno Haible  <bruno@clisp.org>
19554
19555         Work around wctob bug on Solaris <= 9.
19556         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
19557         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
19558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
19559         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
19560         * modules/wctob (Files): Add m4/locale-fr.m4.
19561         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
19562
19563 2008-12-20  Bruno Haible  <bruno@clisp.org>
19564
19565         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
19566         /dev/null.
19567         * tests/test-select-in.sh: Likewise.
19568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19569
19570 2008-12-20  Bruno Haible  <bruno@clisp.org>
19571
19572         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
19573         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
19574         Cygwin 1.5.x.
19575
19576 2008-12-20  Bruno Haible  <bruno@clisp.org>
19577
19578         Ensure mbstate_t is defined on HP-UX 11.11.
19579         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
19580         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
19581         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
19582         AC_USE_SYSTEM_EXTENSIONS.
19583         * modules/fnmatch (Depends-on): Add extensions.
19584         * modules/mbrlen (Depends-on): Likewise.
19585         * modules/mbrtowc (Depends-on): Likewise.
19586         * modules/mbsinit (Depends-on): Likewise.
19587         * modules/mbsrtowcs (Depends-on): Likewise.
19588         * modules/mbswidth (Depends-on): Likewise.
19589         * modules/quotearg (Depends-on): Likewise.
19590         * modules/strftime (Depends-on): Likewise.
19591
19592 2008-12-20  Bruno Haible  <bruno@clisp.org>
19593
19594         Ensure wctob is declared on IRIX 6.5.
19595         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
19596         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
19597         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
19598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
19599         of HAVE_WCTOB.
19600         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
19601         HAVE_WCTOB.
19602         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
19603
19604 2008-12-19  Bruno Haible  <bruno@clisp.org>
19605
19606         * modules/mbsrtowcs-tests: New file.
19607         * tests/test-mbsrtowcs1.sh: New file.
19608         * tests/test-mbsrtowcs2.sh: New file.
19609         * tests/test-mbsrtowcs3.sh: New file.
19610         * tests/test-mbsrtowcs4.sh: New file.
19611         * tests/test-mbsrtowcs.c: New file.
19612
19613         New module 'mbsrtowcs'.
19614         * lib/wchar.in.h (mbsrtowcs): New declaration.
19615         * lib/mbsrtowcs.c: New file.
19616         * m4/mbsrtowcs.m4: New file.
19617         * modules/mbsrtowcs: New file.
19618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19619         HAVE_MBSRTOWCS.
19620         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19621         HAVE_MBSRTOWCS.
19622         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19623
19624 2008-12-19  Bruno Haible  <bruno@clisp.org>
19625
19626         New module 'mbrlen'.
19627         * lib/wchar.in.h (mbrlen): New declaration.
19628         * lib/mbrlen.c: New file.
19629         * m4/mbrlen.m4: New file.
19630         * modules/mbrlen: New file.
19631         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19632         HAVE_MBRLEN.
19633         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19634         HAVE_MBRLEN.
19635         * doc/posix-functions/mbrlen.texi: Document the new module.
19636
19637 2008-12-19  Bruno Haible  <bruno@clisp.org>
19638
19639         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19640         * modules/mbrtowc (Depends-on): Add verify.
19641         Suggested by Paul Eggert.
19642
19643 2008-12-18  Bruno Haible  <bruno@clisp.org>
19644
19645         * modules/mbsinit-tests: New file.
19646         * tests/test-mbsinit.sh: New file.
19647         * tests/test-mbsinit.c: New file.
19648
19649 2008-12-18  Bruno Haible  <bruno@clisp.org>
19650
19651         * modules/mbrtowc-tests: New file.
19652         * tests/test-mbrtowc1.sh: New file.
19653         * tests/test-mbrtowc2.sh: New file.
19654         * tests/test-mbrtowc3.sh: New file.
19655         * tests/test-mbrtowc4.sh: New file.
19656         * tests/test-mbrtowc.c: New file.
19657
19658         New module 'mbrtowc'.
19659         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19660         mbsinit and mbrtowc.
19661         (mbrtowc): New declaration.
19662         * lib/mbrtowc.c: New file.
19663         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19664         * modules/mbrtowc: New file.
19665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19666         HAVE_MBRTOWC.
19667         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19668         HAVE_MBRTOWC.
19669         * doc/posix-functions/mbrtowc.texi: Document the new module.
19670
19671 2008-12-18  Bruno Haible  <bruno@clisp.org>
19672
19673         New module 'wctob'.
19674         * lib/wchar.in.h (wctob): New declaration.
19675         * lib/wctob.c: New file.
19676         * m4/wctob.m4: New file.
19677         * modules/wctob: New file.
19678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19679         HAVE_WCTOB.
19680         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19681         * doc/posix-functions/wctob.texi: Document the new module.
19682
19683 2008-12-18  Bruno Haible  <bruno@clisp.org>
19684
19685         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19686         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19687
19688 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19689
19690         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19691         G. Christensen" <tgc@jupiterrise.com>.
19692
19693         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19694         G. Christensen" <tgc@jupiterrise.com>.
19695
19696         * lib/flock.c: Need to include string.h.  Reported by "Tom
19697         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19698         <ebb9@byu.net>.
19699
19700 2008-12-18  Bruno Haible  <bruno@clisp.org>
19701
19702         * m4/locale-ja.m4: New file, from GNU gettext.
19703
19704 2008-12-17  Bruno Haible  <bruno@clisp.org>
19705
19706         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19707         Suggested by Eric Blake.
19708
19709 2008-12-17  Bruno Haible  <bruno@clisp.org>
19710
19711         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19712
19713 2008-12-17  Bruno Haible  <bruno@clisp.org>
19714
19715         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19716         * modules/mbsinit (Depends-on): Add verify.
19717         Suggested by Paul Eggert.
19718
19719 2008-12-17  Bruno Haible  <bruno@clisp.org>
19720
19721         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19722         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19723         gl_FUNC_MBRTOWC.
19724         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19725         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19726         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19727         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19728         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19729         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19730         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19731         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19732         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19733         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19734         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19735         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19736         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19737         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19738         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19739         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19740         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19741         * modules/trim (configure.ac): Likewise.
19742
19743 2008-12-17  Bruno Haible  <bruno@clisp.org>
19744
19745         * modules/btowc-tests: New file.
19746         * tests/test-btowc1.sh: New file.
19747         * tests/test-btowc2.sh: New file.
19748         * tests/test-btowc.c: New file.
19749
19750         New module 'btowc'.
19751         * lib/wchar.in.h (btowc): New declaration.
19752         * lib/btowc.c: New file.
19753         * m4/btowc.m4: New file.
19754         * modules/btowc: New file.
19755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19756         HAVE_BTOWC.
19757         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19758         * doc/posix-functions/btowc.texi: Document the new module.
19759
19760 2008-12-17  Bruno Haible  <bruno@clisp.org>
19761
19762         New module 'mbsinit'.
19763         * lib/wchar.in.h (mbsinit): New declaration.
19764         * lib/mbsinit.c: New file.
19765         * m4/mbsinit.m4: New file.
19766         * modules/mbsinit: New file.
19767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19768         HAVE_MBSINIT.
19769         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19770         HAVE_MBSINIT.
19771         * doc/posix-functions/mbsinit.texi: Document the new module.
19772
19773 2008-12-16  Bruno Haible  <bruno@clisp.org>
19774
19775         * lib/unistd.in.h: Add comment.
19776         * tests/test-environ.c: Don't include <stdlib.h>.
19777
19778 2008-12-16  Bruno Haible  <bruno@clisp.org>
19779
19780         * lib/parse-duration.h (parse_duration): Document return value
19781         convention.
19782         * lib/parse-duration.c: Include specification header first. Add
19783         comments.
19784         (_): Remove macro.
19785         (parse_year_month_day, parse_hour_minute_second): Move side effects
19786         outside of strchr call.
19787         (parse_non_iso8601): Move side effects outside of isspace call.
19788         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19789         call.
19790
19791 2008-12-16  Bruno Haible  <bruno@clisp.org>
19792
19793         * tests/test-parse-duration.sh: Produce no output when the test
19794         succeeds.
19795
19796 2008-12-16  Bruno Haible  <bruno@clisp.org>
19797
19798         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19799         expressions.
19800
19801 2008-12-15  Bruno Haible  <bruno@clisp.org>
19802
19803         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19804         * doc/glibc-functions/flistxattr.texi: Likewise.
19805         * doc/glibc-functions/fopencookie.texi: Likewise.
19806         * doc/glibc-functions/fremovexattr.texi: Likewise.
19807         * doc/glibc-functions/fsetxattr.texi: Likewise.
19808         * doc/glibc-functions/getxattr.texi: Likewise.
19809         * doc/glibc-functions/lgetxattr.texi: Likewise.
19810         * doc/glibc-functions/listxattr.texi: Likewise.
19811         * doc/glibc-functions/llistxattr.texi: Likewise.
19812         * doc/glibc-functions/lremovexattr.texi: Likewise.
19813         * doc/glibc-functions/lsetxattr.texi: Likewise.
19814         * doc/glibc-functions/removexattr.texi: Likewise.
19815         * doc/glibc-functions/setxattr.texi: Likewise.
19816         * doc/posix-functions/open_memstream.texi: Likewise.
19817
19818 2008-12-15  Eric Blake  <ebb9@byu.net>
19819
19820         Update doc for cygwin 1.7.
19821         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19822         functions.
19823         * doc/posix-functions/fchmodat.texi: Likewise.
19824         * doc/posix-functions/fchownat.texi: Likewise.
19825         * doc/posix-functions/fdopendir.texi: Likewise.
19826         * doc/posix-functions/fmemopen.texi: Likewise.
19827         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19828         * doc/posix-functions/fstatat.texi: Likewise.
19829         * doc/posix-functions/futimens.texi: Likewise.
19830         * doc/posix-functions/gai_strerror.texi: Likewise.
19831         * doc/posix-functions/getaddrinfo.texi: Likewise.
19832         * doc/posix-functions/getnameinfo.texi: Likewise.
19833         * doc/posix-functions/if_freenameindex.texi: Likewise.
19834         * doc/posix-functions/if_indextoname.texi: Likewise.
19835         * doc/posix-functions/if_nameindex.texi: Likewise.
19836         * doc/posix-functions/if_nametoindex.texi: Likewise.
19837         * doc/posix-functions/insque.texi: Likewise.
19838         * doc/posix-functions/linkat.texi: Likewise.
19839         * doc/posix-functions/llrint.texi: Likewise.
19840         * doc/posix-functions/llrintf.texi: Likewise.
19841         * doc/posix-functions/llrintl.texi: Likewise.
19842         * doc/posix-functions/lockf.texi: Likewise.
19843         * doc/posix-functions/lrintl.texi: Likewise.
19844         * doc/posix-functions/mkdirat.texi: Likewise.
19845         * doc/posix-functions/mkfifoat.texi: Likewise.
19846         * doc/posix-functions/mknodat.texi: Likewise.
19847         * doc/posix-functions/mq_close.texi: Likewise.
19848         * doc/posix-functions/mq_getattr.texi: Likewise.
19849         * doc/posix-functions/mq_notify.texi: Likewise.
19850         * doc/posix-functions/mq_open.texi: Likewise.
19851         * doc/posix-functions/mq_receive.texi: Likewise.
19852         * doc/posix-functions/mq_send.texi: Likewise.
19853         * doc/posix-functions/mq_setattr.texi: Likewise.
19854         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19855         * doc/posix-functions/mq_timedsend.texi: Likewise.
19856         * doc/posix-functions/mq_unlink.texi: Likewise.
19857         * doc/posix-functions/open_memstream.texi: Likewise.
19858         * doc/posix-functions/openat.texi: Likewise.
19859         * doc/posix-functions/posix_fadvise.texi: Likewise.
19860         * doc/posix-functions/posix_fallocate.texi: Likewise.
19861         * doc/posix-functions/posix_madvise.texi: Likewise.
19862         * doc/posix-functions/posix_memalign.texi: Likewise.
19863         * doc/posix-functions/posix_openpt.texi: Likewise.
19864         * doc/posix-functions/readlinkat.texi: Likewise.
19865         * doc/posix-functions/remque.texi: Likewise.
19866         * doc/posix-functions/renameat.texi: Likewise.
19867         * doc/posix-functions/rintl.texi: Likewise.
19868         * doc/posix-functions/sem_unlink.texi: Likewise.
19869         * doc/posix-functions/shm_open.texi: Likewise.
19870         * doc/posix-functions/shm_unlink.texi: Likewise.
19871         * doc/posix-functions/signgam.texi: Likewise.
19872         * doc/posix-functions/sigset.texi: Likewise.
19873         * doc/posix-functions/stpcpy.texi: Likewise.
19874         * doc/posix-functions/stpncpy.texi: Likewise.
19875         * doc/posix-functions/strerror.texi: Likewise.
19876         * doc/posix-functions/strtod.texi: Likewise.
19877         * doc/posix-functions/symlinkat.texi: Likewise.
19878         * doc/posix-functions/unlinkat.texi: Likewise.
19879         * doc/posix-functions/utimensat.texi: Likewise.
19880         * doc/glibc-functions/bindresvport.texi: Likewise.
19881         * doc/glibc-functions/dn_expand.texi: Likewise.
19882         * doc/glibc-functions/exp10.texi: Likewise.
19883         * doc/glibc-functions/exp10f.texi: Likewise.
19884         * doc/glibc-functions/fgetxattr.texi: Likewise.
19885         * doc/glibc-functions/flistxattr.texi: Likewise.
19886         * doc/glibc-functions/fopencookie.texi: Likewise.
19887         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19888         * doc/glibc-functions/fremovexattr.texi: Likewise.
19889         * doc/glibc-functions/fsetxattr.texi: Likewise.
19890         * doc/glibc-functions/getifaddrs.texi: Likewise.
19891         * doc/glibc-functions/getxattr.texi: Likewise.
19892         * doc/glibc-functions/lgetxattr.texi: Likewise.
19893         * doc/glibc-functions/listxattr.texi: Likewise.
19894         * doc/glibc-functions/llistxattr.texi: Likewise.
19895         * doc/glibc-functions/lremovexattr.texi: Likewise.
19896         * doc/glibc-functions/lsetxattr.texi: Likewise.
19897         * doc/glibc-functions/pow10.texi: Likewise.
19898         * doc/glibc-functions/pow10f.texi: Likewise.
19899         * doc/glibc-functions/rcmd_af.texi: Likewise.
19900         * doc/glibc-functions/removexattr.texi: Likewise.
19901         * doc/glibc-functions/res_init.texi: Likewise.
19902         * doc/glibc-functions/res_mkquery.texi: Likewise.
19903         * doc/glibc-functions/res_query.texi: Likewise.
19904         * doc/glibc-functions/res_querydomain.texi: Likewise.
19905         * doc/glibc-functions/res_send.texi: Likewise.
19906         * doc/glibc-functions/rresvport_af.texi: Likewise.
19907         * doc/glibc-functions/setxattr.texi: Likewise.
19908         * doc/glibc-functions/strcasestr.texi: Likewise.
19909
19910 2008-12-15  Bruno Haible  <bruno@clisp.org>
19911
19912         Fix compilation error on OSF/1 4.0.
19913         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19914         <sys/time.h>, simply delegate to the system header.
19915         Reported by Daniel Richard G. <oss@teragram.com>.
19916
19917 2008-12-15  Bruno Haible  <bruno@clisp.org>
19918
19919         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19920         * doc/posix-functions/fchmodat.texi: Likewise.
19921         * doc/posix-functions/fchownat.texi: Likewise.
19922         * doc/posix-functions/fdopendir.texi: Likewise.
19923         * doc/posix-functions/fstatat.texi: Likewise.
19924         * doc/posix-functions/mkdirat.texi: Likewise.
19925         * doc/posix-functions/unlinkat.texi: Likewise.
19926
19927 2008-12-14  Bruno Haible  <bruno@clisp.org>
19928
19929         Update doc for POSIX:2008.
19930         * doc/posix-functions/faccessat.texi: New file.
19931         * doc/posix-functions/fchmodat.texi: New file.
19932         * doc/posix-functions/fchownat.texi: New file.
19933         * doc/posix-functions/fdopendir.texi: New file.
19934         * doc/posix-functions/fstatat.texi: New file.
19935         * doc/posix-functions/futimens.texi: New file.
19936         * doc/posix-functions/linkat.texi: New file.
19937         * doc/posix-functions/mkdirat.texi: New file.
19938         * doc/posix-functions/mkfifoat.texi: New file.
19939         * doc/posix-functions/mknodat.texi: New file.
19940         * doc/posix-functions/open_wmemstream.texi: New file.
19941         * doc/posix-functions/openat.texi: New file.
19942         * doc/posix-functions/psiginfo.texi: New file.
19943         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19944         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19945         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19946         * doc/posix-functions/readlinkat.texi: New file.
19947         * doc/posix-functions/renameat.texi: New file.
19948         * doc/posix-functions/strerror_l.texi: New file.
19949         * doc/posix-functions/symlinkat.texi: New file.
19950         * doc/posix-functions/unlinkat.texi: New file.
19951         * doc/posix-functions/utimensat.texi: New file.
19952         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19953
19954 2008-12-14  Bruno Haible  <bruno@clisp.org>
19955
19956         Update doc for POSIX:2008.
19957         * doc/posix-functions/alphasort.texi: Renamed from
19958         doc/glibc-functions/alphasort.texi.
19959         * doc/posix-functions/dirfd.texi: Renamed from
19960         doc/glibc-functions/dirfd.texi.
19961         * doc/posix-functions/dprintf.texi: Renamed from
19962         doc/glibc-functions/dprintf.texi.
19963         * doc/posix-functions/duplocale.texi: Renamed from
19964         doc/glibc-functions/duplocale.texi.
19965         * doc/posix-functions/fexecve.texi: Renamed from
19966         doc/glibc-functions/fexecve.texi.
19967         * doc/posix-functions/fmemopen.texi: Renamed from
19968         doc/glibc-functions/fmemopen.texi.
19969         * doc/posix-functions/freelocale.texi: Renamed from
19970         doc/glibc-functions/freelocale.texi.
19971         * doc/posix-functions/getdate_err.texi: Renamed from
19972         doc/glibc-functions/getdate_err.texi.
19973         * doc/posix-functions/isalnum_l.texi: Renamed from
19974         doc/glibc-functions/isalnum_l.texi.
19975         * doc/posix-functions/isalpha_l.texi: Renamed from
19976         doc/glibc-functions/isalpha_l.texi.
19977         * doc/posix-functions/isblank_l.texi: Renamed from
19978         doc/glibc-functions/isblank_l.texi.
19979         * doc/posix-functions/iscntrl_l.texi: Renamed from
19980         doc/glibc-functions/iscntrl_l.texi.
19981         * doc/posix-functions/isdigit_l.texi: Renamed from
19982         doc/glibc-functions/isdigit_l.texi.
19983         * doc/posix-functions/isgraph_l.texi: Renamed from
19984         doc/glibc-functions/isgraph_l.texi.
19985         * doc/posix-functions/islower_l.texi: Renamed from
19986         doc/glibc-functions/islower_l.texi.
19987         * doc/posix-functions/isprint_l.texi: Renamed from
19988         doc/glibc-functions/isprint_l.texi.
19989         * doc/posix-functions/ispunct_l.texi: Renamed from
19990         doc/glibc-functions/ispunct_l.texi.
19991         * doc/posix-functions/isspace_l.texi: Renamed from
19992         doc/glibc-functions/isspace_l.texi.
19993         * doc/posix-functions/isupper_l.texi: Renamed from
19994         doc/glibc-functions/isupper_l.texi.
19995         * doc/posix-functions/iswalnum_l.texi: Renamed from
19996         doc/glibc-functions/iswalnum_l.texi.
19997         * doc/posix-functions/iswalpha_l.texi: Renamed from
19998         doc/glibc-functions/iswalpha_l.texi.
19999         * doc/posix-functions/iswblank_l.texi: Renamed from
20000         doc/glibc-functions/iswblank_l.texi.
20001         * doc/posix-functions/iswcntrl_l.texi: Renamed from
20002         doc/glibc-functions/iswcntrl_l.texi.
20003         * doc/posix-functions/iswctype_l.texi: Renamed from
20004         doc/glibc-functions/iswctype_l.texi.
20005         * doc/posix-functions/iswdigit_l.texi: Renamed from
20006         doc/glibc-functions/iswdigit_l.texi.
20007         * doc/posix-functions/iswgraph_l.texi: Renamed from
20008         doc/glibc-functions/iswgraph_l.texi.
20009         * doc/posix-functions/iswlower_l.texi: Renamed from
20010         doc/glibc-functions/iswlower_l.texi.
20011         * doc/posix-functions/iswprint_l.texi: Renamed from
20012         doc/glibc-functions/iswprint_l.texi.
20013         * doc/posix-functions/iswpunct_l.texi: Renamed from
20014         doc/glibc-functions/iswpunct_l.texi.
20015         * doc/posix-functions/iswspace_l.texi: Renamed from
20016         doc/glibc-functions/iswspace_l.texi.
20017         * doc/posix-functions/iswupper_l.texi: Renamed from
20018         doc/glibc-functions/iswupper_l.texi.
20019         * doc/posix-functions/iswxdigit_l.texi: Renamed from
20020         doc/glibc-functions/iswxdigit_l.texi.
20021         * doc/posix-functions/isxdigit_l.texi: Renamed from
20022         doc/glibc-functions/isxdigit_l.texi.
20023         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
20024         doc/glibc-functions/mbsnrtowcs.texi.
20025         * doc/posix-functions/mkdtemp.texi: Renamed from
20026         doc/glibc-functions/mkdtemp.texi.
20027         * doc/posix-functions/newlocale.texi: Renamed from
20028         doc/glibc-functions/newlocale.texi.
20029         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
20030         doc/glibc-functions/nl_langinfo_l.texi.
20031         * doc/posix-functions/open_memstream.texi: Renamed from
20032         doc/glibc-functions/open_memstream.texi.
20033         * doc/posix-functions/opterr.texi: Renamed from
20034         doc/glibc-functions/opterr.texi.
20035         * doc/posix-functions/optind.texi: Renamed from
20036         doc/glibc-functions/optind.texi.
20037         * doc/posix-functions/optopt.texi: Renamed from
20038         doc/glibc-functions/optopt.texi.
20039         * doc/posix-functions/psignal.texi: Renamed from
20040         doc/glibc-functions/psignal.texi.
20041         * doc/posix-functions/scandir.texi: Renamed from
20042         doc/glibc-functions/scandir.texi.
20043         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
20044         doc/glibc-functions/sched_get_priority_min.texi.
20045         * doc/posix-functions/signgam.texi: Renamed from
20046         doc/glibc-functions/signgam.texi.
20047         * doc/posix-functions/stpcpy.texi: Renamed from
20048         doc/glibc-functions/stpcpy.texi.
20049         * doc/posix-functions/stpncpy.texi: Renamed from
20050         doc/glibc-functions/stpncpy.texi.
20051         * doc/posix-functions/strcasecmp_l.texi: Renamed from
20052         doc/glibc-functions/strcasecmp_l.texi.
20053         * doc/posix-functions/strcoll_l.texi: Renamed from
20054         doc/glibc-functions/strcoll_l.texi.
20055         * doc/posix-functions/strfmon_l.texi: Renamed from
20056         doc/glibc-functions/strfmon_l.texi.
20057         * doc/posix-functions/strftime_l.texi: Renamed from
20058         doc/glibc-functions/strftime_l.texi.
20059         * doc/posix-functions/strncasecmp_l.texi: Renamed from
20060         doc/glibc-functions/strncasecmp_l.texi.
20061         * doc/posix-functions/strndup.texi: Renamed from
20062         doc/glibc-functions/strndup.texi.
20063         * doc/posix-functions/strnlen.texi: Renamed from
20064         doc/glibc-functions/strnlen.texi.
20065         * doc/posix-functions/strsignal.texi: Renamed from
20066         doc/glibc-functions/strsignal.texi.
20067         * doc/posix-functions/strxfrm_l.texi: Renamed from
20068         doc/glibc-functions/strxfrm_l.texi.
20069         * doc/posix-functions/timer_gettime.texi: Renamed from
20070         doc/glibc-functions/timer_gettime.texi.
20071         * doc/posix-functions/tolower_l.texi: Renamed from
20072         doc/glibc-functions/tolower_l.texi.
20073         * doc/posix-functions/toupper_l.texi: Renamed from
20074         doc/glibc-functions/toupper_l.texi.
20075         * doc/posix-functions/towctrans_l.texi: Renamed from
20076         doc/glibc-functions/towctrans_l.texi.
20077         * doc/posix-functions/towlower_l.texi: Renamed from
20078         doc/glibc-functions/towlower_l.texi.
20079         * doc/posix-functions/towupper_l.texi: Renamed from
20080         doc/glibc-functions/towupper_l.texi.
20081         * doc/posix-functions/uselocale.texi: Renamed from
20082         doc/glibc-functions/uselocale.texi.
20083         * doc/posix-functions/vdprintf.texi: Renamed from
20084         doc/glibc-functions/vdprintf.texi.
20085         * doc/posix-functions/wcpcpy.texi:
20086         Renamed from doc/glibc-functions/wcpcpy.texi.
20087         * doc/posix-functions/wcpncpy.texi: Renamed from
20088         doc/glibc-functions/wcpncpy.texi.
20089         * doc/posix-functions/wcscasecmp.texi: Renamed from
20090         doc/glibc-functions/wcscasecmp.texi.
20091         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
20092         doc/glibc-functions/wcscasecmp_l.texi.
20093         * doc/posix-functions/wcscoll_l.texi: Renamed from
20094         doc/glibc-functions/wcscoll_l.texi.
20095         * doc/posix-functions/wcsdup.texi: Renamed from
20096         doc/glibc-functions/wcsdup.texi.
20097         * doc/posix-functions/wcsncasecmp.texi: Renamed from
20098         doc/glibc-functions/wcsncasecmp.texi.
20099         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
20100         doc/glibc-functions/wcsncasecmp_l.texi.
20101         * doc/posix-functions/wcsnlen.texi: Renamed from
20102         doc/glibc-functions/wcsnlen.texi.
20103         * doc/posix-functions/wcsnrtombs.texi: Renamed from
20104         doc/glibc-functions/wcsnrtombs.texi.
20105         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
20106         doc/glibc-functions/wcsxfrm_l.texi.
20107         * doc/posix-functions/wctrans_l.texi: Renamed from
20108         doc/glibc-functions/wctrans_l.texi.
20109         * doc/posix-functions/wctype_l.texi: Renamed from
20110         doc/glibc-functions/wctype_l.texi.
20111         * doc/gnulib.texi (Function Substitutes): Add these subsections.
20112         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
20113         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
20114         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
20115         these subsections.
20116         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
20117         Remove sections.
20118
20119 2008-12-14  Bruno Haible  <bruno@clisp.org>
20120
20121         Update doc for POSIX:2008.
20122         * doc/posix-functions/*.texi: Update URL of POSIX specification.
20123
20124 2008-12-14  Bruno Haible  <bruno@clisp.org>
20125
20126         Update doc for POSIX:2008.
20127         * doc/pastposix-functions/bcmp.texi: Renamed from
20128         doc/posix-functions/bcmp.texi.
20129         * doc/pastposix-functions/bcopy.texi: Renamed from
20130         doc/posix-functions/bcopy.texi.
20131         * doc/pastposix-functions/bsd_signal.texi: Renamed from
20132         doc/posix-functions/bsd_signal.texi.
20133         * doc/pastposix-functions/bzero.texi: Renamed from
20134         doc/posix-functions/bzero.texi.
20135         * doc/pastposix-functions/ecvt.texi: Renamed from
20136         doc/posix-functions/ecvt.texi.
20137         * doc/pastposix-functions/fcvt.texi: Renamed from
20138         doc/posix-functions/fcvt.texi.
20139         * doc/pastposix-functions/ftime.texi: Renamed from
20140         doc/posix-functions/ftime.texi.
20141         * doc/pastposix-functions/gcvt.texi: Renamed from
20142         doc/posix-functions/gcvt.texi.
20143         * doc/pastposix-functions/getcontext.texi: Renamed from
20144         doc/posix-functions/getcontext.texi.
20145         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
20146         doc/posix-functions/gethostbyaddr.texi.
20147         * doc/pastposix-functions/gethostbyname.texi: Renamed from
20148         doc/posix-functions/gethostbyname.texi.
20149         * doc/pastposix-functions/getwd.texi: Renamed from
20150         doc/posix-functions/getwd.texi.
20151         * doc/pastposix-functions/h_errno.texi: Renamed from
20152         doc/posix-functions/h_errno.texi.
20153         * doc/pastposix-functions/index.texi: Renamed from
20154         doc/posix-functions/index.texi.
20155         * doc/pastposix-functions/makecontext.texi: Renamed from
20156         doc/posix-functions/makecontext.texi.
20157         * doc/pastposix-functions/mktemp.texi: Renamed from
20158         doc/posix-functions/mktemp.texi.
20159         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
20160         doc/posix-functions/pthread_attr_getstackaddr.texi.
20161         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
20162         doc/posix-functions/pthread_attr_setstackaddr.texi.
20163         * doc/pastposix-functions/rindex.texi: Renamed from
20164         doc/posix-functions/rindex.texi.
20165         * doc/pastposix-functions/scalb.texi: Renamed from
20166         doc/posix-functions/scalb.texi.
20167         * doc/pastposix-functions/setcontext.texi: Renamed from
20168         doc/posix-functions/setcontext.texi.
20169         * doc/pastposix-functions/swapcontext.texi: Renamed from
20170         doc/posix-functions/swapcontext.texi.
20171         * doc/pastposix-functions/ualarm.texi: Renamed from
20172         doc/posix-functions/ualarm.texi.
20173         * doc/pastposix-functions/usleep.texi: Renamed from
20174         doc/posix-functions/usleep.texi.
20175         * doc/pastposix-functions/vfork.texi: Renamed from
20176         doc/posix-functions/vfork.texi.
20177         * doc/pastposix-functions/wcswcs.texi: Renamed from
20178         doc/posix-functions/wcswcs.texi.
20179         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
20180         (Function Substitutes): Update.
20181
20182 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20183
20184         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
20185         m4/strerror.m4.
20186
20187 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20188             Bruno Haible  <bruno@clisp.org>
20189
20190         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
20191
20192 2008-12-13  Bruno Haible  <bruno@clisp.org>
20193
20194         * modules/strtoull (Depends-on): Remove unistd.
20195
20196 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20197
20198         * modules/strtoull (Depends-on): Add stdlib.
20199
20200 2008-12-11  Simon Josefsson  <simon@josefsson.org>
20201
20202         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
20203
20204 2008-12-10  Jim Meyering  <meyering@redhat.com>
20205
20206         gl_ASSERT: don't say assertions are disabled when they're not
20207         * m4/assert.m4 (gl_ASSERT): Do not make configure report
20208         "checking whether to enable assertions... no", when they are in
20209         fact enabled.  This is solely a bug in the output of configure.
20210         In spite of saying "no", NDEBUG was not defined in that case.
20211         Also, as noted by Eric Blake, leave assertions enabled upon
20212         --enable-assert=INVALID.
20213
20214 2008-12-10  Bruno Haible  <bruno@clisp.org>
20215
20216         Change MODULES.html to refer to POSIX:2008 where possible.
20217         * MODULES.html.sh (POSIX2008_URL): New variable.
20218         (posix_headers): Remove sys/timeb, ucontext.
20219         (posix2001_headers): New variable.
20220         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
20221         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
20222         index, makecontext, mktemp, pthread_attr_getstackaddr,
20223         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
20224         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
20225         (posix2001_functions): New variable.
20226         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
20227         otherwise.
20228
20229 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20230
20231         add missing include to parse-duration.c
20232         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
20233         * modules/parse-duration (Depends-on): Add xalloc.
20234
20235         fix sed script reading maint.mk
20236         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
20237         (syntax-check-rules): Use it.
20238
20239 2008-12-09  Bruno Haible  <bruno@clisp.org>
20240
20241         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
20242         MacOS X 10.4/PowerPC.
20243         Reported by Simon Josefsson.
20244
20245 2008-12-08  Jim Meyering  <meyering@redhat.com>
20246
20247         work around mingw's lack of some S_IF definitions
20248         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
20249         Reported by Simon Josefsson.
20250
20251 2008-12-08  Bruno Haible  <bruno@clisp.org>
20252
20253         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
20254         applied to variables. Needed on MacOS X 10.4/PowerPC.
20255         Reported by Simon Josefsson.
20256
20257 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
20258         and Eric Blake  <ebb9@byu.net>
20259
20260         assert: honor --enable-assert
20261         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
20262         order to honor --enable-assert, rather than treating it as a
20263         synonym for --disable-assert.
20264
20265 2008-12-08  Jim Meyering  <meyering@redhat.com>
20266
20267         * lib/posixtm.c: Remove now-useless declaration of mktime.
20268
20269         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
20270
20271 2008-12-07  Bruno Haible  <bruno@clisp.org>
20272
20273         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
20274         test_once): Mark functions as static.
20275         * tests/test-tls.c (test_tls): Likewise.
20276
20277 2008-12-07  Bruno Haible  <bruno@clisp.org>
20278
20279         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
20280         iconv_register_autodetect.
20281
20282 2008-12-07  Jim Meyering  <meyering@redhat.com>
20283
20284         posixtm.c: avoid a warning
20285         * lib/posixtm.c (posixtime): Don't initialize tm0.
20286         It's no longer needed to placate gcc4's -Wuninitialized,
20287         and the attempt to placate would elicit a new warning.
20288
20289         unicodeio.c: mark unused parameters
20290         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
20291         (fallback_failure_callback): Likewise.
20292
20293 2008-12-07  Bruno Haible  <bruno@clisp.org>
20294
20295         * gnulib-tool (func_create_testdir): When building the tests
20296         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
20297         Reported by Simon Josefsson.
20298
20299 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20300
20301         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
20302
20303 2008-12-06  Bruno Haible  <bruno@clisp.org>
20304
20305         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
20306         Suggested by Eric Blake.
20307
20308 2008-12-06  Bruno Haible  <bruno@clisp.org>
20309
20310         Fix a c-stack test failure on MacOS X.
20311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
20312         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
20313         handler for SIGBUS as well.
20314         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
20315         install a signal handler for SIGBUS as well.
20316         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
20317
20318 2008-12-06  Bruno Haible  <bruno@clisp.org>
20319
20320         Advocacy documentation.
20321         * doc/gnulib-intro.texi (Benefits): New section.
20322         * doc/gnulib.texi: Update.
20323
20324 2008-12-06  Bruno Haible  <bruno@clisp.org>
20325
20326         Document the 'manywarnings' module.
20327         * doc/manywarnings.texi: New file.
20328         * doc/gnulib.texi: Include it.
20329
20330 2008-12-05  Eric Blake  <ebb9@byu.net>
20331
20332         tests: silence some gcc warnings
20333         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
20334         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
20335         type mismatches.
20336
20337 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20338             Bruno Haible  <bruno@clisp.org>
20339
20340         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
20341
20342 2008-11-29  Jim Meyering  <meyering@redhat.com>
20343
20344         unicodeio.c: mark unused parameters
20345         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
20346         (fallback_failure_callback): Likewise.
20347
20348         fts: fix a thinko
20349         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
20350         (set_stat_type): Return S_IF*-valued "type" directly.
20351         Prompted by James Youngman's spotting a related bug.
20352         Confirmed by further testing through find.
20353
20354         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
20355         * lib/fts.c (D_TYPE): Define.
20356         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
20357         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
20358         (s_ifmt_shift_bits): New function.
20359         (set_stat_type): New function.
20360         (fts_build): When not calling fts_stat, call set_stat_type
20361         to propagate dirent.d_type info to fts_read caller.
20362         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
20363         fts_statp->st_mode type information may be valid.
20364
20365 2008-11-28  Simon Josefsson  <simon@josefsson.org>
20366
20367         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
20368         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
20369         <sds@gnu.org>.
20370
20371 2008-11-20  Bruno Haible  <bruno@clisp.org>
20372
20373         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
20374         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
20375         INCLUDE_NEXT.
20376         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
20377         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
20378         * modules/math (Makefile.am): Substitute
20379         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
20380         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20381
20382 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20383             Bruno Haible  <bruno@clisp.org>
20384
20385         * lib/stdint.in.h: Define all type macros so that their expansion is
20386         a single typedef'ed token. Fixes a compilation failure in Boost which
20387         does "using ::int8_t;".
20388
20389 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20390
20391         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
20392         gl_MANYWARN_ALL_GCC.
20393         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
20394         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
20395         * modules/manywarnings: New file.
20396         * MODULES.html.sh: Mention manywarnings module.
20397
20398 2008-11-18  Bruno Haible  <bruno@clisp.org>
20399
20400         * doc/gnulib-tool.texi (Unit tests): New section.
20401
20402 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20403
20404         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
20405         paths like 'lib/po/foo.po'.
20406
20407 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20408
20409         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
20410         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
20411
20412 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20413
20414         * m4/warnings.m4: Use CPPFLAGS to really check whether the
20415         parameter works.
20416
20417 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20418
20419         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
20420
20421 2008-11-17  Bruce Korb  <bkorb@gnu.org>
20422
20423         * modules/parse-duration-tests: New file.
20424         * tests/test-parse-duration.sh: New file.
20425         * tests/test-parse-duration.c: New file.
20426
20427         New module 'parse-duration'.
20428         * lib/parse-duration.h: New file.
20429         * lib/parse-duration.c: New file.
20430         * modules/parse-duration: New file.
20431
20432 2008-11-17  Bruno Haible  <bruno@clisp.org>
20433
20434         * tests/test-select-out.sh: Comment out the first pipe test.
20435         Reported by Simon Josefsson.
20436
20437 2008-11-17  Bruno Haible  <bruno@clisp.org>
20438
20439         * modules/getaddrinfo (Depends-on): Add servent, hostent.
20440         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
20441         gl_HOSTENT.
20442
20443 2008-11-17  Bruno Haible  <bruno@clisp.org>
20444
20445         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
20446         -lnetwork and -lnet. Needed for Haiku and BeOS.
20447
20448 2008-11-16  Bruno Haible  <bruno@clisp.org>
20449
20450         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
20451
20452 2008-11-16  Bruno Haible  <bruno@clisp.org>
20453
20454         Avoid test failure on Haiku.
20455         * tests/test-fsync.c: Include <errno.h>.
20456         (main): Don't require that fsync (0) fails.
20457
20458 2008-11-15  Bruno Haible  <bruno@clisp.org>
20459
20460         New module 'hostent'.
20461         * modules/hostent: New file.
20462         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
20463
20464 2008-11-15  Bruno Haible  <bruno@clisp.org>
20465
20466         New module 'servent'.
20467         * modules/servent: New file.
20468         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
20469
20470 2008-11-15  Bruno Haible  <bruno@clisp.org>
20471
20472         Avoid generating same test program with two different rules.
20473         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
20474         test-frexp to test-frexp-nolibm.
20475         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
20476         test-frexpl to test-frexpl-nolibm.
20477
20478 2008-11-15  Bruno Haible  <bruno@clisp.org>
20479
20480         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
20481         $(FREXPL_LIBM).
20482
20483 2008-11-15  Bruno Haible  <bruno@clisp.org>
20484
20485         * lib/netdb.in.h: Activate the definitions also when the system's
20486         <netdb.h> has 'struct addrinfo'.
20487         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
20488         EAI_OVERFLOW or AI_NUMERICSERV.
20489         * doc/posix-headers/netdb.texi: Document the problem.
20490
20491 2008-11-15  Bruno Haible  <bruno@clisp.org>
20492
20493         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
20494
20495         Make the 'sched' module work on platforms where <sched.h> exists but
20496         is incomplete (such as Haiku).
20497         * lib/sched.in.h; Include the system's <sched.h> if it exists.
20498         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
20499         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
20500         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
20501         HAVE_STRUCT_SCHED_PARAM.
20502         * modules/sched (Depends-on): Add include_next.
20503         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
20504         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
20505         * doc/posix-headers/sched.texi: Document the issue.
20506
20507 2008-11-13  Jim Meyering  <meyering@redhat.com>
20508
20509         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
20510         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
20511         test would fail due to the difference in the Report bugs to ...
20512         line.  The expected address is empty, "<>", while the actual
20513         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
20514
20515 2008-11-12  Bruno Haible  <bruno@clisp.org>
20516
20517         lstat: don't compile lstat.c on systems lacking lstat
20518         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
20519         which don't have lstat; this is handled by lib/sys_stat.in.h already.
20520         Reported by Daniel P. Berrange via Jim Meyering.
20521
20522 2008-11-12  Jim Meyering  <meyering@redhat.com>
20523
20524         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
20525
20526 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20527
20528         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
20529         instead.
20530
20531 2008-11-12  Bruno Haible  <bruno@clisp.org>
20532
20533         * lib/unicodeio.c: Include unistr.h.
20534         (utf8_wctomb): Remove function.
20535         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
20536
20537 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20538
20539         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
20540         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
20541         <bruno@clisp.org>.
20542         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
20543
20544 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20545
20546         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
20547         * doc/gnulib.texi: Add section for warnings.
20548
20549 2008-11-11  Bruno Haible  <bruno@clisp.org>
20550
20551         * lib/sockets.h: Add a comment.
20552
20553 2008-11-11  Karl Berry  <karl@gnu.org>
20554
20555         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
20556
20557 2008-11-11  Eric Blake  <ebb9@byu.net>
20558
20559         fdl.texi: avoid git symlinks
20560         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
20561
20562 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20563
20564         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
20565
20566 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20567
20568         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
20569         (gl_WARN_ADD): Substitute $2 if literal.
20570
20571 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20572
20573         * m4/warning.m4: Remove.
20574
20575 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20576
20577         * m4/warnings.m4: Almost complete rewrite. :-)
20578
20579 2008-11-10  Simon Josefsson  <simon@josefsson.org>
20580
20581         * modules/warnings: New module.
20582         * m4/warnings.m4: New file.
20583         * MODULES.html.sh: Mention warnings module.
20584         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
20585         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20586
20587 2008-11-10  Eric Blake  <ebb9@byu.net>
20588
20589         fdl.texi: make a symlink to the latest version
20590         * doc/standards.texi: Revert today's earlier change.
20591         * doc/fdl-1.2.texi: Rename from old fdl.texi...
20592         * doc/fdl.texi: ...and replace this with a symlink to the newer
20593         fdl-1.3.texi.
20594
20595 2008-11-10  Bruno Haible  <bruno@clisp.org>
20596
20597         * tests/test-select-fd.c (main): Accept the result file name as fourth
20598         argument.
20599         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
20600         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
20601
20602 2008-11-10  Bruno Haible  <bruno@clisp.org>
20603
20604         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
20605         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
20606         as autoconf-substituted macros.
20607         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
20608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
20609         gl_NETDB_H_DEFAULTS. Set these variables.
20610         * modules/netdb (Makefile.am): Substitute these variables.
20611
20612 2008-11-10  Eric Blake  <ebb9@byu.net>
20613
20614         standards.texi: include correct file for FDL 1.3
20615         * doc/standards.texi (GNU Free Documentation License): Change
20616         include file to pull in FDL 1.3, not 1.2.
20617
20618         fdl.texi: revert accidental change to license
20619         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20620
20621 2008-11-10  Bruno Haible  <bruno@clisp.org>
20622
20623         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20624         cross-compiling guesses also when the native compile gives no result.
20625
20626 2008-11-10  Bruno Haible  <bruno@clisp.org>
20627
20628         * lib/spawni.c (__spawni): Force variable into the stack.
20629
20630 2008-11-10  Bruno Haible  <bruno@clisp.org>
20631
20632         Add support for Haiku.
20633         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20634         glibc and BeOS, but also on Haiku.
20635         * lib/fpurge.c (fpurge): Likewise.
20636         * lib/freadable.c (freadable): Likewise.
20637         * lib/freadahead.c (freadahead): Likewise.
20638         * lib/freading.c (freading): Likewise.
20639         * lib/freadptr.c (freadptr): Likewise.
20640         * lib/freadseek.c (freadptrinc): Likewise.
20641         * lib/fseeko.c (rpl_fseeko): Likewise.
20642         * lib/fseterr.c (fseterr): Likewise.
20643         * lib/fwritable.c (fwritable): Likewise.
20644         * lib/fwriting.c (fwriting): Likewise.
20645         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20646
20647 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20648
20649         * lib/config.charset: Treat Haiku like BeOS.
20650
20651 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20652
20653         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20654         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20655
20656 2008-11-08  Bruno Haible  <bruno@clisp.org>
20657
20658         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20659         AC_CACHE_CHECK.
20660
20661 2008-11-08  Bruno Haible  <bruno@clisp.org>
20662
20663         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20664
20665 2008-11-08  Bruno Haible  <bruno@clisp.org>
20666
20667         * tests/test-select-fd.c: New file.
20668         * tests/test-select-in.sh: New file.
20669         * tests/test-select-out.sh: New file.
20670         * tests/test-select-stdin.c: New file.
20671         * modules/select-tests (Files): Add the new files.
20672         (Depends-on): Add gettimeofday.
20673         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20674         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20675         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20676
20677 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20678             Bruno Haible  <bruno@clisp.org>
20679
20680         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20681
20682 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20683
20684         * build-aux/pmccabe2html: Added support for C++ source files.
20685
20686 2008-11-05  Ben Pfaff  <blp@gnu.org>
20687
20688         Fix lib/close.c build on Windows.
20689         * modules/close (Files): Add lib/w32sock.h.
20690
20691 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20692
20693         Accept Bison's NEWS format.
20694         * build-aux/announce-gen (print_news_deltas): Tweak
20695         $re_prefix.
20696
20697 2008-11-04  Bruno Haible  <bruno@clisp.org>
20698
20699         * modules/random_r (Maintainer): Add glibc.
20700
20701 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20702
20703         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20704         by karl@freefriends.org (Karl Berry).
20705         * doc/alloca.texi: Likewise.
20706         * doc/c-ctype.texi: Likewise.
20707         * doc/c-strcase.texi: Likewise.
20708         * doc/c-strcaseeq.texi: Likewise.
20709         * doc/c-strcasestr.texi: Likewise.
20710         * doc/c-strstr.texi: Likewise.
20711         * doc/c-strtod.texi: Likewise.
20712         * doc/c-strtold.texi: Likewise.
20713         * doc/ctime.texi: Likewise.
20714         * doc/error.texi: Likewise.
20715         * doc/fdl.texi: Likewise.
20716         * doc/gcd.texi: Likewise.
20717         * doc/getdate.texi: Likewise.
20718         * doc/gnulib-intro.texi: Likewise.
20719         * doc/gnulib-tool.texi: Likewise.
20720         * doc/gnulib.texi: Likewise.
20721         * doc/inet_ntoa.texi: Likewise.
20722         * doc/maintain.texi: Likewise.
20723         * doc/make-stds.texi: Likewise.
20724         * doc/quote.texi: Likewise.
20725         * doc/regexprops-generic.texi: Likewise.
20726         * doc/standards.texi: Likewise.
20727         * doc/verify.texi: Likewise.
20728         * doc/visibility.texi: Likewise.
20729         * doc/gnulib.texi (GNU Free Documentation License): Include
20730         fdl-1.3.texi instead of fdl.texi.
20731
20732 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20733
20734         * doc/fdl-1.3.texi: New file, from
20735         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20736         * modules/fdl-1.3: Add.
20737         * MODULES.html.sh: Add fdl-1.3.
20738
20739 2008-11-03  Bruno Haible  <bruno@clisp.org>
20740
20741         Make determination of absolute name of header file work with AIX xlc.
20742         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20743         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20744         preprocessing.
20745         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20746         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20747
20748 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20749
20750         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20751         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20752         <ludo@gnu.org>.
20753
20754 2008-11-02  Bruno Haible  <bruno@clisp.org>
20755
20756         Mark 'strpbrk' obsolete.
20757         * modules/strpbrk (Status, Notice): New sections.
20758         * modules/strtok_r (Depends-on): Add strpbrk.
20759
20760 2008-11-02  Bruno Haible  <bruno@clisp.org>
20761
20762         Mark 'strdup' obsolete.
20763         * modules/strdup (Status, Notice): New sections.
20764         * modules/findprog (Depends-on): Add strdup.
20765         * modules/getaddrinfo (Depends-on): Likewise.
20766         * modules/localename (Depends-on): Likewise.
20767         * modules/relocatable-lib (Depends-on): Likewise.
20768         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20769         * modules/relocatable-prog (Depends-on): Likewise.
20770         * modules/trim (Depends-on): Likewise.
20771         * modules/unictype/gen-ctype (Depends-on): Likewise.
20772         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20773
20774 2008-11-02  Bruno Haible  <bruno@clisp.org>
20775
20776         Mark 'strcspn' obsolete.
20777         * modules/strcspn (Status, Notice): New sections.
20778
20779 2008-11-02  Bruno Haible  <bruno@clisp.org>
20780
20781         Mark 'rmdir' obsolete.
20782         * modules/rmdir (Status, Notice): New sections.
20783         * modules/clean-temp (Depends-on): Add rmdir.
20784         * modules/openat (Depends-on): Likewise.
20785
20786 2008-11-02  Bruno Haible  <bruno@clisp.org>
20787
20788         Mark 'raise' obsolete.
20789         * modules/raise (Status, Notice): New sections.
20790         (Include): Specify <signal.h>.
20791         * modules/stdio (Depends-on): Add raise.
20792         * modules/write (Depends-on): Likewise.
20793
20794 2008-11-02  Bruno Haible  <bruno@clisp.org>
20795
20796         Mark 'memset' obsolete.
20797         * modules/memset (Status, Notice): New sections.
20798
20799 2008-11-02  Bruno Haible  <bruno@clisp.org>
20800
20801         Mark 'memmove' obsolete.
20802         * modules/memmove (Status, Notice): New sections.
20803         * modules/argp (Depends-on): Add memmove.
20804         * modules/argz (Depends-on): Likewise.
20805         * modules/canonicalize (Depends-on): Likewise.
20806         * modules/canonicalize-lgpl (Depends-on): Likewise.
20807         * modules/fts (Depends-on): Likewise.
20808         * modules/getcwd (Depends-on): Likewise.
20809         * modules/human (Depends-on): Likewise.
20810         * modules/regex (Depends-on): Likewise.
20811         * modules/striconveh (Depends-on): Likewise.
20812         * modules/trim (Depends-on): Likewise.
20813         * modules/unistr/u8-move (Depends-on): Likewise.
20814         * modules/unistr/u16-move (Depends-on): Likewise.
20815         * modules/unistr/u32-move (Depends-on): Likewise.
20816
20817 2008-11-02  Bruno Haible  <bruno@clisp.org>
20818
20819         Mark 'memcpy' obsolete.
20820         * modules/memcpy (Status, Notice): New sections.
20821
20822 2008-11-02  Bruno Haible  <bruno@clisp.org>
20823
20824         Mark 'memcmp' obsolete.
20825         * modules/memcmp (Status, Notice): New sections.
20826         * modules/argmatch (Depends-on): Add memchr.
20827         * modules/backupfile (Depends-on): Likewise.
20828         * modules/c-strcasestr (Depends-on): Likewise.
20829         * modules/crypto/des (Depends-on): Likewise.
20830         * modules/csharpcomp (Depends-on): Likewise.
20831         * modules/fnmatch (Depends-on): Likewise.
20832         * modules/git-merge-changelog (Depends-on): Likewise.
20833         * modules/isnand (Depends-on): Likewise.
20834         * modules/isnand-nolibm (Depends-on): Likewise.
20835         * modules/isnanf (Depends-on): Likewise.
20836         * modules/isnanf-nolibm (Depends-on): Likewise.
20837         * modules/isnanl (Depends-on): Likewise.
20838         * modules/isnanl-nolibm (Depends-on): Likewise.
20839         * modules/mbchar (Depends-on): Likewise.
20840         * modules/memcoll (Depends-on): Likewise.
20841         * modules/quotearg (Depends-on): Likewise.
20842         * modules/regex (Depends-on): Likewise.
20843         * modules/relocatable-prog (Depends-on): Likewise.
20844         * modules/same (Depends-on): Likewise.
20845         * modules/signbit (Depends-on): Likewise.
20846         * modules/strcasestr-simple (Depends-on): Likewise.
20847         * modules/unictype/gen-ctype (Depends-on): Likewise.
20848         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20849         * modules/uniname/uniname (Depends-on): Likewise.
20850         * modules/unistr/u8-cmp (Depends-on): Likewise.
20851
20852 2008-11-02  Bruno Haible  <bruno@clisp.org>
20853
20854         Mark 'memchr' obsolete.
20855         * modules/memchr (Status, Notice): New sections.
20856         * modules/argp (Depends-on): Add memchr.
20857         * modules/base64 (Depends-on): Likewise.
20858         * modules/c-strcasestr (Depends-on): Likewise.
20859         * modules/chdir-long (Depends-on): Likewise.
20860         * modules/fnmatch (Depends-on): Likewise.
20861         * modules/getsubopt (Depends-on): Likewise.
20862         * modules/git-merge-changelog (Depends-on): Likewise.
20863         * modules/glob (Depends-on): Likewise.
20864         * modules/strcasestr-simple (Depends-on): Likewise.
20865         * modules/strnlen (Depends-on): Likewise.
20866
20867 2008-11-02  Bruno Haible  <bruno@clisp.org>
20868
20869         Mark 'atexit' obsolete.
20870         * modules/atexit (Status, Notice): New sections.
20871         * modules/chdir-long (Depends-on): Add atexit.
20872         * modules/wait-process (Depends-on): Likewise.
20873
20874 2008-11-02  Bruno Haible  <bruno@clisp.org>
20875
20876         * gnulib-tool: New option --with-obsolete.
20877         (func_usage): Document it.
20878         (func_modules_transitive_closure): Drop obsolete dependencies if
20879         incobsolete is not true.
20880         (func_import): Read and save the incobsolete variable to the cache.
20881
20882 2008-11-02  Bruno Haible  <bruno@clisp.org>
20883
20884         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20885         * gnulib-tool: New option --extract-status.
20886         (func_usage): Document it.
20887         (sed_extract_prog): Recognize it.
20888         (func_get_status): New function.
20889
20890 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20891
20892         * modules/sockets (License): Change from LGPL to LGPLv2+.
20893
20894 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20895
20896         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20897
20898 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20899
20900         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20901         Mention times and sys_times.
20902         * modules/sys_times, modules/sys_times-tests: New modules.
20903         * modules/times, modules/times-tests: Likewise
20904         * m4/sys_times_h.m4: New file.
20905         * lib/sys_times.in.h: Likewise
20906         * lib/times.c: Likewise.
20907         * tests/test-sys_times.c: Likewise.
20908         * tests/test-times.c: Likewise.
20909         * doc/posix-headers/sys_times.texi: Update.
20910         * doc/posix-functions/times.texi: Update.
20911
20912 2008-10-28  Jim Meyering  <meyering@redhat.com>
20913
20914         * modules/tempname (Depends-on): Add lstat.
20915
20916         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20917
20918 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20919
20920         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20921         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20922         using idiom used elsewhere in gnulib.
20923
20924 2008-10-27  Jim Meyering  <meyering@redhat.com>
20925
20926         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20927
20928 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20929
20930         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20931         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20932         programs.
20933         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20934
20935 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20936
20937         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20938
20939 2008-10-27  Bruno Haible  <bruno@clisp.org>
20940
20941         * tests/test-lstat.c: Include <stdio.h>.
20942
20943 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20944
20945         * modules/lstat-tests: New module.
20946         * tests/test-lstat.c: New file.
20947
20948 2008-10-26  Jim Meyering  <meyering@redhat.com>
20949
20950         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20951
20952 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20953             Bruno Haible  <bruno@clisp.org>
20954
20955         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20956         * modules/configmake (Include): Add a note that the include must come
20957         after all system headers.
20958         * lib/javaversion.c: Include configmake.h after all other includes.
20959
20960 2008-10-26  Bruno Haible  <bruno@clisp.org>
20961
20962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20963         HAVE_STRUCT_RANDOM_DATA to 1.
20964         (gl_STDLIB_H): Simplify.
20965
20966 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20967
20968         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20969         substitute HAVE_STRUCT_RANDOM_DATA.
20970         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20971         random_data.
20972         * modules/stdlib (Makefile.am): Substitute
20973         HAVE_STRUCT_RANDOM_DATA.
20974
20975 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20976
20977         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20978         * doc/gnulib-intro.texi (Copyright): Likewise.
20979
20980 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20981
20982         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20983         findings.
20984
20985 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20986             Bruno Haible  <bruno@clisp.org>
20987
20988         * lib/unistd.in.h: Include <winsock2.h>.
20989         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20990         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20991         Provide dummy declarations.
20992         (gethostname): Override.
20993         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20994         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20995         gl_PREREQ_SYS_H_WINSOCK2.
20996         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20997         * doc/posix-functions/gethostname.texi: More details.
20998
20999 2008-10-25  Bruno Haible  <bruno@clisp.org>
21000
21001         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21002         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
21003         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
21004
21005         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
21006         here ...
21007         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
21008         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
21009         gl_UNISTD_H_DEFAULTS.
21010
21011 2008-10-25  Eric Blake  <ebb9@byu.net>
21012
21013         signbit: avoid spurious compiler failure
21014         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
21015         declarations inside function.
21016
21017 2008-10-24  Simon Josefsson  <simon@josefsson.org>
21018             Bruno Haible  <bruno@clisp.org>
21019
21020         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
21021         * modules/random_r (Depends-on): Add stdint.
21022
21023 2008-10-24  Bruno Haible  <bruno@clisp.org>
21024
21025         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
21026         Eggert.
21027         * modules/strerror (License): Likewise.
21028
21029 2008-10-24  Jim Meyering  <meyering@redhat.com>
21030
21031         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
21032         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
21033
21034 2008-10-24  Eric Blake  <ebb9@byu.net>
21035
21036         getgroups: fix compilation when getgroups is available
21037         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
21038         but with <config.h> override of getgroups disabled.
21039
21040 2008-10-24  Simon Josefsson  <simon@josefsson.org>
21041
21042         * doc/gnulib.texi (Header files): Add note about C++ problems.
21043         Explained by Bruno Haible <bruno@clisp.org>.
21044
21045 2008-10-23  Bruno Haible  <bruno@clisp.org>
21046
21047         Define a dummy SA_NODEFER macro on Interix.
21048         * lib/signal.in.h (SA_NODEFER): Define fallback.
21049         Reported by Aleksey Cheusov <cheusov@tut.by> via
21050         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
21051
21052 2008-10-23  Bruno Haible  <bruno@clisp.org>
21053
21054         * modules/freadahead (License): Change to LGPLv2+.
21055         Suggested by Simon Josefsson.
21056
21057 2008-10-23  Jim Meyering  <meyering@redhat.com>
21058
21059         random_r: new module
21060         * modules/random_r: New file.
21061         * m4/random_r.m4: New file.
21062         * lib/random_r.c: New file, from glibc.
21063         * modules/random_r-tests: New file.
21064         * tests/test-random_r.c: New file.
21065         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
21066          Declare.
21067         (RAND_MAX): Define.
21068         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
21069         * modules/stdlib: Substitute them, too.
21070         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
21071         * doc/glibc-functions/initstate_r.texi: Mention the new module.
21072         * doc/glibc-functions/random_r.texi: Likewise.
21073         * doc/glibc-functions/setstate_r.texi: Likewise.
21074         * doc/glibc-functions/srandom_r.texi: Likewise.
21075         * config/srclist.txt: Mention it.
21076
21077 2008-10-23  David Lutterkort  <lutter@redhat.com>
21078
21079         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
21080         link requirement
21081
21082 2008-10-23  Jim Meyering  <meyering@redhat.com>
21083
21084         selinux-h: mark parameters of stub functions as intentionally unused
21085         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
21086         * lib/se-context.in.h: Likewise.
21087
21088 2008-10-22  Simon Josefsson  <simon@josefsson.org>
21089
21090         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
21091
21092 2008-10-22  Simon Josefsson  <simon@josefsson.org>
21093
21094         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
21095
21096 2008-10-22  Eric Blake  <ebb9@byu.net>
21097
21098         glthread/thread: avoid compiler warning
21099         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
21100         Add unreachable abort to silence compiler.
21101
21102 2008-10-22  Eric Blake  <ebb9@byu.net>
21103
21104         netdb: also supply struct addrinfo for cygwin 1.5.x
21105         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
21106         older cygwin.
21107         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
21108         cygwin.
21109         * doc/posix-headers/netdb.texi (netdb.h): Document this.
21110
21111 2008-10-22  Bruno Haible  <bruno@clisp.org>
21112
21113         * users.txt: Update entry about pspp.
21114
21115 2008-10-21  Bruno Haible  <bruno@clisp.org>
21116
21117         Simplification.
21118         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
21119         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
21120
21121         Simplification.
21122         * lib/ioctl.c (ioctl): Don't undefine.
21123         * lib/socket.c (socket): Don't undefine.
21124
21125         Remove unused module indicator macros.
21126         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
21127         GNULIB_$1 as a C macro.
21128
21129         * doc/posix-functions/close.texi: Undo last change.
21130         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
21131         Windows platforms.
21132
21133 2008-10-21  Bruno Haible  <bruno@clisp.org>
21134
21135         Add gethostname() declaration to <unistd.h>.
21136         * lib/unistd.in.h (gethostname): New declaration.
21137         * lib/gethostname.c: Include <unistd.h>.
21138         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
21139         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
21140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
21141         and HAVE_GETHOSTNAME.
21142         * modules/gethostname (Depends-on): Add unistd.
21143         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21144         (Include): Specify <unistd.h>.
21145         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
21146         HAVE_GETHOSTNAME.
21147         * tests/test-gethostname.c: Include <unistd.h> first.
21148
21149 2008-10-21  Bruno Haible  <bruno@clisp.org>
21150
21151         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
21152         * modules/select-tests (Depends-on): Likewise.
21153         Reported by Simon Josefsson.
21154
21155 2008-10-21  Simon Josefsson  <simon@josefsson.org>
21156
21157         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
21158         * lib/accept.c: New file, based on winsock.c.
21159         * lib/bind.c: New file, based on winsock.c.
21160         * lib/connect.c: New file, based on winsock.c.
21161         * lib/getpeername.c: New file, based on winsock.c.
21162         * lib/getsockname.c: New file, based on winsock.c.
21163         * lib/getsockopt.c: New file, based on winsock.c.
21164         * lib/ioctl.c: New file, based on winsock.c.
21165         * lib/listen.c: New file, based on winsock.c.
21166         * lib/recv.c: New file, based on winsock.c.
21167         * lib/recvfrom.c: New file, based on winsock.c.
21168         * lib/send.c: New file, based on winsock.c.
21169         * lib/sendto.c: New file, based on winsock.c.
21170         * lib/setsockopt.c: New file, based on winsock.c.
21171         * lib/shutdown.c: New file, based on winsock.c.
21172         * lib/socket.c: New file, based on winsock.c.
21173         * lib/w32sock.h: New file, based on winsock.c.
21174         * lib/winsock.c: Remove file.
21175         * modules/accept: Likewise.
21176         * modules/bind: Likewise.
21177         * modules/connect: Likewise.
21178         * modules/getpeername: Likewise.
21179         * modules/getsockname: Likewise.
21180         * modules/getsockopt: Likewise.
21181         * modules/ioctl: Likewise.
21182         * modules/listen: Likewise.
21183         * modules/recv: Likewise.
21184         * modules/recvfrom: Likewise.
21185         * modules/send: Likewise.
21186         * modules/sendto: Likewise.
21187         * modules/setsockopt: Likewise.
21188         * modules/shutdown: Likewise.
21189         * modules/socket: Use socket.c instead of winsock.c.
21190         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
21191         * doc/posix-functions/accept.texi: Doc fix.
21192         * doc/posix-functions/bind.texi: Doc fix.
21193         * doc/posix-functions/close.texi: Doc fix.
21194         * doc/posix-functions/connect.texi: Doc fix.
21195         * doc/posix-functions/getpeername.texi: Doc fix.
21196         * doc/posix-functions/getsockname.texi: Doc fix.
21197         * doc/posix-functions/getsockopt.texi: Doc fix.
21198         * doc/posix-functions/ioctl.texi: Doc fix.
21199         * doc/posix-functions/listen.texi: Doc fix.
21200         * doc/posix-functions/recv.texi: Doc fix.
21201         * doc/posix-functions/recvfrom.texi: Doc fix.
21202         * doc/posix-functions/send.texi: Doc fix.
21203         * doc/posix-functions/sendto.texi: Doc fix.
21204         * doc/posix-functions/setsockopt.texi: Doc fix.
21205         * doc/posix-functions/shutdown.texi: Doc fix.
21206         * doc/posix-functions/socket.texi: Doc fix.
21207
21208 2008-10-20  Bruno Haible  <bruno@clisp.org>
21209
21210         Take into account the role of SIGABRT_COMPAT on Windows 2008.
21211         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
21212         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
21213         as an alias for SIGABRT.
21214         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
21215         (sigaction): Map it to SIGABRT.
21216         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
21217
21218 2008-10-20  Bruno Haible  <bruno@clisp.org>
21219
21220         * lib/fts.c: Don't include lstat.h.
21221         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
21222
21223         Move the lstat() declaration to <sys/stat.h>.
21224         * lib/lstat.h: Remove file.
21225         * lib/sys_stat.in.h: Add special invocation convention.
21226         (lstat): New declaration.
21227         * lib/lstat.c (orig_lstat): New function.
21228         (rpl_lstat): Use orig_lstat instead of lstat.
21229         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
21230         AC_C_INLINE. Set REPLACE_LSTAT.
21231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
21232         and REPLACE_LSTAT.
21233         * modules/lstat (Files): Remove lib/lstat.h.
21234         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
21235         (Include): Specify <sys/stat.h> instead of lstat.h.
21236         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
21237         REPLACE_LSTAT.
21238         * NEWS: Mention the change.
21239
21240 2008-10-20  Bruno Haible  <bruno@clisp.org>
21241
21242         * modules/posix_spawn-tests: New file.
21243         * tests/test-posix_spawn3.c: New file.
21244
21245 2008-10-20  Bruno Haible  <bruno@clisp.org>
21246
21247         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
21248         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
21249         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
21250         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
21251         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
21252
21253 2008-10-20  Bruno Haible  <bruno@clisp.org>
21254
21255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
21256         of posix_spawn on AIX 5.3.
21257
21258 2008-10-20  Bruno Haible  <bruno@clisp.org>
21259
21260         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
21261
21262 2008-10-20  Bruno Haible  <bruno@clisp.org>
21263
21264         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
21265         of AC_LANG_PROGRAM.
21266
21267 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21268
21269         * lib/netdb.in.h: Don't define GNU specific constants until they
21270         are supported or needed.  Reported by Bruno Haible
21271         <bruno@clisp.org>.
21272
21273 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21274
21275         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
21276
21277 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21278
21279         * lib/getaddrinfo.h: Remove file.
21280         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
21281         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
21282         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
21283         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
21284         * modules/netdb: Substitute GNULIB_GETADDRINFO.
21285         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
21286         * tests/test-getaddrinfo.c: Likewise.
21287         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
21288         * NEWS: Mention change.
21289
21290 2008-10-19  Bruno Haible  <bruno@clisp.org>
21291
21292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
21293
21294 2008-10-19  Bruno Haible  <bruno@clisp.org>
21295
21296         * lib/wait-process.c: Include simply <sys/wait.h>.
21297         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
21298         WIFSTOPPED): Remove fallback definitions.
21299         * modules/wait-process (Depends-on): Add sys_wait.
21300
21301         New module 'sys_wait'.
21302         * modules/sys_wait: New file.
21303         * lib/sys_wait.in.h: New file, partially copied from
21304         lib/wait-process.c.
21305         * m4/sys_wait_h.m4: New file.
21306         * doc/posix-headers/sys_wait.texi: Mention the new module.
21307
21308 2008-10-19  Bruno Haible  <bruno@clisp.org>
21309
21310         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
21311
21312 2008-10-19  Bruno Haible  <bruno@clisp.org>
21313
21314         Assume that waitpid() fills an 'int' status, not a 'union wait'.
21315         * lib/wait-process.c (WAIT_T): Remove type.
21316         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
21317         (wait_subprocess): Update.
21318
21319 2008-10-19  Bruno Haible  <bruno@clisp.org>
21320
21321         New module 'atoll'.
21322         * modules/atoll: New file.
21323         * lib/stdlib.in.h (atoll): New declaration.
21324         * lib/atoll.c: New file, from glibc with modifications.
21325         * m4/atoll.m4: New file.
21326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
21327         HAVE_ATOLL.
21328         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
21329         * doc/posix-functions/atoll.texi: Mention the new module.
21330
21331 2008-10-19  Bruno Haible  <bruno@clisp.org>
21332
21333         Add strtoull() declaration to <stdlib.h>.
21334         * lib/stdlib.in.h (strtoull): New declaration.
21335         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
21336         Set HAVE_STRTOULL.
21337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
21338         HAVE_STRTOULL.
21339         * modules/strtoull (Depends-on): Add stdlib.
21340         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21341         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
21342         HAVE_STRTOULL.
21343
21344 2008-10-19  Bruno Haible  <bruno@clisp.org>
21345
21346         Add strtoll() declaration to <stdlib.h>.
21347         * lib/stdlib.in.h (strtoll): New declaration.
21348         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
21349         Set HAVE_STRTOLL.
21350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
21351         HAVE_STRTOLL.
21352         * modules/strtoll (Depends-on): Add stdlib.
21353         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21354         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
21355
21356 2008-10-19  Bruno Haible  <bruno@clisp.org>
21357
21358         * modules/bcopy (Depends-on): Add strings.
21359         (Include): Specify <strings.h>.
21360
21361 2008-10-19  Bruno Haible  <bruno@clisp.org>
21362
21363         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
21364
21365 2008-10-19  Bruno Haible  <bruno@clisp.org>
21366
21367         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
21368         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
21369         mingw.
21370
21371 2008-10-19  Bruno Haible  <bruno@clisp.org>
21372
21373         * lib/atanl.c: Don't include isnanl.h.
21374         * lib/cosl.c: Likewise.
21375         * lib/ldexpl.c: Likewise.
21376         * lib/logl.c: Likewise.
21377         * lib/sinl.c: Likewise.
21378         * lib/sqrtl.c: Likewise.
21379         * lib/tanl.c: Likewise.
21380
21381         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
21382         * lib/isnanf.h: Remove file.
21383         * lib/isnand.h: Remove file.
21384         * lib/isnanl.h: Remove file.
21385         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
21386         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
21387         macros.
21388         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
21389         HAVE_ISNANF, don't define it as a C macro.
21390         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
21391         HAVE_ISNAND, don't define it as a C macro.
21392         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
21393         HAVE_ISNANL, don't define it as a C macro.
21394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
21395         HAVE_ISNAN[FDL].
21396         * modules/isnanf (Files): Remove lib/isnanf.h.
21397         (Depends-on): Add math.
21398         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21399         (Include): Specify <math.h> instead of isnanf.h.
21400         * modules/isnand (Files): Remove lib/isnand.h.
21401         (Depends-on): Add math.
21402         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21403         (Include): Specify <math.h> instead of isnand.h.
21404         * modules/isnanl (Files): Remove lib/isnanl.h.
21405         (Depends-on): Add math.
21406         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21407         (Include): Specify <math.h> instead of isnanl.h.
21408         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
21409         HAVE_ISNAN[FDL].
21410         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
21411         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
21412         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
21413         * NEWS: Mention the change.
21414
21415 2008-10-18  Bruno Haible  <bruno@clisp.org>
21416
21417         Add getusershell(), setusershell(), endusershell() declarations to
21418         <unistd.h>.
21419         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
21420         declarations.
21421         * lib/getusershell.c: Include unistd.h.
21422         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
21423         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21424         HAVE_GETUSERSHELL.
21425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
21426         and HAVE_GETUSERSHELL.
21427         * modules/getusershell (Depends-on): Add unistd, extensions.
21428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21429         (Include): Specify <unistd.h>.
21430         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
21431         HAVE_GETUSERSHELL.
21432
21433 2008-10-18  Bruno Haible  <bruno@clisp.org>
21434
21435         Add a getloadavg() declaration to <stdlib.h>.
21436         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
21437         getloadavg declaration.
21438         (getloadavg): New declaration.
21439         * lib/getloadavg.c: Include <stdlib.h> first.
21440         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
21441         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
21442         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
21443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
21444         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21445         * modules/getloadavg (Depends-on): Add stdlib, extensions.
21446         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21447         (Include): Specify <stdlib.h>.
21448         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
21449         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21450
21451 2008-10-18  Bruno Haible  <bruno@clisp.org>
21452
21453         * lib/dirchownmod.c: Don't include lchmod.h.
21454
21455         Move the lchmod() declaration to <sys/stat.h>.
21456         * lib/lchmod.h: Remove file.
21457         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
21458         (lchmod): New declaration, moved here from lib/lchown.h.
21459         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
21460         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
21461         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
21462         and HAVE_LCHMOD.
21463         * modules/lchmod (Files): Remove lib/lchmod.h.
21464         (Depends-on): Add sys_stat, extensions.
21465         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
21466         (Include): Specify <sys/stat.h> instead of lchmod.h.
21467         * modules/sys_stat (Depends-on): Add link-warning.
21468         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
21469         definition of GL_LINK_WARNING.
21470         * NEWS: Mention the change.
21471
21472 2008-10-18  Bruno Haible  <bruno@clisp.org>
21473
21474         * lib/fchdir.c: Don't include dirfd.h.
21475         * lib/fts.c: Likewise.
21476         * lib/getcwd.c: Likewise.
21477         * lib/glob.c: Likewise.
21478
21479         Move the dirfd() declaration to <dirent.h>.
21480         * lib/dirfd.h: Remove file.
21481         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
21482         (dirfd): New declaration.
21483         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
21484         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
21485         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
21486         HAVE_DECL_DIRFD.
21487         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
21488         HAVE_DECL_DIRFD.
21489         * modules/dirfd (Files): Remove lib/dirfd.h.
21490         (Depends-on): Add dirent, extensions.
21491         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
21492         (Include): Specify <dirent.h> instead of dirfd.h.
21493         * modules/dirent (Depends-on): Add link-warning.
21494         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
21495         definition of GL_LINK_WARNING.
21496         * NEWS: Mention the change.
21497
21498 2008-10-18  Bruno Haible  <bruno@clisp.org>
21499
21500         Move the euidaccess() declaration to <unistd.h>.
21501         * lib/euidaccess.h: Remove file.
21502         * lib/unistd.in.h (euidaccess): New declaration.
21503         * lib/euidaccess.c: Don't include euidaccess.h.
21504         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
21505         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
21506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
21507         and HAVE_EUIDACCESS.
21508         * modules/euidaccess (Files): Remove lib/euidaccess.h.
21509         (Depends-on): Add unistd.
21510         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21511         (Include): Specify <unistd.h> instead of euidaccess.h.
21512         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
21513         HAVE_EUIDACCESS.
21514         * NEWS: Mention the change.
21515
21516 2008-10-18  Bruno Haible  <bruno@clisp.org>
21517
21518         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
21519
21520         Move the getdomainname() declaration to <unistd.h>.
21521         * lib/getdomainname.h: Remove file.
21522         * lib/unistd.in.h (getdomainname): New declaration.
21523         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
21524         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21525         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21526         HAVE_GETDOMAINNAME.
21527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21528         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
21529         * modules/getdomainname (Files): Remove lib/getdomainname.h.
21530         (Depends-on): Add unistd, extensions.
21531         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21532         (Includes): Specify <unistd.h> instead of getdomainname.h.
21533         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
21534         HAVE_GETDOMAINNAME.
21535         * NEWS: Mention the change.
21536
21537 2008-10-18  Bruno Haible  <bruno@clisp.org>
21538
21539         * modules/dirent: New file.
21540         * m4/dirent_h.m4: New file.
21541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
21542         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
21543         * modules/fchdir (Files): Remove lib/dirent.in.h.
21544         (Depends-on): Add dirent.
21545         (Makefile.am): Move rules to modules/dirent.
21546         * doc/posix-headers/dirent.texi: Mention the new module.
21547
21548 2008-10-18  Bruno Haible  <bruno@clisp.org>
21549
21550         Avoid -Wunused-parameter warnings in public gnulib header files.
21551         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
21552         macro.
21553         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
21554
21555 2008-10-18  Bruno Haible  <bruno@clisp.org>
21556
21557         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
21558         * doc/glibc-functions/error.texi: Mention the module 'error'.
21559         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
21560         * doc/glibc-functions/getdomainname.texi: Mention the module
21561         'getdomainname'.
21562         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
21563         * doc/glibc-functions/getpagesize.texi: Mention the module
21564         'getpagesize'.
21565         * doc/glibc-functions/getusershell.texi: Mention the module
21566         'getusershell'.
21567         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
21568         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
21569         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
21570         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
21571         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
21572         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
21573         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
21574         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
21575         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
21576         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
21577         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
21578         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
21579         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
21580         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
21581
21582 2008-10-17  Bruno Haible  <bruno@clisp.org>
21583
21584         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
21585         HP-UX and IRIX, use -0.0L.
21586         * tests/test-ceill.c (minus_zero): Likewise.
21587         * tests/test-floorl.c (minus_zero): Likewise.
21588         * tests/test-frexpl.c (minus_zero): Likewise.
21589         * tests/test-isnan.c (minus_zerol): Likewise.
21590         * tests/test-isnanl.h (minus_zero): Likewise.
21591         * tests/test-ldexpl.c (minus_zero): Likewise.
21592         * tests/test-roundl.c (minus_zero): Likewise.
21593         * tests/test-signbit.c (minus_zerol): Likewise.
21594         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21595         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21596         * tests/test-truncl.c (minus_zero): Likewise.
21597         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21598         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21599         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
21600         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21601
21602 2008-10-17  Bruno Haible  <bruno@clisp.org>
21603
21604         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
21605         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
21606         that it gets activated only for gcc >= 3.0.
21607         * lib/dirent.in.h: Likewise.
21608         * lib/errno.in.h: Likewise.
21609         * lib/fcntl.in.h: Likewise.
21610         * lib/float.in.h: Likewise.
21611         * lib/iconv.in.h: Likewise.
21612         * lib/inttypes.in.h: Likewise.
21613         * lib/locale.in.h: Likewise.
21614         * lib/math.in.h: Likewise.
21615         * lib/netdb.in.h: Likewise.
21616         * lib/netinet_in.in.h: Likewise.
21617         * lib/search.in.h: Likewise.
21618         * lib/signal.in.h: Likewise.
21619         * lib/spawn.in.h: Likewise.
21620         * lib/stdarg.in.h: Likewise.
21621         * lib/stdint.in.h: Likewise.
21622         * lib/stdio.in.h: Likewise.
21623         * lib/stdlib.in.h: Likewise.
21624         * lib/string.in.h: Likewise.
21625         * lib/strings.in.h: Likewise.
21626         * lib/sys_file.in.h: Likewise.
21627         * lib/sys_ioctl.in.h: Likewise.
21628         * lib/sys_select.in.h: Likewise.
21629         * lib/sys_socket.in.h: Likewise.
21630         * lib/sys_stat.in.h: Likewise.
21631         * lib/sys_time.in.h: Likewise.
21632         * lib/sysexits.in.h: Likewise.
21633         * lib/time.in.h: Likewise.
21634         * lib/unistd.in.h: Likewise.
21635         * lib/wchar.in.h: Likewise.
21636         * lib/wctype.in.h: Likewise.
21637         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21638
21639 2008-10-17  Jim Meyering  <meyering@redhat.com>
21640
21641         ignore-value: don't depend on inline module
21642         * modules/ignore-value (Depends-on): Remove 'inline'.
21643         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21644         Suggestion from Bruno Haible.
21645
21646 2008-10-17  Bruno Haible  <bruno@clisp.org>
21647
21648         New implementation of condition variables for Win32.
21649         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21650         (gl_linked_waitqueue_t): New type.
21651         (gl_cond_t): Use it.
21652         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21653         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21654         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21655         (glthread_cond_init_func, glthread_cond_wait_func,
21656         glthread_cond_timedwait_func, glthread_cond_signal_func,
21657         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21658         Reimplemented on the basis of gl_linked_waitqueue_t.
21659         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21660         gl_waitqueue_t.
21661         (gl_rwlock_t): Update.
21662         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21663
21664 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21665
21666         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21667         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21668
21669 2008-10-17  Jim Meyering  <meyering@redhat.com>
21670
21671         ignore-value: new module
21672         * modules/ignore-value: New file.
21673         * lib/ignore-value.h: New file.
21674         * MODULES.html.sh (Compiler warning management): New section,
21675         just for this module.  More to come.
21676
21677 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21678
21679         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21680         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21681         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21682
21683 2008-10-16  Jim Meyering  <meyering@redhat.com>
21684
21685         openat-die.c: avoid 'no previous prototype' warning
21686         * lib/openat-die.c: Include "openat.h".
21687         Reported by Reuben Thomas <rrt@sc3d.org>.
21688
21689 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21690
21691         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21692         * lib/netdb.in.h: Fix typo.
21693         Reported by Bruno Haible  <bruno@clisp.org>
21694
21695         * lib/netdb.in.h: Include sys/socket.h for platforms without
21696         netdb.h, to get structures like hostent on MinGW.
21697         * modules/netdb (Depends-on): Add sys_socket.
21698
21699 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21700
21701         * modules/netdb, modules/netdb-tests: New file.
21702         * m4/netdb_h.m4: New file.
21703         * lib/netdb.in.h: Add, currently just an empty file pending
21704         definitions.
21705         * tests/test-netdb.c: New file.
21706         * doc/posix-headers/netdb.texi: Mention that we replace it if
21707         needed.
21708         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21709         netdb.
21710
21711 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21712
21713         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21714         with code.
21715
21716 2008-10-13  Bruno Haible  <bruno@clisp.org>
21717
21718         * lib/glthread/cond.c (glthread_cond_wait_func,
21719         glthread_cond_timedwait_func): Add a comment.
21720
21721 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21722
21723         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21724         * tests/test-select.c: Likewise,
21725
21726 2008-10-13  Bruno Haible  <bruno@clisp.org>
21727
21728         * lib/glthread/cond.c (glthread_cond_wait_func,
21729         glthread_cond_timedwait_func): Fix variable name.
21730         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21731
21732 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21733
21734         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21736         struct sockaddr.sa_len.
21737         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21738
21739 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21740
21741         * build-aux/pmccabe2html: Add css and css_url parameters.
21742
21743 2008-10-12  Bruno Haible  <bruno@clisp.org>
21744
21745         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21746         calling aclx_get.
21747         Reported by Rainer Tammer <tammer@tammer.net>.
21748
21749 2008-10-12  Bruno Haible  <bruno@clisp.org>
21750
21751         Use msvcrt aware primitives for creation/termination of Win32 threads.
21752         * lib/glthread/thread.c: Include <process.h>.
21753         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21754         (wrapper_func): Update signature.
21755         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21756
21757 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21758             Bruno Haible  <bruno@clisp.org>
21759
21760         Provide a Win32 implementation of the 'cond' module.
21761         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21762         * lib/glthread/cond.c (glthread_cond_init_func,
21763         glthread_cond_wait_func, glthread_cond_timedwait_func,
21764         glthread_cond_signal_func, glthread_cond_broadcast_func,
21765         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21766         * modules/cond (Dependencies): Add gettimeofday.
21767
21768 2008-10-11  Bruno Haible  <bruno@clisp.org>
21769
21770         Make sleep work on older versions of mingw.
21771         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21772         only whether it exists.
21773         * doc/posix-functions/sleep.texi: Mention the problem with older
21774         versions of mingw.
21775
21776 2008-10-11  Bruno Haible  <bruno@clisp.org>
21777
21778         New module 'shutdown'.
21779         * modules/shutdown: New file.
21780         * lib/sys_socket.in.h (shutdown): New declaration.
21781         * lib/winsock.c (shutdown): New function.
21782         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21783         GNULIB_SHUTDOWN.
21784         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21785         * doc/posix-functions/shutdown.texi: Document the new module.
21786
21787 2008-10-11  Jim Meyering  <meyering@redhat.com>
21788
21789         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21790
21791 2008-10-11  Bruno Haible  <bruno@clisp.org>
21792
21793         New module 'fclose'.
21794         * modules/fclose: New file.
21795         * lib/stdio.in.h (fclose): New declaration.
21796         * lib/fclose.c: New file.
21797         * m4/fclose.m4: New file.
21798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21799         REPLACE_FCLOSE.
21800         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21801         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21802         REPLACE_FCLOSE.
21803         * modules/close (Depends-on): fclose.
21804         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21805
21806 2008-10-11  Bruno Haible  <bruno@clisp.org>
21807
21808         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21809         set errno and don't call _close.
21810
21811 2008-10-10  Bruno Haible  <bruno@clisp.org>
21812
21813         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21814         ACL, not afterwards. Fixes test failure on Cygwin.
21815
21816 2008-10-09  Ben Pfaff  <blp@gnu.org>
21817
21818         * build-aux/announce-gen: Fix gnulib version related part of usage
21819         message.  Die with a useful error message if no tarballs are
21820         found.
21821
21822 2008-10-10  Jim Meyering  <meyering@redhat.com>
21823
21824         bootstrap: use git's --depth=N option only if it's supported
21825         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21826         recognize the --depth option.  Reported by Pádraig Brady.
21827
21828 2008-10-09  Bruno Haible  <bruno@clisp.org>
21829
21830         New module 'ioctl'.
21831         * modules/ioctl: New file.
21832         * lib/sys_socket.in.h (ioctl): Remove declaration.
21833         * lib/winsock.c: Include <sys/ioctl.h>.
21834         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21835         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21836         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21837         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21838         * doc/posix-functions/ioctl.texi: Mention the new module.
21839
21840 2008-10-09  Bruno Haible  <bruno@clisp.org>
21841
21842         New module 'sys_ioctl'.
21843         * lib/sys_ioctl.in.h: New file.
21844         * m4/sys_ioctl_h.m4: New file.
21845         * modules/sys_ioctl: New file.
21846         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21847
21848 2008-10-09  Bruno Haible  <bruno@clisp.org>
21849
21850         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21851         * lib/winsock.c: Include <stdarg.h>.
21852         (rpl_ioctl): Change to second argument 'int' and then varargs.
21853
21854 2008-10-09  Bruno Haible  <bruno@clisp.org>
21855
21856         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21857         when the sys_socket module is present and the system has <winsock2.h>.
21858
21859 2008-10-09  Bruno Haible  <bruno@clisp.org>
21860
21861         * doc/posix-functions/close.texi: Mention module 'close' instead of
21862         module 'sys_socket'.
21863
21864 2008-10-09  Bruno Haible  <bruno@clisp.org>
21865
21866         * doc/glibc-headers/sys_ioctl.texi: New file.
21867         * doc/gnulib.texi: Include it.
21868
21869 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21870             Bruno Haible  <bruno@clisp.org>
21871
21872         Combine the two replacements of 'close'.
21873         * lib/sys_socket.in.h (close): Define to a reminder to include
21874         <unistd.h>.
21875         (_gl_close_fd_maybe_socket): New declaration.
21876         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21877         * lib/winsock.c (close): Remove undefinition.
21878         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21879         needed for the gnulib module 'close'.
21880         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21881         define to an error symbol or to a warning, if suitable.
21882         * lib/close.c: Include <sys/socket.h>.
21883         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21884         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21885         UNISTD_H_HAVE_WINSOCK2_H.
21886         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21888         UNISTD_H_HAVE_WINSOCK2_H.
21889         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21890         (configure.ac): Set a module indicator.
21891         (Makefile.am): Substitute GNULIB_CLOSE.
21892         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21893         * modules/poll-tests (Depends-on): Add close.
21894         * modules/select-tests (Depends-on): Likewise.
21895
21896 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21897             Bruno Haible  <bruno@clisp.org>
21898
21899         New module 'close'.
21900         * modules/close: New file.
21901         * lib/unistd.in.h (close): Move declaration out of the
21902         FCHDIR_REPLACEMENT scope.
21903         (_gl_unregister_fd): New declaration.
21904         * lib/close.c: New file.
21905         * lib/fchdir.c (rpl_close): Remove function.
21906         * m4/close.m4: New file.
21907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21908         close.
21909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21910         REPLACE_CLOSE.
21911         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21912         REPLACE_CLOSE.
21913         * modules/fchdir (Depends-on): Add close.
21914
21915 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21916             Bruno Haible  <bruno@clisp.org>
21917
21918         * lib/fcntl.in.h (open): Simplify conditionals.
21919         (_gl_register_fd): New declaration.
21920         * lib/fchdir.c (rpl_open): Remove function.
21921         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21922         also.
21923         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21925         open.
21926
21927 2008-10-09  Jim Meyering  <meyering@redhat.com>
21928
21929         GNUmakefile: use the more name-space-friendly "_version"
21930         * top/GNUmakefile (_dummy): Update.
21931         (_version): Rename from "version".
21932
21933 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21934             Bruno Haible  <bruno@clisp.org>
21935
21936         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21937         rpl_close.
21938         (_gl_register_fd): New function, extracted from rpl_open.
21939         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21940         (rpl_open, rpl_opendir): Use _gl_register_fd.
21941
21942 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21943
21944         Fix organization of 'open' replacement.
21945         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21946         (gl_FUNC_OPEN): Use it.
21947         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21948
21949 2008-10-08  Bruno Haible  <bruno@clisp.org>
21950
21951         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21952
21953 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21954
21955         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21956         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21957         listen).
21958
21959 2008-10-08  Eric Blake  <ebb9@byu.net>
21960
21961         GNUmakefile: add 'make version' target
21962         * top/GNUmakefile (_curr-ver): Split version update rules...
21963         (version): ...into a target.
21964
21965 2008-10-07  Bruno Haible  <bruno@clisp.org>
21966
21967         Use a more portable replacement expression for -0.0L.
21968         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21969         instead of -0.0L. Fix m4 quotation.
21970
21971         * tests/test-signbit.c: Include <float.h>.
21972         (minus_zero): New variable.
21973         (test_signbitl): Use minus_zero instead of -zero.
21974         * modules/signbit-tests (Depends-on): Add float.
21975
21976         * tests/test-ceill.c: Include <float.h>.
21977         (zero): Remove variable.
21978         (minus_zero): New variable.
21979         (main): Use minus_zero instead of -zero.
21980         * modules/ceill-tests (Depends-on): Add float.
21981
21982         * tests/test-floorl.c: Include <float.h>.
21983         (zero): Remove variable.
21984         (minus_zero): New variable.
21985         (main): Use minus_zero instead of -zero.
21986         * modules/floorl-tests (Depends-on): Add float.
21987
21988         * tests/test-roundl.c: Include <float.h>.
21989         (zero): Remove variable.
21990         (minus_zero): New variable.
21991         (main): Use minus_zero instead of -zero.
21992         * modules/roundl-tests (Depends-on): Add float.
21993
21994         * tests/test-truncl.c: Include <float.h>.
21995         (zero): Remove variable.
21996         (minus_zero): New variable.
21997         (main): Use minus_zero instead of -zero.
21998         * modules/truncl-tests (Depends-on): Add float.
21999
22000         * tests/test-frexpl.c (zero): Remove variable.
22001         (minus_zero): New variable.
22002         (main): Use minus_zero instead of -zero.
22003         * modules/frexpl-tests (Depends-on): Add float.
22004
22005         * tests/test-isnan.c (zerol): Remove variable.
22006         (minus_zerol): New variable.
22007         (test_long_double): Use minus_zerol instead of -zerol.
22008         * modules/isnan-tests (Depends-on): Add float.
22009
22010         * tests/test-isnanl.h (zero): Remove variable.
22011         (minus_zero): New variable.
22012         (main): Use minus_zero instead of -zero.
22013         * modules/isnanl-nolibm-tests (Depends-on): Add float.
22014         * modules/isnanl-tests (Depends-on): Add float.
22015
22016         * tests/test-ldexpl.c (zero): Remove variable.
22017         (minus_zero): New variable.
22018         (main): Use minus_zero instead of -zero.
22019         * modules/ldexpl-tests (Depends-on): Add float.
22020
22021         * tests/test-snprintf-posix.h (zerol): Remove variable.
22022         (minus_zerol): New variable.
22023         (test_function): Use minus_zerol instead of -zerol.
22024         * modules/snprintf-posix-tests (Depends-on): Add float.
22025         * modules/vsnprintf-posix-tests (Depends-on): Add float.
22026
22027         * tests/test-sprintf-posix.h (zerol): Remove variable.
22028         (minus_zerol): New variable.
22029         (test_function): Use minus_zerol instead of -zerol.
22030         * modules/sprintf-posix-tests (Depends-on): Add float.
22031         * modules/vsprintf-posix-tests (Depends-on): Add float.
22032
22033         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
22034         (minus_zerol): New variable.
22035         (test_function): Use minus_zerol instead of -zerol.
22036         * modules/vasnprintf-posix-tests (Depends-on): Add float.
22037
22038         * tests/test-vasprintf-posix.c (zerol): Remove variable.
22039         (minus_zerol): New variable.
22040         (test_function): Use minus_zerol instead of -zerol.
22041         * modules/vasprintf-posix-tests (Depends-on): Add float.
22042
22043 2008-10-07  Simon Josefsson  <simon@josefsson.org>
22044
22045         * MODULES.html.sh (Support for building documentation): Mention
22046         pmccabe2html.  Sort entries.
22047
22048         Add pmccabe2html module, from gnupdf.
22049         * build-aux/pmccabe.css: New file.
22050         * build-aux/pmccabe2html: New file.
22051         * m4/pmccabe2html.m4: New file.
22052         * modules/pmccabe2html: New file.
22053
22054 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
22055
22056         flock: new module
22057         * MODULES.html.sh: Add to list of modules.
22058         * lib/flock.c: flock implementation for Windows and Unix systems
22059         which have fcntl.
22060         * doc/glibc-functions/flock.texi: Update documentation.
22061         * lib/sys_file.in.h: <sys/file.h> header file.
22062         * m4/flock.m4: M4 macros.
22063         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
22064         * modules/flock: flock module.
22065         * modules/flock-tests: flock tests module.
22066         * modules/sys_file: sys/file.h module.
22067         * tests/test-flock.c: test suite for flock.
22068
22069 2008-10-06  Jim Meyering  <meyering@redhat.com>
22070
22071         bootstrap: check for LT_INIT more portably still ;-)
22072         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
22073         Spotted by Bruno Haible.
22074
22075 2008-10-06  Eric Blake  <ebb9@byu.net>
22076
22077         test-signbit: avoid tripping Irix cc bug on -0.0L
22078         * tests/test-signbit.c (minus_zerol): Delete, and replace with
22079         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
22080         entire testsuite consistent and avoids an Irix 6.2 bug.
22081
22082 2008-10-05  Bruno Haible  <bruno@clisp.org>
22083             Jim Meyering  <jim@meyering.net>
22084
22085         Add an option for ignoring EPIPE during close_stdout.
22086         * lib/closeout.h: Include <stdbool.h>.
22087         (close_stdout_set_ignore_EPIPE): New declaration.
22088         * lib/closeout.c: Include <stdbool.h>.
22089         (ignore_EPIPE): New variable.
22090         (close_stdout_set_ignore_EPIPE): New function.
22091         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
22092         * lib/close-stream.c (close_stream): Mention the possible EPIPE
22093         failure.
22094         * modules/closeout (Depends-on): Add stdbool.
22095
22096 2008-10-05  Bruno Haible  <bruno@clisp.org>
22097
22098         * modules/accept: New file.
22099         * modules/bind: New file.
22100         * modules/connect: New file.
22101         * modules/getpeername: New file.
22102         * modules/getsockname: New file.
22103         * modules/getsockopt: New file.
22104         * modules/listen: New file.
22105         * modules/recv: New file.
22106         * modules/recvfrom: New file.
22107         * modules/send: New file.
22108         * modules/sendto: New file.
22109         * modules/setsockopt: New file.
22110         * modules/socket: New file.
22111         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
22112         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22113         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
22114         the particular module is requested. Add a link warning when the
22115         particular module is not requested.
22116         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
22117         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
22118         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
22119         the particular module is requested.
22120         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
22121         gl_SYS_SOCKET_H_DEFAULTS): New macros.
22122         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
22123         * modules/sys_socket (Depends-on): Add link-warning.
22124         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
22125         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
22126         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
22127         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
22128         GL_LINK_WARNING.
22129         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
22130         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
22131         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
22132         * doc/posix-functions/getpeername.texi: Mention the new module
22133         'getpeername'.
22134         * doc/posix-functions/getsockname.texi: Mention the new module
22135         'getsockname'.
22136         * doc/posix-functions/getsockopt.texi: Mention the new module
22137         'getsockopt'.
22138         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
22139         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
22140         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
22141         * doc/posix-functions/send.texi: Mention the new module 'send'.
22142         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
22143         * doc/posix-functions/setsockopt.texi: Mention the new module
22144         'setsockopt'.
22145         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
22146         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
22147         listen, connect, accept.
22148         * modules/select-tests (Depends-on): Likewise.
22149
22150 2008-10-05  Bruno Haible  <bruno@clisp.org>
22151
22152         * lib/winsock.c (strerror): Remove unused #undef.
22153         (rpl_close): Remove unused local variable.
22154
22155         * modules/sys_socket (Depends-on); Add errno.
22156
22157 2008-10-05  Bruno Haible  <bruno@clisp.org>
22158
22159         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
22160         (select): Add a link warning when the 'select' module is not used.
22161         * modules/sys_select (Depends-on): Add link-warning.
22162         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
22163         Suggested by Paolo Bonzini.
22164
22165 2008-10-05  Jim Meyering  <meyering@redhat.com>
22166
22167         bootstrap: check for LT_INIT more portably
22168         * build-aux/bootstrap: Avoid using grep -E, since it's not
22169         portable enough.  Suggestion from Bruno Haible.
22170
22171 2008-10-05  Bruno Haible  <bruno@clisp.org>
22172
22173         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
22174         as being fixed by gnulib.
22175
22176 2008-10-05  Bruno Haible  <bruno@clisp.org>
22177
22178         * modules/select-tests: New file, mostly copied from
22179         modules/sys_select-tests.
22180         * tests/test-select.c: New file, mostly copied from
22181         tests/test-sys_select.c.
22182         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
22183         * modules/sys_select-tests (Depends-on): Remove all dependencies.
22184         (Makefile.am): Remove test_sys_select_LDADD.
22185
22186         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
22187         to an undefined symbol, for an error message.
22188         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
22189         (gl_SYS_SELECT_H_DEFAULTS): New macro.
22190         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
22191         winsock-select.c here.
22192         * modules/sys_select (Files): Remove lib/winsock-select.c.
22193         (Depends-on): Remove alloca.
22194         (Makefile.am): Substitute GNULIB_SELECT.
22195         * modules/select: New file.
22196         * doc/posix-functions/select.texi: Update.
22197
22198 2008-10-05  Bruno Haible  <bruno@clisp.org>
22199
22200         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
22201         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
22202         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
22203         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
22204         getdtablesize.
22205         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22206         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22207
22208 2008-10-05  Bruno Haible  <bruno@clisp.org>
22209
22210         * modules/getdtablesize-tests: New file.
22211         * tests/test-getdtablesize.c: New file.
22212
22213         New module 'getdtablesize'.
22214         * lib/unistd.in.h (getdtablesize): New declaration.
22215         * lib/getdtablesize.c: New file.
22216         * m4/getdtablesize.m4: New file.
22217         * modules/getdtablesize: New file.
22218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22219         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
22220         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
22221         HAVE_GETDTABLESIZE.
22222         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
22223
22224 2008-10-05  Bruno Haible  <bruno@clisp.org>
22225
22226         * modules/sched (Makefile.am): Fix typo.
22227         Reported by Simon Josefsson.
22228
22229 2008-10-05  Jim Meyering  <meyering@redhat.com>
22230
22231         bootstrap: check for LT_INIT, too
22232         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
22233         are deprecated.  Suggestion from Ralf Wildenhues.
22234
22235 2008-10-05  Bruno Haible  <bruno@clisp.org>
22236
22237         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
22238         overriding them by ours.
22239         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
22240
22241 2008-10-05  Jim Meyering  <meyering@redhat.com>
22242
22243         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
22244         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
22245         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
22246
22247 2008-10-04  Bruno Haible  <bruno@clisp.org>
22248
22249         * modules/dup2 (License): Change to LGPLv2+.
22250         * modules/sleep (License): Likewise.
22251         * modules/perror (License): Likewise.
22252         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
22253         Blake.
22254         * modules/signal (License): Likewise.
22255         * modules/sigprocmask (License): Likewise.
22256         * modules/raise (License): Change to LGPLv2+, with approval by Jim
22257         Meyering.
22258
22259 2008-10-04  Bruno Haible  <bruno@clisp.org>
22260
22261         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
22262         Reported by Rainer Tammer <tammer@tammer.net>.
22263
22264 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
22265             Bruno Haible  <bruno@clisp.org>
22266
22267         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
22268         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
22269         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
22270
22271 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
22272
22273         filevercmp: new module
22274         * lib/filevercmp.h: New function filevercmp comparing version strings.
22275         * lib/filevercmp.c: Implementation of filevercmp function.
22276         * modules/filevercmp: Module metadata.
22277         * tests/test-filevercmp.c: Unit test for new module.
22278         * modules/filevercmp-tests: Unit test metadata.
22279         * MODULES.html.sh: Add filevercmp module.
22280
22281 2008-10-03  Bruno Haible  <bruno@clisp.org>
22282
22283         * lib/c-ctype.h: Add comment.
22284         Reported by Jim Meyering.
22285
22286 2008-10-02  Bruno Haible  <bruno@clisp.org>
22287
22288         * modules/posix_spawn-internal (Depends-on): Add 'open'.
22289
22290 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22291
22292         * build-aux/bootstrap: Allow renaming bootstrap, and change the
22293         name of bootstrap.conf accordingly.
22294
22295 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22296
22297         * build-aux/bootstrap: Install git-merge-changelog configuration
22298         items into .gitconfig if needed.
22299
22300 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22301
22302         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
22303         git repository, and initialize/update it accordingly.
22304
22305 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
22306
22307         * modules/fsync-tests: New file.
22308         * tests/test-fsync.c: New file.
22309
22310         New module 'fsync'.
22311         * lib/fsync.c: New file.
22312         * m4/fsync.m4: New file.
22313         * modules/fsync: New file.
22314         * lib/unistd.in.h (fsync): New declaration.
22315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
22316         GNULIB_FSYNC and HAVE_FSYNC.
22317         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
22318         * MODULES.html.sh (posix_functions): Add fsync.
22319         * doc/posix-functions/fsync.texi: Mention the new module.
22320
22321 2008-10-02  Jim Meyering  <meyering@redhat.com>
22322
22323         fts.c: sync with similar code from coreutils' remove.c
22324         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
22325         Guard also with "#if defined __linux__", since for now at least,
22326         this code is Linux-kernel-specific.
22327
22328 2008-10-02  Jim Meyering  <meyering@redhat.com>
22329
22330         fts: bug fixes
22331         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
22332         Include <sys/vfs.h>, not <sys/statfs.h>.
22333
22334         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
22335         Include <sys/vfs.h>, not <sys/statfs.h>.
22336
22337 2008-10-01  Bruno Haible  <bruno@clisp.org>
22338
22339         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
22340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
22341         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
22342         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
22343         * doc/posix-functions/posix_spawnp.texi: Likewise.
22344         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
22345         whether posix_spawn actually works.
22346         * m4/pipe.m4 (gl_PIPE): Likewise.
22347         * modules/execute (Files): Add m4/posix_spawn.m4.
22348         * modules/pipe (Files): Add m4/posix_spawn.m4.
22349         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
22350
22351 2008-10-01  Jim Meyering  <meyering@redhat.com>
22352
22353         remove trailing spaces
22354         * NEWS: Likewise.
22355         * lib/poll.c (poll): Likewise.
22356         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
22357         * lib/winsock.c (rpl_close): Likewise.
22358         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
22359         * modules/yield: Likewise.
22360         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
22361         * tests/test-sys_select.c (connect_to_socket): Likewise.
22362
22363         fts.c: adjust a new interface to be more generally useful
22364         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
22365         (fts_build): Adjust caller.
22366
22367 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22368
22369         * modules/cond-tests: New file.
22370         * tests/test-cond.c: New file.
22371
22372 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22373             Bruno Haible  <bruno@clisp.org>
22374
22375         * modules/cond (Dependencies): Add errno, time.
22376         * lib/glthread/cond.h: Include <time.h>.
22377         (gl_cond_define, gl_cond_define_initialized): Use the same definition
22378         across platforms.
22379
22380 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22381             Bruno Haible  <bruno@clisp.org>
22382
22383         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
22384
22385 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22386             Bruno Haible  <bruno@clisp.org>
22387
22388         * modules/tls-tests (Depends-on): Add thread, yield.
22389         (configure.ac): Remove all checks.
22390         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
22391         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22392         gl_thread_self): Remove definitions. Include glthread/thread.h and
22393         glthread/yield.h instead.
22394         (test_tls): Pass an additional NULL argument to gl_thread_join.
22395
22396 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22397             Bruno Haible  <bruno@clisp.org>
22398
22399         * modules/lock-tests (Depends-on): Add thread, yield.
22400         (configure.ac): Remove all checks.
22401         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
22402         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22403         gl_thread_self): Remove definitions. Include glthread/thread.h and
22404         glthread/yield.h instead.
22405         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
22406         additional NULL argument to gl_thread_join.
22407
22408 2008-09-30  Bruno Haible  <bruno@clisp.org>
22409
22410         Fix the Win32 implementation of the 'thread' module.
22411         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
22412         pointer type.
22413         (gl_thread_self): Invoke gl_thread_self_func.
22414         (gl_thread_self_func): New declaration.
22415         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
22416         (do_init_self_key, init_self_key): New functions.
22417         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
22418         Remove some fields.
22419         (running_threads, running_lock): Remove variables.
22420         (get_current_thread_handle): New function.
22421         (gl_thread_self_func, wrapper_func, glthread_create_func,
22422         glthread_join_func, gl_thread_exit_func): Largely rewritten and
22423         simplified.
22424
22425 2008-09-30  Bruno Haible  <bruno@clisp.org>
22426
22427         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
22428         files.
22429
22430 2008-09-30  Jim Meyering  <meyering@redhat.com>
22431
22432         fts.m4: correct the test for statfs.f_type
22433         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
22434         when checking for statfs.f_type.
22435
22436 2008-09-15  Simon Josefsson  <simon@josefsson.org>
22437
22438         tests: avoid some compiler warnings
22439         * tests/test-memchr.c (main): Pass NULL indirectly.
22440         * tests/test-getdate.c (main): Remove unused variable 'ret'.
22441
22442 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
22443
22444         getdate.y: disallow countable dayshifts like "4 yesterday ago"
22445         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
22446         exactly specified dayshifts.
22447         (dayshift): New rule.
22448         (rel): Add dayshift.
22449         (relative_time_table) [tomorrow, yesterday, today, now]:
22450         Use tDAY_SHIFT in place of tDAY_UNIT.
22451         * tests/test-getdate.c: Add tests for now-disallowed countable
22452         dayshifts, e.g., "4 yesterday ago".
22453
22454 2008-09-29  Bruno Haible  <bruno@clisp.org>
22455
22456         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
22457         * tests/test-posix_spawn1.in.sh: Renamed from
22458         tests/test-posix_spawn.in.sh.
22459         * tests/test-posix_spawn2.c: New file.
22460         * tests/test-posix_spawn2.in.sh: New file.
22461         * modules/posix_spawnp-tests (Files): Update.
22462         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
22463
22464 2008-09-29  Bruno Haible  <bruno@clisp.org>
22465
22466         Propagate effects of putenv/setenv/unsetenv to child processes.
22467         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
22468         * lib/pipe.c (create_pipe): Likewise.
22469
22470 2008-09-29  Bruno Haible  <bruno@clisp.org>
22471
22472         Enable use of shell scripts as executables in mingw.
22473         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
22474         run the program as a shell script.
22475         * lib/pipe.c (create_pipe): Likewise.
22476         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
22477         resulting array.
22478
22479 2008-09-29  Eric Blake  <ebb9@byu.net>
22480
22481         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
22482
22483 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
22484
22485         * doc/posix-functions/accept.texi: Update mingw problems.
22486         * doc/posix-functions/bind.texi: Update mingw problems.
22487         * doc/posix-functions/close.texi: Update mingw problems.
22488         * doc/posix-functions/connect.texi: Update mingw problems.
22489         * doc/posix-functions/getpeername.texi: Update mingw problems.
22490         * doc/posix-functions/getsockname.texi: Update mingw problems.
22491         * doc/posix-functions/getsockopt.texi: Update mingw problems.
22492         * doc/posix-functions/ioctl.texi: Update mingw problems.
22493         * doc/posix-functions/listen.texi: Update mingw problems.
22494         * doc/posix-functions/recv.texi: Update mingw problems.
22495         * doc/posix-functions/recvfrom.texi: Update mingw problems.
22496         * doc/posix-functions/select.texi: Update mingw problems.
22497         * doc/posix-functions/send.texi: Update mingw problems.
22498         * doc/posix-functions/sendto.texi: Update mingw problems.
22499         * doc/posix-functions/setsockopt.texi: Update mingw problems.
22500         * doc/posix-functions/socket.texi: Update mingw problems.
22501
22502 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
22503             Bruno Haible  <bruno@clisp.org>
22504
22505         * lib/sys_select.in.h: Include sys/time.h.
22506         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
22507         * modules/sys_select: Depend on sys_time.
22508         * tests/test-sys_select.c: Test that sys/select.h defines struct
22509         timeval fully.
22510
22511 2008-09-29  Bruno Haible  <bruno@clisp.org>
22512
22513         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
22514         * lib/sys_select.in.h: Likewise.
22515
22516 2008-09-29  Bruno Haible  <bruno@clisp.org>
22517
22518         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
22519
22520 2008-09-29  Bruno Haible  <bruno@clisp.org>
22521
22522         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
22523         Set LIBSOCKET instead of augmenting LIBS.
22524         * modules/sockets (Link): New section.
22525         * modules/sockets-tests (test_sockets_LDADD): New variable.
22526         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
22527         * modules/poll-tests (test_poll_LDADD): New variable.
22528         * NEWS: Document the change.
22529
22530 2008-09-29  Bruno Haible  <bruno@clisp.org>
22531
22532         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
22533         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
22534         ARPA_INET_H directly.
22535         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22536
22537 2008-09-28  Bruno Haible  <bruno@clisp.org>
22538
22539         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
22540         from gl_HEADER_SYS_SOCKET.
22541         (gl_HEADER_SYS_SOCKET): Invoke it.
22542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22543
22544 2008-09-28  Bruno Haible  <bruno@clisp.org>
22545
22546         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
22547         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
22548         Needed on OSF/1 4.0.
22549
22550 2008-09-28  Bruno Haible  <bruno@clisp.org>
22551
22552         Override open more carefully.
22553         * lib/open.c (orig_open): New function.
22554         (rpl_open): Use orig_open instead of open.
22555         * lib/fcntl.in.h: Add special invocation convention.
22556         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
22557         (gl_FUNC_OPEN): Invoke it.
22558
22559         Override freopen more carefully.
22560         * lib/freopen.c (orig_freopen): New function.
22561         (rpl_freopen): Use orig_freopen instead of freopen.
22562         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
22563         (gl_FUNC_FREOPEN): Invoke it.
22564
22565         Override fopen more carefully.
22566         * lib/fopen.c (orig_fopen): New function.
22567         (rpl_fopen): Use orig_fopen instead of fopen.
22568         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
22569         (gl_FUNC_FOPEN): Invoke it.
22570         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
22571
22572 2008-09-28  Bruno Haible  <bruno@clisp.org>
22573
22574         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
22575         SIGPIPE.
22576
22577 2008-09-28  Bruno Haible  <bruno@clisp.org>
22578
22579         * tests/test-sigaction.c (handler, main): Disable the check whether
22580         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
22581         glibc systems with LinuxThreads.
22582
22583 2008-09-28  Bruno Haible  <bruno@clisp.org>
22584
22585         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
22586
22587         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
22588         with AIX xlc.
22589         * lib/fcntl.in.h (open): Likewise.
22590         Reported by Rainer Tammer <tammer@tammer.net>.
22591
22592 2008-09-28  Bruno Haible  <bruno@clisp.org>
22593
22594         * modules/posix_spawnp-tests: New file.
22595         * tests/test-posix_spawn.c: New file.
22596         * tests/test-posix_spawn.in.sh: New file.
22597
22598         New module 'posix_spawnp'.
22599         * modules/posix_spawnp: New file.
22600         * lib/spawnp.c: New file, from GNU libc with modifications.
22601         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
22602
22603         New module 'posix_spawn'.
22604         * modules/posix_spawn: New file.
22605         * lib/spawn.c: New file, from GNU libc with modifications.
22606         * doc/posix-functions/posix_spawn.texi: Mention the new module.
22607
22608         New module 'posix_spawnattr_destroy'.
22609         * modules/posix_spawnattr_destroy: New file.
22610         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
22611         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
22612         module.
22613
22614         New module 'posix_spawnattr_setsigmask'.
22615         * modules/posix_spawnattr_setsigmask: New file.
22616         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
22617         modifications.
22618         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22619         new module.
22620
22621         New module 'posix_spawnattr_getsigmask'.
22622         * modules/posix_spawnattr_getsigmask: New file.
22623         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22624         modifications.
22625         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22626         new module.
22627
22628         New module 'posix_spawnattr_setsigdefault'.
22629         * modules/posix_spawnattr_setsigdefault: New file.
22630         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22631         modifications.
22632         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22633         new module.
22634
22635         New module 'posix_spawnattr_getsigdefault'.
22636         * modules/posix_spawnattr_getsigdefault: New file.
22637         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22638         modifications.
22639         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22640         new module.
22641
22642         New module 'posix_spawnattr_setschedpolicy'.
22643         * modules/posix_spawnattr_setschedpolicy: New file.
22644         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22645         modifications.
22646         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22647         new module.
22648
22649         New module 'posix_spawnattr_getschedpolicy'.
22650         * modules/posix_spawnattr_getschedpolicy: New file.
22651         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22652         modifications.
22653         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22654         new module.
22655
22656         New module 'posix_spawnattr_setschedparam'.
22657         * modules/posix_spawnattr_setschedparam: New file.
22658         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22659         modifications.
22660         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22661         new module.
22662
22663         New module 'posix_spawnattr_getschedparam'.
22664         * modules/posix_spawnattr_getschedparam: New file.
22665         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22666         modifications.
22667         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22668         new module.
22669
22670         New module 'posix_spawnattr_setpgroup'.
22671         * modules/posix_spawnattr_setpgroup: New file.
22672         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22673         modifications.
22674         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22675         module.
22676
22677         New module 'posix_spawnattr_getpgroup'.
22678         * modules/posix_spawnattr_getpgroup: New file.
22679         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22680         modifications.
22681         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22682         module.
22683
22684         New module 'posix_spawnattr_setflags'.
22685         * modules/posix_spawnattr_setflags: New file.
22686         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22687         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22688         module.
22689
22690         New module 'posix_spawnattr_getflags'.
22691         * modules/posix_spawnattr_getflags: New file.
22692         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22693         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22694         module.
22695
22696         New module 'posix_spawnattr_init'.
22697         * modules/posix_spawnattr_init: New file.
22698         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22699         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22700         module.
22701
22702         New module 'posix_spawn_file_actions_destroy'.
22703         * modules/posix_spawn_file_actions_destroy: New file.
22704         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22705         modifications.
22706         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22707         the new module.
22708
22709         New module 'posix_spawn_file_actions_addopen'.
22710         * modules/posix_spawn_file_actions_addopen: New file.
22711         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22712         modifications.
22713         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22714         the new module.
22715
22716         New module 'posix_spawn_file_actions_adddup2'.
22717         * modules/posix_spawn_file_actions_adddup2: New file.
22718         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22719         modifications.
22720         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22721         the new module.
22722
22723         New module 'posix_spawn_file_actions_addclose'.
22724         * modules/posix_spawn_file_actions_addclose: New file.
22725         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22726         modifications.
22727         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22728         the new module.
22729
22730         New module 'posix_spawn_file_actions_init'.
22731         * modules/posix_spawn_file_actions_init: New file.
22732         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22733         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22734         new module.
22735
22736         New module 'posix_spawn-internal'.
22737         * modules/posix_spawn-internal: New file.
22738         * lib/spawn_int.h: New file, from GNU libc with modifications.
22739         * lib/spawni.c: New file, from GNU libc with modifications.
22740         * m4/posix_spawn.m4: New file.
22741
22742         New module 'spawn'.
22743         * modules/spawn: New file.
22744         * lib/spawn.in.h: New file, from GNU libc with modifications.
22745         * m4/spawn_h.m4: New file.
22746         * doc/posix-headers/spawn.texi: Mention the new module.
22747
22748 2008-09-28  Bruno Haible  <bruno@clisp.org>
22749
22750         * modules/sched-tests: New file.
22751         * tests/test-sched.c: New file.
22752
22753         New module 'sched'.
22754         * modules/sched: New file.
22755         * lib/sched.in.h: New file.
22756         * m4/sched_h.m4: New file.
22757         * doc/posix-headers/sched.texi: Mention the new module.
22758
22759 2008-09-27  Eric Blake  <ebb9@byu.net>
22760
22761         Fix previous patch, and tweak references to $0.
22762         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22763         (func_version, func_gnulib_dir): Don't call this program
22764         gnulib-tool.
22765         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22766         with using $0 in function.
22767         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22768         (func_fatal_error): Reuse the name the user invoked us with.
22769
22770 2008-09-27  Bruno Haible  <bruno@clisp.org>
22771
22772         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22773         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22774         (gl_ICONV_H): Not here.
22775         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22776         instead of assigning ICONV_H directly.
22777
22778         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22780         WCHAR_H directly.
22781
22782 2008-09-27  Bruno Haible  <bruno@clisp.org>
22783
22784         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22785         * modules/arpa_inet (Depends-on): Add link-warning.
22786         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22787         * modules/unistd (Makefile.am): Likewise.
22788
22789 2008-09-26  Bruno Haible  <bruno@clisp.org>
22790
22791         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22792         variables.
22793         (func_version): Essentially copied from gnulib-tool.
22794         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22795         func_readlink): Copied from gnulib-tool.
22796
22797 2008-09-26  Bruno Haible  <bruno@clisp.org>
22798
22799         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22800         invoking git-version-gen.
22801
22802 2008-09-26  Bruno Haible  <bruno@clisp.org>
22803
22804         * posix-modules: Update to directory names changed on 2008-01-19.
22805         Remove commas in output before splitting into words. No more need to
22806         avoid 'ftruncate' since 2007-02-19.
22807
22808 2008-09-26  Bruno Haible  <bruno@clisp.org>
22809
22810         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22811
22812 2008-09-26  Bruno Haible  <bruno@clisp.org>
22813
22814         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22815         * modules/fwriteerror (Depends-on): Add errno.
22816
22817 2008-09-26  Bruno Haible  <bruno@clisp.org>
22818
22819         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22820         * tests/test-vc-list-files-cvs.sh: Likewise.
22821
22822 2008-09-26  Bruno Haible  <bruno@clisp.org>
22823
22824         * doc/posix-headers/sys_resource.texi: Reorder items.
22825
22826 2008-09-26  Jim Meyering  <meyering@redhat.com>
22827
22828         fts: tweak inode comparison function
22829         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22830         inode numbers, as documented.
22831
22832         fts: sort dirent entries on inode number before traversing
22833         This avoids a quadratic, seek-related performance penalty when
22834         operating on a directory containing many entries (measurable at 10k;
22835         3.5 hours at 2 million entries with a cold cache) on certain types
22836         of file systems, including ext3 and ext4, but not tmpfs.
22837         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22838         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22839         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22840         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22841         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22842         (fts_build): Set the stat.st_ino member from D_INO.
22843         If it is likely to be useful, sort dirent entries on inode number.
22844
22845         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22846         and the struct statfs.f_type member.
22847         * modules/fts (Depends-on): Add d-ino.
22848
22849 2008-09-26  Bruno Haible  <bruno@clisp.org>
22850
22851         * modules/sigpipe-die (Depends-on): Add sigpipe.
22852
22853         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22854         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22855         and GNULIB_STDIO_H_SIGPIPE are set.
22856         * lib/stdio-write.c: New file.
22857         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22858         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22859         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22860         REPLACE_STDIO_WRITE_FUNCS.
22861         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22862         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22863         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22864         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22865         * modules/stdio (Files): Add lib/stdio-write.c.
22866         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22867         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22868         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22869         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22870         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22871         REPLACE_FPRINTF_POSIX.
22872         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22873         REPLACE_PRINTF_POSIX.
22874         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22875         REPLACE_VFPRINTF_POSIX.
22876         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22877         REPLACE_VPRINTF_POSIX.
22878         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22879         SIGPIPE issue.
22880         * doc/posix-functions/fputc.texi: Likewise.
22881         * doc/posix-functions/fputs.texi: Likewise.
22882         * doc/posix-functions/fwrite.texi: Likewise.
22883         * doc/posix-functions/printf.texi: Likewise.
22884         * doc/posix-functions/putc.texi: Likewise.
22885         * doc/posix-functions/putchar.texi: Likewise.
22886         * doc/posix-functions/puts.texi: Likewise.
22887         * doc/posix-functions/vfprintf.texi: Likewise.
22888         * doc/posix-functions/vprintf.texi: Likewise.
22889
22890         * modules/safe-write (Depends-on): Add write.
22891
22892         * modules/sigpipe-tests: New file.
22893         * tests/test-sigpipe.c: New file.
22894         * tests/test-sigpipe.sh: New file.
22895
22896         * modules/write: New file.
22897         * lib/unistd.in.h: Include <sys/types.h>.
22898         (write): New declaration.
22899         * lib/write.c: New file.
22900         * m4/write.m4: New file.
22901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22902         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22903         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22904         GNULIB_WRITE, REPLACE_WRITE.
22905         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22906         and the SIGPIPE issue.
22907
22908         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22909         (raise): New declaration.
22910         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22911         (ext_signal): New function.
22912         (rpl_raise): New function.
22913         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22914         GNULIB_SIGNAL_H_SIGPIPE.
22915         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22916         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22917
22918         * modules/sigpipe: New file.
22919         * m4/sigpipe.m4: New file.
22920
22921 2008-09-25  Derek Price  <derek@ximbiot.com>
22922             Bruno Haible  <bruno@clisp.org>
22923
22924         * gnulib-tool (func_import): Report all license incompatibilities, not
22925         just the first one.
22926
22927 2008-09-25  Bruno Haible  <bruno@clisp.org>
22928
22929         * gnulib-tool (func_import): When computing the edits, consider not
22930         only the Makefile.ams that exist but also those that will be generated.
22931
22932 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22933
22934         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22935         fixes gnulib-tool --test warning about duplicate dependency.
22936
22937 2008-09-25  Bruno Haible  <bruno@clisp.org>
22938
22939         * gnulib-tool: Don't ask the user to perform edits in the generated
22940         Makefile.ams.
22941         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22942         apply to the Makefile.am being generated.
22943         (func_emit_tests_Makefile_am): Execute edits that apply to the
22944         Makefile.am being generated.
22945         (func_import): Setup list of Makefile.am edits before emitting the
22946         Makefile.ams, not at the end.
22947         (func_create_testdir): Update.
22948         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22949
22950 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22951
22952         * gnulib-tool (func_import): Store the --tests-base option in the
22953         comment in gnulib-cache.m4.
22954
22955 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22956
22957         * NEWS: Document increased portability that sys_select now provides.
22958
22959         * lib/sys_select.in.h: Install select wrapper.
22960         * lib/sys_socket.in.h: Use more descriptive name when there is no
22961         select wrapper.
22962         * lib/winsock-select.c: New.
22963         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22964         Require gl_HEADER_SYS_SOCKET.
22965         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22966         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22967         * tests/test-sys_select.c: Add functional tests.
22968
22969 2008-09-24  Eric Blake  <ebb9@byu.net>
22970
22971         open, fopen: close fd leak in last patch
22972         * lib/open.c (rpl_open): Close fd before returning error.
22973         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22974         * doc/posix-functions/open.texi (open): Document that Irix also
22975         has the bug.
22976         * doc/posix-functions/fopen.texi (fopen): Likewise.
22977         Reported by Paolo Bonzini.
22978
22979 2008-09-24  Bruno Haible  <bruno@clisp.org>
22980
22981         Ensure that a filename ending in a slash cannot be used to access a
22982         non-directory.
22983         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22984         to check whether it's really a directory.
22985         * lib/fopen.c: Include fcntl.h, unistd.h.
22986         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22987         and fdopen().
22988         * modules/fopen (Depends-on): Add unistd.
22989         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22990         * tests/test-fopen.c (main): Likewise.
22991         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22992         * doc/posix-functions/fopen.texi: Likewise.
22993         Reported by Eric Blake.
22994
22995 2008-09-23  Eric Blake  <ebb9@byu.net>
22996
22997         c-stack: avoid compiler optimizations when provoking overflow
22998         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22999         recursion harder to optimize, to ensure a stack overflow occurs.
23000         * tests/test-c-stack.c (recurse): Likewise.
23001         Borrowed from libsigsegv.
23002
23003         c-stack: work around Irix sigaltstack bug
23004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
23005         whether sigaltstack uses wrong end of stack_t (copied in part from
23006         libsigsegv).
23007         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
23008         Irix bug, without requiring an over-allocation.
23009         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
23010         bug.
23011
23012         fopen: document mingw bug on directories
23013         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
23014         not allowing a stream visiting a directory, even though reading
23015         from such a stream is not portable.
23016
23017 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
23018
23019         * lib/poll.c: Rewrite.
23020         * modules/poll: Depend on alloca.
23021
23022 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
23023
23024         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
23025         instead define prototypes for a full set of wrappers.  Ensure
23026         that Cygwin does not use the compatibility code, which is only
23027         for MinGW.
23028         * lib/winsock.c: New.
23029         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
23030         * modules/sys_socket: Add lib/winsock.c.
23031
23032         * modules/poll-tests: Add errno and perror.
23033         * tests/test-poll.c: Use ioctl, not ioctlsocket.
23034
23035 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
23036
23037         * tests/test-poll.c: Downgrade minimum needed Winsock version.
23038
23039 2008-09-23  Bruno Haible  <bruno@clisp.org>
23040
23041         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
23042         * doc/glibc-functions/*: Likewise.
23043
23044 2008-09-23  Simon Josefsson  <simon@josefsson.org>
23045
23046         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
23047         success.
23048
23049 2008-09-22  Eric Blake  <ebb9@byu.net>
23050             Bruno Haible  <bruno@clisp.org>
23051
23052         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
23053         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
23054         supply %A but mishandle pseudo-NaN.
23055         Reported by Simon Josefsson.
23056
23057 2008-09-21  Bruno Haible  <bruno@clisp.org>
23058
23059         * tests/test-lock.c (main): Tweak skip message.
23060         * tests/test-tls.c (main): Likewise.
23061
23062 2008-09-21  Bruno Haible  <bruno@clisp.org>
23063
23064         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
23065         whether 'struct sigaction' has sa_sigaction here...
23066         (gl_PREREQ_SIG_HANDLER_H): ... not here.
23067         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
23068
23069 2008-09-21  Bruno Haible  <bruno@clisp.org>
23070
23071         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
23072         section.
23073         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
23074         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
23075         the new section.
23076         (Support for obsolete systems lacking POSIX:2001): New section.
23077         (String handling <string.h>): Move strdup to the new section.
23078         Suggested by Simon Josefsson and Paolo Bonzini.
23079
23080 2008-09-21  Bruno Haible  <bruno@clisp.org>
23081
23082         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
23083         exponents in %e and %g results on 'long double'. Needed for mingw's
23084         improved *printf functions.
23085         * tests/test-vasprintf-posix.c (test_function): Likewise.
23086         * tests/test-snprintf-posix.h (test_function): Likewise.
23087         * tests/test-sprintf-posix.h (test_function): Likewise.
23088         Reported by Eric Blake.
23089
23090 2008-09-21  Bruno Haible  <bruno@clisp.org>
23091
23092         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
23093         * tests/test-sprintf-posix.h (test_function): Likewise.
23094
23095 2008-09-21  Bruno Haible  <bruno@clisp.org>
23096
23097         * modules/getpass (Depends-on): Add strdup-posix.
23098
23099         New module 'strdup-posix'.
23100         * modules/strdup-posix: New file.
23101         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
23102         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
23103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23104         REPLACE_STRDUP.
23105         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
23106         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
23107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23108         strdup-posix.
23109
23110         * modules/strdup (Depends-on): Remove malloc-posix.
23111
23112 2008-09-20  Bruno Haible  <bruno@clisp.org>
23113
23114         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
23115         Wildenhues.
23116
23117 2008-09-20  Bruno Haible  <bruno@clisp.org>
23118
23119         Ensure that wint_t gets defined on IRIX 5.3.
23120         * lib/wchar.in.h (wint_t): Define if not defined by the system.
23121         * lib/wctype.in.h (wint_t): Likewise.
23122         (__wctype_wint_t): Remove type.
23123         (isw*): Use wint_t instead of __wctype_wint_t.
23124         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
23125         * modules/wchar (Files): Add m4/wint_t.m4.
23126         (Makefile.am): Substitute HAVE_WINT_T.
23127         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
23128         * tests/test-wctype.c: Check that wint_t is defined.
23129         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
23130         * doc/posix-headers/wctype.texi: Likewise.
23131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23132
23133 2008-09-18  Bruno Haible  <bruno@clisp.org>
23134
23135         * gnulib-tool (func_exit): Update comment.
23136
23137 2008-09-18  Simon Josefsson  <simon@josefsson.org>
23138
23139         * modules/getaddrinfo (Depends-on): Remove strdup, this module
23140         assumes strdup exists and does not depend on strdup to return
23141         ENOMEM on out of memory conditions.
23142
23143 2008-09-18  Bruno Haible  <bruno@clisp.org>
23144
23145         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
23146         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
23147         digits for the exponent.
23148
23149 2008-09-18  Jim Meyering  <meyering@redhat.com>
23150             Bruno Haible  <bruno@clisp.org>
23151
23152         * lib/vasnprintf.c (decimal_point_char): Define also if
23153         NEED_PRINTF_INFINITE_LONG_DOUBLE.
23154
23155 2008-09-16  Bruno Haible  <bruno@clisp.org>
23156         and Eric Blake  <ebb9@byu.net>
23157
23158         vasnprintf: support Irix 5.3
23159         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
23160         that mishandle long double infinity.
23161         Reported by Tom G. Christensen.
23162
23163 2008-09-16  Bruno Haible  <bruno@clisp.org>
23164
23165         * doc/glibc-functions/scandir.texi: Mention the function is missing on
23166         Solaris 9.
23167         * doc/glibc-functions/alphasort.texi: Likewise.
23168         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
23169
23170 2008-09-16  Jim Meyering  <meyering@redhat.com>
23171
23172         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
23173         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
23174         a umask modification leak out of a subshell.  Otherwise, the
23175         opensolaris /bin/sh would be accepted and thus cause unwarranted
23176         failures in the coreutils test suite.
23177
23178 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
23179
23180         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
23181         to succeed.
23182
23183 2008-09-16  Jim Meyering  <meyering@redhat.com>
23184
23185         avoid spurious test failure when library is built without ACL support
23186         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
23187         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
23188         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
23189         * tests/test-copy-acl.sh: Likewise.
23190
23191 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23192
23193         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
23194         based on character occurrence counts.
23195
23196 2008-09-15  Eric Blake  <ebb9@byu.net>
23197
23198         tests: avoid some compiler warnings
23199         * tests/test-memchr.c (main): Pass NULL indirectly.
23200         * tests/test-closein.c (main): Avoid unused variable.
23201
23202 2008-09-15  Bruno Haible  <bruno@clisp.org>
23203
23204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
23205         are missing on OpenBSD 4.0 individually.
23206         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23207
23208 2008-09-15  Bruno Haible  <bruno@clisp.org>
23209
23210         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
23211         * doc/posix-functions/strerror.texi: Mention also Cygwin.
23212         * doc/posix-functions/perror.texi: Likewise.
23213         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
23214         is missing.
23215         Reported by Eric Blake.
23216
23217         * lib/errno.in.h: Use replacement values >= 2000.
23218         Reported by Eric Blake.
23219
23220 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23221
23222         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
23223         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
23224         limit.
23225         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
23226         compareseq was aborted.
23227
23228 2008-09-14  Bruno Haible  <bruno@clisp.org>
23229
23230         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
23231         yvec_edit_count.
23232         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
23233         (fstrcmp_bounded): Simplify result computation accordingly.
23234
23235 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23236
23237         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
23238         (fstrcmp): Define in terms of fstrcmp_bounded.
23239         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
23240         lower_bound argument.
23241         Return quickly if the result is certainly < lower_bound.
23242         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
23243
23244 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23245
23246         * lib/diffseq.h (EARLY_ABORT): New macro.
23247         (compareseq): Change return type to bool. Return true when EARLY_ABORT
23248         evaluates to true.
23249
23250 2008-09-14  Bruno Haible  <bruno@clisp.org>
23251
23252         * modules/perror-tests: New file.
23253         * tests/test-perror.sh: New file.
23254         * tests/test-perror.c: New file.
23255
23256         New module 'perror'.
23257         * lib/stdio.in.h (perror): New declaration.
23258         * lib/perror.c: New file.
23259         * m4/perror.m4: New file.
23260         * modules/perror: New file.
23261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
23262         * doc/posix-functions/perror.texi: Mention the perror module.
23263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
23264         REPLACE_PERROR.
23265         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
23266         REPLACE_PERROR.
23267
23268 2008-09-14  Bruno Haible  <bruno@clisp.org>
23269
23270         * modules/stdio (Makefile.am): Reorder to match the order in
23271         lib/stdio.in.h.
23272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23273
23274 2008-09-13  Bruno Haible  <bruno@clisp.org>
23275
23276         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
23277
23278 2008-09-13  Bruno Haible  <bruno@clisp.org>
23279
23280         Extend strerror to cover the added errno values.
23281         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
23282         (rpl_strerror): Provide error messages for the added errno values and
23283         for the WSA* values.
23284         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
23285         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
23286         strerror.
23287         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
23288         * modules/strerror (Depends-on): Add errno.
23289         * doc/posix-functions/strerror.texi: Document the change.
23290         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
23291         and EOVERFLOW.
23292
23293 2008-09-13  Bruno Haible  <bruno@clisp.org>
23294
23295         * modules/EOVERFLOW: Remove file.
23296         * m4/eoverflow.m4: Remove file.
23297         * modules/EOVERFLOW-tests: Remove file.
23298         * tests/test-EOVERFLOW.c: Remove file.
23299         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
23300         * modules/ftell (Depends-on): Likewise.
23301         * modules/getdelim (Depends-on): Likewise.
23302         * modules/getugroups (Depends-on): Likewise.
23303         * modules/poll (Depends-on): Likewise.
23304         * modules/snprintf (Depends-on): Likewise.
23305         * modules/sprintf-posix (Depends-on): Likewise.
23306         * modules/vasnprintf (Depends-on): Likewise.
23307         * modules/vasprintf (Depends-on): Likewise.
23308         * modules/vfprintf-posix (Depends-on): Likewise.
23309         * modules/vsnprintf (Depends-on): Likewise.
23310         * modules/vsprintf-posix (Depends-on): Likewise.
23311         * modules/xvasprintf (Depends-on): Likewise.
23312         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23313         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
23314         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
23315         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
23316         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23317         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
23318         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
23319         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
23320         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23321         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
23322         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
23323         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
23324         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23325         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
23326         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
23327         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
23328         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23329         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
23330         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
23331         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
23332         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23333         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
23334         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
23335         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
23336         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
23337         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23338         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
23339         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
23340         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
23341         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
23342         * MODULES.html.sh: Remove EOVERFLOW.
23343         * NEWS: Mention the change.
23344
23345 2008-09-13  Bruno Haible  <bruno@clisp.org>
23346
23347         * modules/errno-tests: New file.
23348         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
23349
23350         * lib/errno.in.h: New file.
23351         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
23352         * modules/errno: New file.
23353         * doc/posix-headers/errno.texi: Update documentation.
23354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
23355
23356 2008-09-13  Bruno Haible  <bruno@clisp.org>
23357
23358         * tests/test-poll.c: Use #if for native Windows, rather than testing
23359         __MSVCRT__.
23360
23361 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23362             Bruno Haible  <bruno@clisp.org>
23363
23364         * lib/glob.c: Don't include <pwd.h> on native Windows.
23365         (WINDOWS32): New macro.
23366         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
23367
23368 2008-09-13  Bruno Haible  <bruno@clisp.org>
23369
23370         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
23371         (ETIMEDOUT): Remove macro.
23372         (glthread_cond_timedwait_multithreaded): New declaration.
23373         (glthread_cond_timedwait): Use it.
23374         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
23375         (glthread_cond_timedwait_multithreaded): New function.
23376
23377 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23378
23379         * modules/poll-tests: Do not check for io.h.
23380         * tests/test-poll.c: Check for __MSVCRT__ instead.
23381
23382 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23383
23384         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
23385         * modules/poll-tests: Add inet_pton, stdbool, sockets.
23386         * tests/test-poll.c: Use them.  Use _pipe on Windows.
23387
23388 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23389
23390         * modules/poll-tests: New.
23391         * tests/test-poll.c: New.
23392
23393 2008-09-12  Eric Blake  <ebb9@byu.net>
23394
23395         frexp: test for NetBSD failure on -0.0
23396         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
23397         not all, bugs from NetBSD 3.0 have been fixed.
23398         * doc/posix-functions/frexp.texi (frexp): Document bug.
23399         Reported by Thomas Klausner.
23400
23401         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
23402         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
23403         literal -0.0.
23404         Reported by Jonathan C. Patschke <jp@centtech.com>.
23405
23406 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23407
23408         * lib/glthread/cond.h: Use dummy implementation also if
23409         USE_WIN32_THREADS.
23410
23411 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23412
23413         * modules/fnmatch-posix (License): Change to LGPLv2+.
23414         * modules/fnmatch-gnu (License): Likewise.
23415
23416 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23417
23418         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
23419
23420 2008-09-11  Jim Meyering  <meyering@redhat.com>
23421
23422         * users.txt: Add gtk-vnc.
23423
23424 2008-09-08  Simon Josefsson  <simon@josefsson.org>
23425
23426         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
23427         rotate amounts.
23428
23429         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
23430         required for 16-bit and 8-bit rotates.
23431         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
23432         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
23433         UINT8_MAX instead of hard-coded constants.
23434         Suggested by Paul Eggert.
23435
23436 2008-09-07  Bruno Haible  <bruno@clisp.org>
23437
23438         * tests/test-striconveh.c (main): Check behaviour when converting from
23439         UTF-7.
23440
23441         Make striconveh work better with stateful encodings.
23442         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
23443         that iconv does not increment the inptr when returning -1/EINVAL.
23444
23445 2008-09-07  Bruno Haible  <bruno@clisp.org>
23446
23447         * build-aux/config.rpath: Update according to libtool-2.2.6.
23448         * build-aux/config.libpath: Likewise.
23449
23450 2008-09-06  Bruno Haible  <bruno@clisp.org>
23451
23452         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
23453         * lib/freadptr.c (freadptr): Likewise.
23454         * lib/freadseek.c (freadptrinc): Likewise.
23455         Reported by Simon Josefsson.
23456
23457 2008-09-06  Bruno Haible  <bruno@clisp.org>
23458
23459         * modules/freadptr (License): Change to LGPLv2+.
23460         * modules/freadseek (License): Likewise.
23461         Suggested by Eric Blake.
23462
23463         * modules/memchr2 (License): Change to LGPLv2+.
23464         Approved by Eric Blake.
23465
23466 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23467             Bruno Haible  <bruno@clisp.org>
23468
23469         Make gnulib-tool work with native 'sed' on AIX.
23470         * gnulib-tool (sed_noop): New variable.
23471         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
23472         func_add_or_update, func_create_testdir): Use it to initialize sed
23473         script variables.
23474         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23475
23476 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
23477             Bruno Haible  <bruno@clisp.org>
23478
23479         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
23480         also works after #include directives.
23481
23482 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
23483
23484         getdate.y: reject an out-of-range timezone value
23485         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
23486         the range [-24...+24].  When specified with only one or two digits,
23487         * tests/test-getdate.c: Tests for the fix.
23488         * doc/getdate.texi: Document this change.
23489
23490 2008-09-03  Bruno Haible  <bruno@clisp.org>
23491
23492         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
23493
23494 2008-09-02  Simon Josefsson  <simon@josefsson.org>
23495
23496         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
23497         <bruce.korb@gmail.com> with ideas from Ben Pfaff
23498         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
23499         Blake <ebb9@byu.net>.
23500
23501         * tests/test-bitrotate.c: Add more test vectors.
23502
23503 2008-09-02  Eric Blake  <ebb9@byu.net>
23504
23505         vasnprintf-posix: handle large precision via %.*d
23506         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
23507         when handling it ourselves.
23508         * tests/test-vasnprintf-posix.c (test_function): Add test.
23509         * tests/test-snprintf-posix.h (test_function): Likewise.
23510         * tests/test-sprintf-posix.h (test_function): Likewise.
23511         * tests/test-vasprintf-posix.c (test_function): Likewise.
23512         Reported by Alain Guibert.
23513
23514 2008-09-01  Eric Blake  <ebb9@byu.net>
23515
23516         c-stack: make configure-time check more robust
23517         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
23518         successful sigaction call.
23519         Reported by Tom G. Christensen.
23520
23521 2008-09-01  Bruno Haible  <bruno@clisp.org>
23522
23523         New module 'findprog-lgpl'.
23524         * modules/findprog-lgpl: New file.
23525         * lib/findprog-lgpl.c: New file.
23526         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
23527         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
23528         to decide whether to use strdup or xstrdup, concatenated_filename or
23529         xconcatenated_filename.
23530
23531 2008-09-01  Bruno Haible  <bruno@clisp.org>
23532
23533         Split module 'concat-filename' into 'concat-filename' (LGPL) and
23534         'xconcat-filename' (GPL).
23535         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
23536         (License): Change to LGPLv2+.
23537         * modules/xconcat-filename: New file.
23538         * lib/concat-filename.h (concatenated_filename): Change specification.
23539         (xconcatenated_filename): New declaration.
23540         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
23541         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
23542         memory situations.
23543         * lib/xconcat-filename.c: New file.
23544         * NEWS: Mention the change.
23545         * lib/findprog.c: Include concat-filename.h, not filename.h.
23546         (find_in_path): Use xconcatenated_filename instead of
23547         concatenated_filename.
23548         * lib/javacomp.c: Include concat-filename.h, not filename.h.
23549         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23550         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23551         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23552         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
23553         instead of concatenated_filename.
23554         * lib/javaexec.c: Include concat-filename.h, not filename.h.
23555         (execute_java_class): Use xconcatenated_filename instead of
23556         concatenated_filename.
23557         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
23558         * modules/javacomp (Depends-on): Likewise.
23559         * modules/javaexec (Depends-on): Likewise.
23560
23561 2008-09-01  Bruno Haible  <bruno@clisp.org>
23562
23563         Split module 'filename' into 'filename' and 'concat-filename'.
23564         * modules/filename: Keep only lib/filename.h.
23565         (License): Change to LGPLv2+.
23566         * modules/concat-filename: New file, extracted from modules/filename.
23567         * lib/filename.h (concatenated_filename): Remove declaration.
23568         * lib/concat-filename.h: New file, extracted from lib/filename.h.
23569         * lib/concat-filename.c: Include concat-filename.h.
23570         * NEWS: Mention the change.
23571
23572 2008-09-01  Simon Josefsson  <simon@josefsson.org>
23573
23574         * lib/bitrotate.h (rotl8, rotr8): Add.
23575
23576         * modules/bitrotate (configure.ac): Need
23577         AC_REQUIRE([AC_C_INLINE]).
23578         (Description): Mention stdint.h.  Reported by Bruno Haible
23579         <bruno@clisp.org>.
23580
23581         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
23582         Paolo Bonzini <bonzini@gnu.org>.
23583
23584 2008-08-31  Bruno Haible  <bruno@clisp.org>
23585
23586         Assume Solaris specific bi-arch conventions on Solaris systems.
23587         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
23588         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
23589         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
23590         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
23591         like acl_libdirstem.
23592         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
23593         acl_libdirstem.
23594         * NEWS: Mention the change.
23595         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
23596
23597 2008-08-31  Jim Meyering  <meyering@redhat.com>
23598
23599         * lib/strftime.h: Add comments describing the two added arguments.
23600
23601         remove duplicate #include directives
23602         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
23603         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
23604
23605 2008-08-31  Bruno Haible  <bruno@clisp.org>
23606
23607         New module 'sigpipe-die'.
23608         * modules/sigpipe-die: New file.
23609         * lib/sigpipe-die.h: New file.
23610         * lib/sigpipe-die.c: New file.
23611         * MODULES.html.sh (Signal handling): Add sigpipe-die.
23612
23613 2008-08-31  Bruno Haible  <bruno@clisp.org>
23614
23615         Don't override previously installed signal handlers.
23616         * lib/fatal-signal.c (saved_sigactions): New variable.
23617         (uninstall_handlers): Reset the signal to the saved handler, not
23618         to SIG_DFL (except when ignored).
23619         (install_handlers): Save the previous handlers.
23620
23621 2008-08-30  Bruno Haible  <bruno@clisp.org>
23622
23623         * gnulib-tool (func_reset_sigpipe): New function.
23624         (func_get_automake_snippet, func_modules_transitive_closure,
23625         func_import): Invoke it before a join command that reads from stdin,
23626         to avoid "echo: write error: Broken pipe" error messages on stderr.
23627         Reported by Sam Steingold <sds@gnu.org>.
23628
23629 2008-08-30  Bruno Haible  <bruno@clisp.org>
23630
23631         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23632         Code copied from m4/open.m4.
23633         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23634         access and the filename ends in a slash. Code copied from lib/open.c.
23635         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23636         * tests/test-fopen.c (main): Check against bug with trailing slash.
23637
23638 2008-08-29  Bruno Haible  <bruno@clisp.org>
23639
23640         Avoid some "gcc -pedantic" warnings.
23641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23642         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23643         * lib/dirent.in.h: Likewise.
23644         * lib/fcntl.in.h: Likewise.
23645         * lib/float.in.h: Likewise.
23646         * lib/iconv.in.h: Likewise.
23647         * lib/inttypes.in.h: Likewise.
23648         * lib/locale.in.h: Likewise.
23649         * lib/math.in.h: Likewise.
23650         * lib/netinet_in.in.h: Likewise.
23651         * lib/search.in.h: Likewise.
23652         * lib/signal.in.h: Likewise.
23653         * lib/stdarg.in.h: Likewise.
23654         * lib/stdint.in.h: Likewise.
23655         * lib/stdio.in.h: Likewise.
23656         * lib/stdlib.in.h: Likewise.
23657         * lib/string.in.h: Likewise.
23658         * lib/strings.in.h: Likewise.
23659         * lib/sys_select.in.h: Likewise.
23660         * lib/sys_socket.in.h: Likewise.
23661         * lib/sys_stat.in.h: Likewise.
23662         * lib/sys_time.in.h: Likewise.
23663         * lib/sysexits.in.h: Likewise.
23664         * lib/time.in.h: Likewise.
23665         * lib/unistd.in.h: Likewise.
23666         * lib/wchar.in.h: Likewise.
23667         * lib/wctype.in.h: Likewise.
23668         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23669         * modules/fchdir (Makefile.am): Likewise.
23670         * modules/fcntl (Makefile.am): Likewise.
23671         * modules/float (Makefile.am): Likewise.
23672         * modules/iconv_open (Makefile.am): Likewise.
23673         * modules/inttypes (Makefile.am): Likewise.
23674         * modules/locale (Makefile.am): Likewise.
23675         * modules/math (Makefile.am): Likewise.
23676         * modules/netinet_in (Makefile.am): Likewise.
23677         * modules/search (Makefile.am): Likewise.
23678         * modules/signal (Makefile.am): Likewise.
23679         * modules/stdarg (Makefile.am): Likewise.
23680         * modules/stdint (Makefile.am): Likewise.
23681         * modules/stdio (Makefile.am): Likewise.
23682         * modules/stdlib (Makefile.am): Likewise.
23683         * modules/string (Makefile.am): Likewise.
23684         * modules/strings (Makefile.am): Likewise.
23685         * modules/sys_select (Makefile.am): Likewise.
23686         * modules/sys_socket (Makefile.am): Likewise.
23687         * modules/sys_stat (Makefile.am): Likewise.
23688         * modules/sys_time (Makefile.am): Likewise.
23689         * modules/sysexits (Makefile.am): Likewise.
23690         * modules/time (Makefile.am): Likewise.
23691         * modules/unistd (Makefile.am): Likewise.
23692         * modules/wchar (Makefile.am): Likewise.
23693         * modules/wctype (Makefile.am): Likewise.
23694         Reported by Reuben Thomas <rrt@sc3d.org>.
23695
23696 2008-08-29  Bruno Haible  <bruno@clisp.org>
23697
23698         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23699         any more.
23700
23701 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23702
23703         * MODULES.html.sh (Misc): Add bitrotate.
23704
23705         * modules/bitrotate: New file.
23706
23707         * lib/bitrotate.h: New file.
23708
23709         * modules/bitrotate-tests: New file.
23710
23711         * tests/test-bitrotate.c: New file.
23712
23713         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23714         on the bitrotate module.
23715
23716         * lib/arctwo.c: Use new bitrotate module.
23717
23718 2008-08-29  Jim Meyering  <meyering@redhat.com>
23719
23720         bootstrap: merge changes from coreutils
23721         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23722         of copied files.  Remove a kludge, now that this is fixed.
23723         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23724         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23725         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23726
23727 2008-08-29  Bruno Haible  <bruno@clisp.org>
23728
23729         * MODULES.html.sh: Remove --cvs-urls option.
23730
23731 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23732
23733         maint.mk: adjust to file name change
23734         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23735
23736 2008-08-28  Jim Meyering  <meyering@redhat.com>
23737
23738         * modules/getndelim2 (License): Relicense to LGPLv2+.
23739         Approved by Richard Stallman for the version of 1995, and by
23740         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23741
23742 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23743
23744         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23745         dummy if one is not available.  Do not touch them if
23746         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23747         (getc_maybe_unlocked): New.
23748         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23749
23750 2008-08-26  Eric Blake  <ebb9@byu.net>
23751
23752         doc/INSTALL: resync from autoconf
23753         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23754         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23755         moving...
23756         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23757         * INSTALL: Regenerate.
23758         * INSTALL.ISO: New file.
23759         * INSTALL.UTF-8: Likewise.
23760
23761 2008-08-26  Jim Meyering  <meyering@redhat.com>
23762
23763         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23764         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23765         these definitions conditional, so that they may be overridden, too.
23766
23767 2008-08-26  Bruno Haible  <bruno@clisp.org>
23768
23769         Generate INSTALL file variants with prettier quotes.
23770         * doc/Makefile (INSTALL_PRELUDE): New macro.
23771         (INSTALL): Use it.
23772         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23773
23774 2008-08-26  Bruno Haible  <bruno@clisp.org>
23775
23776         Run makeinfo in an English locale.
23777         * doc/Makefile (MAKEINFO): New variable.
23778
23779 2008-08-26  Bruno Haible  <bruno@clisp.org>
23780
23781         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23782         Suggested by Eric Blake.
23783
23784 2008-08-25  Bruno Haible  <bruno@clisp.org>
23785
23786         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23787
23788 2008-08-25  Eric Blake  <ebb9@byu.net>
23789
23790         c-stack: test that stack overflow can be caught
23791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23792         that platform allows handling stack overflow; at least OS/2 EMX
23793         has sigaltstack, but crashes before transferring control to
23794         handler on stack overflow.
23795         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23796         check for HAVE_STACK_OVERFLOW_HANDLING.
23797         Reported by Elbert Pol.
23798
23799 2008-08-25  Bruno Haible  <bruno@clisp.org>
23800
23801         * doc/posix-functions/strftime.texi: Fix description of strftime
23802         module.
23803
23804 2008-08-24  Bruno Haible  <bruno@clisp.org>
23805
23806         * tests/uniwidth/test-uc_width2.c: New file.
23807         * tests/uniwidth/test-uc_width2.sh: New file.
23808         * modules/uniwidth/width-tests (Files): Add the new files.
23809         (TESTS): Add uniwidth/test-uc_width2.sh.
23810         (TESTS_ENVIRONMENT): New variable.
23811         (check_PROGRAMS): Add test-uc_width2.
23812         (test_uc_width2_SOURCES): New variable.
23813
23814         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23815         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23816         not 0x00AB.
23817         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23818
23819 2008-08-22  Eric Blake  <ebb9@byu.net>
23820
23821         test-lock, test-tls: mention why a test is skipped
23822         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23823         skipped.
23824         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23825
23826         count-one-bits: relax license
23827         * modules/count-one-bits (License): Relicense to LGPLv2+.
23828         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23829
23830 2008-08-22  Andreas Schwab  <schwab@suse.de>
23831
23832         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23833         Remove spurious space in assignment.
23834
23835 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23836
23837         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23838         Paul Eggert <eggert@CS.UCLA.EDU>.
23839
23840 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23841
23842         * modules/gettext: Add m4/threadlib.m4.
23843
23844 2008-08-19  Eric Blake  <ebb9@byu.net>
23845
23846         test-c-stack: fix compilation failure on FreeBSD 5.0
23847         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23848         headers before <sys/resource.h>.
23849         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23850         the bug.
23851         Reported by Nelson H. F. Beebe.
23852
23853         strverscmp: migrate from "strverscmp.h" to <string.h>
23854         * modules/string (Makefile.am): Add new hooks.
23855         * modules/strverscmp (Files): Remove strverscmp.h.
23856         (Depends-on): Add string.
23857         (configure.ac): Add indicator.
23858         (Include): Mention new header.
23859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23860         defaults.
23861         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23862         results.
23863         * lib/strverscmp.h: Delete.
23864         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23865         * tests/test-strverscmp.c (includes): Adjust client.
23866         * lib/check-version.c (includes): Likewise.
23867         * NEWS: Document the change.
23868
23869         strverscmp: add unit test
23870         * modules/strverscmp-tests: New file.
23871         * tests/test-strverscmp.c: Likewise.
23872
23873 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23874
23875         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23876         regarding Windows crypto stuff, from Mono.
23877
23878 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23879
23880         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23881         if present, for intel RND.  Return error on failures.
23882
23883 2008-08-18  Ben Pfaff  <blp@gnu.org>
23884
23885         gitlog-to-changelog: give better diagnostic for failed pipe-open
23886         * build-aux/gitlog-to-changelog: Improve error message: suggest
23887         that the version of Git may be too old.
23888
23889 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23890
23891         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23892         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23893
23894 2008-08-18  Bruno Haible  <bruno@clisp.org>
23895
23896         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23897         pthread_in_use().
23898
23899 2008-08-18  Bruno Haible  <bruno@clisp.org>
23900
23901         * lib/glthread/threadlib.c: Include <pthread.h>.
23902
23903 2008-08-18  Bruno Haible  <bruno@clisp.org>
23904
23905         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23906         glthread_recursive_lock_* macros.
23907         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23908         Fix syntax error.
23909
23910 2008-08-18  Bruno Haible  <bruno@clisp.org>
23911
23912         * lib/glthread/thread.c: Avoid forcing a context switch right after
23913         thread creation.
23914
23915 2008-08-17  Bruno Haible  <bruno@clisp.org>
23916
23917         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23918         * lib/glthread/thread.h: Provide Win32 specific implementation.
23919         * modules/thread (Files): Add lib/glthread/thread.c.
23920         (Depends-on): Add lock.
23921         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23922
23923 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23924
23925         New module 'yield'.
23926         * modules/yield: New file.
23927         * lib/glthread/yield.h: New file.
23928         * m4/yield.m4: New file.
23929         * MODULES.html.sh (Multithreading): Add yield.
23930
23931 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23932
23933         New module 'thread'.
23934         * modules/thread: New file.
23935         * lib/glthread/thread.h: New file.
23936         * m4/thread.m4: New file.
23937         * MODULES.html.sh (Multithreading): Add thread.
23938
23939 2008-08-17  Bruno Haible  <bruno@clisp.org>
23940
23941         * lib/glthread/lock.h: Include <stdlib.h> always.
23942         * lib/glthread/tls.h: Likewise.
23943         * lib/glthread/cond.h: Likewise.
23944
23945 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23946
23947         New module 'cond'.
23948         * modules/cond: New file.
23949         * lib/glthread/cond.h: New file.
23950         * lib/glthread/cond.c: New file.
23951         * m4/cond.m4: New file.
23952         * MODULES.html.sh (Multithreading): Add cond.
23953
23954 2008-08-16  Eric Blake  <ebb9@byu.net>
23955
23956         c-stack: fix regression on Irix 5.3 from 2008-06-21
23957         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23958         sa_sigaction...
23959         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23960         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23961         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23962         * modules/signal (Makefile.am): Use the value.
23963         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23964         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23965         * doc/posix-headers/signal.texi (signal.h): Document this
23966         portability issue.
23967         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23968         Reported by Tom G. Christensen.
23969
23970 2008-08-17  Bruno Haible  <bruno@clisp.org>
23971
23972         New module 'threadlib'.
23973         * modules/threadlib: New file.
23974         * lib/glthread/threadlib.c: New file, extracted from
23975         lib/glthread/lock.c.
23976         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23977         functions.
23978         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23979         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23980         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23981         macros.
23982         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23983         (gl_DISABLE_THREADS): Remove macro.
23984         * modules/lock (Files): Remove build-aux/config.rpath.
23985         (Depends-on): Remove havelib. Add threadlib.
23986         (configure.ac-early): Remove section.
23987         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23988         * modules/tls (Depends-on): Remove lock. Add threadlib.
23989         (Link): New section, copied from threadlib.
23990         * MODULES.html.sh (Multithreading): Add threadlib.
23991
23992 2008-08-14  Bruno Haible  <bruno@clisp.org>
23993
23994         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23995         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23996         glthread_rwlock_unlock, glthread_rwlock_destroy,
23997         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23998         glthread_recursive_lock_destroy): Define as macros always.
23999         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
24000         glthread_lock_lock.
24001         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
24002         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
24003         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
24004         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
24005         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
24006         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
24007         (glthread_recursive_lock_lock_func): Renamed from
24008         glthread_recursive_lock_lock.
24009         (glthread_recursive_lock_unlock_func): Renamed from
24010         glthread_recursive_lock_unlock.
24011         (glthread_recursive_lock_destroy_func): Renamed from
24012         glthread_recursive_lock_destroy.
24013
24014 2008-08-14  Bruno Haible  <bruno@clisp.org>
24015
24016         * lib/glthread/lock.h: Renamed from lib/lock.h.
24017         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
24018         * lib/glthread/tls.h: Renamed from lib/tls.h.
24019         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
24020         * lib/fstrcmp.c: Update includes.
24021         * lib/strsignal.c: Update includes.
24022         * modules/lock (Files, Makefile.am): Update.
24023         (Include): Change to "glthread/lock.h".
24024         * modules/tls (Files, Makefile.am): Update.
24025         (Include): Change to "glthread/tls.h".
24026         * tests/test-lock.c: Update includes.
24027         * tests/test-tls.c: Update includes.
24028         * NEWS: Mention the renamed header files.
24029
24030 2008-08-11  Jim Meyering  <meyering@redhat.com>
24031
24032         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
24033
24034 2008-08-11  Eric Blake  <ebb9@byu.net>
24035
24036         test-c-stack: avoid C99-ism
24037         * tests/test-c-stack.c (main): Fix whitespace, move declaration
24038         before statement.
24039         Reported by Alain Guibert.
24040
24041 2008-08-10  Jim Meyering  <meyering@redhat.com>
24042
24043         ensure that return value of uinttostr et al are not ignored
24044         * lib/inttostr.h (__GNUC_PREREQ): Define.
24045         (__attribute_warn_unused_result__): Define.
24046         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
24047
24048 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
24049
24050         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
24051         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
24052
24053 2008-08-07  Jim Meyering  <meyering@redhat.com>
24054
24055         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
24056
24057         * modules/mkstemp (License): Relicense under LGPLv2+.
24058         * modules/tempname (License): Likewise.
24059
24060 2008-08-06  Bruno Haible  <bruno@clisp.org>
24061
24062         * lib/poll.c (poll): Further micro-optimization.
24063
24064 2008-08-06  Jim Meyering  <meyering@redhat.com>
24065
24066         inet_pton.c: use locale-independent tolower
24067         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
24068         (inet_pton6): Use c_tolower rather than tolower.
24069         * modules/inet_pton (Depends-on): Add c-ctype.
24070
24071 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
24072
24073         * lib/poll.c (poll): Avoid division when timeout is 0, cache
24074         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
24075
24076 2008-08-06  Jim Meyering  <meyering@redhat.com>
24077
24078         * modules/inet_pton (License): Relicense under LGPLv2+.
24079
24080 2008-08-03  Bruno Haible  <bruno@clisp.org>
24081
24082         Additional non-aborting API for lock and tls.
24083         * lib/lock.h: Include <errno.h>.
24084         (glthread_lock_init): New macro/function.
24085         (gl_lock_init): Define as wrapper around glthread_lock_init.
24086         (glthread_lock_lock): New macro/function.
24087         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
24088         (glthread_lock_unlock): New macro/function.
24089         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
24090         (glthread_lock_destroy): New macro/function.
24091         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
24092         (glthread_rwlock_init): New macro/function.
24093         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
24094         (glthread_rwlock_rdlock): New macro/function.
24095         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
24096         (glthread_rwlock_wrlock): New macro/function.
24097         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
24098         (glthread_rwlock_unlock): New macro/function.
24099         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
24100         (glthread_rwlock_destroy): New macro/function.
24101         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
24102         (glthread_recursive_lock_init): New macro/function.
24103         (gl_recursive_lock_init): Define as wrapper around
24104         glthread_recursive_lock_init.
24105         (glthread_recursive_lock_lock): New macro/function.
24106         (gl_recursive_lock_lock): Define as wrapper around
24107         glthread_recursive_lock_lock.
24108         (glthread_recursive_lock_unlock): New macro/function.
24109         (gl_recursive_lock_unlock): Define as wrapper around
24110         glthread_recursive_lock_unlock.
24111         (glthread_recursive_lock_destroy): New macro/function.
24112         (gl_recursive_lock_destroy): Define as wrapper around
24113         glthread_recursive_lock_destroy.
24114         (glthread_once): New macro/function.
24115         (gl_once): Define as wrapper around glthread_once.
24116         Update function declarations.
24117         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
24118         glthread_rwlock_init. Return error code.
24119         (glthread_rwlock_rdlock_multithreaded): Renamed from
24120         glthread_rwlock_rdlock. Return error code.
24121         (glthread_rwlock_wrlock_multithreaded): Renamed from
24122         glthread_rwlock_wrlock. Return error code.
24123         (glthread_rwlock_unlock_multithreaded): Renamed from
24124         glthread_rwlock_unlock. Return error code.
24125         (glthread_rwlock_destroy_multithreaded): Renamed from
24126         glthread_rwlock_destroy. Return error code.
24127         (glthread_recursive_lock_init_multithreaded): Renamed from
24128         glthread_recursive_lock_init. Return error code.
24129         (glthread_recursive_lock_lock_multithreaded): Renamed from
24130         glthread_recursive_lock_lock. Return error code.
24131         (glthread_recursive_lock_unlock_multithreaded): Renamed from
24132         glthread_recursive_lock_unlock. Return error code.
24133         (glthread_recursive_lock_destroy_multithreaded): Renamed from
24134         glthread_recursive_lock_destroy. Return error code.
24135         (glthread_once_call): Make static.
24136         (glthread_once_multithreaded): Renamed from glthread_once.
24137         * lib/tls.h: Include <errno.h>.
24138         (glthread_tls_key_init): New macro/function.
24139         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
24140         (glthread_tls_set): New macro/function.
24141         (gl_tls_set): Define as wrapper around glthread_tls_set.
24142         (glthread_tls_key_destroy): New macro/function.
24143         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
24144         Update function declarations.
24145         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
24146         glthread_tls_get.
24147         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24148
24149 2008-08-04  Eric Blake  <ebb9@byu.net>
24150
24151         gnumakefile: use space, not TAB, outside of targets
24152         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
24153
24154 2008-08-02  Jim Meyering  <meyering@redhat.com>
24155
24156         getdate.y: avoid locale-dependent date parsing failure
24157         In Turkish locales, getdate would fail to recognize keywords
24158         containing a lowercase "i".  The solution is not to rely on
24159         locale-sensitive case-conversion.
24160         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
24161         (lookup_word): Use c_toupper in place of toupper.
24162         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
24163         Reported by Vefa Bicakci <bicave@superonline.com> in
24164         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
24165         * modules/getdate (Depends-on): Add c-ctype.
24166
24167 2008-08-02  Bruno Haible  <bruno@clisp.org>
24168
24169         * gnulib-tool (func_import): When updating or creating a .gitignore
24170         file, prepend each added line with a slash, and ignore leading slashes
24171         from the existing lines.
24172         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
24173
24174 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24175
24176         Portability fix for GNU make 3.79.1.
24177         * top/GNUmakefile: Avoid 'else COND', which older GNU make
24178         versions do not understand.
24179
24180 2008-08-01  Bruno Haible  <bruno@clisp.org>
24181
24182         Work around bug of HP-UX 10.20 cc with -0.0 literal.
24183         * tests/test-isnanf.h (zero): New variable.
24184         (main): Avoid literal -0.0f.
24185         * tests/test-isnand.h (zero): New variable.
24186         (main): Avoid literal -0.0.
24187         * tests/test-isnanl.h (zero): New variable.
24188         (main): Avoid literal -0.0L.
24189         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
24190         (test_float, test_double, test_long_double): Avoid literals -0.0f,
24191         -0.0, -0.0L.
24192         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
24193         (test_signbitd): Avoid literal -0.0.
24194         (test_signbitl): Avoid literal -0.0L.
24195         * tests/test-ceilf1.c (zero): New variable.
24196         (main): Avoid literal -0.0f.
24197         * tests/test-ceill.c (zero): New variable.
24198         (main): Avoid literal -0.0L.
24199         * tests/test-floorf1.c (zero): New variable.
24200         (main): Avoid literal -0.0f.
24201         * tests/test-floorl.c (zero): New variable.
24202         (main): Avoid literal -0.0L.
24203         * tests/test-roundf1.c (zero): New variable.
24204         (main): Avoid literal -0.0f.
24205         * tests/test-round1.c (zero): New variable.
24206         (main): Avoid literal -0.0.
24207         * tests/test-roundl.c (zero): New variable.
24208         (main): Avoid literal -0.0L.
24209         * tests/test-truncf1.c (zero): New variable.
24210         (main): Avoid literal -0.0f.
24211         * tests/test-trunc1.c (zero): New variable.
24212         (main): Avoid literal -0.0.
24213         * tests/test-truncl.c (zero): New variable.
24214         (main): Avoid literal -0.0L.
24215         * tests/test-frexp.c (zero): New variable.
24216         (main): Avoid literal -0.0.
24217         * tests/test-frexpl.c (zero): New variable.
24218         (main): Avoid literal -0.0L.
24219         * tests/test-ldexpl.c (zero): New variable.
24220         (main): Avoid literal -0.0L.
24221         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
24222         (zerod, zerol): New variables.
24223         (test_function): Avoid literals -0.0, -0.0L.
24224         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
24225         (zerod, zerol): New variables.
24226         (test_function): Avoid literals -0.0, -0.0L.
24227         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
24228         (zerod, zerol): New variables.
24229         (test_function): Avoid literals -0.0, -0.0L.
24230         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
24231         (zerod, zerol): New variables.
24232         (test_function): Avoid literals -0.0, -0.0L.
24233         * tests/test-strtod.c (zero): New variable.
24234         (main): Avoid literal -0.0.
24235         Reported by Jonathan C. Patschke <jp@centtech.com>.
24236
24237 2008-07-31  Jim Meyering  <meyering@redhat.com>
24238
24239         sha256.h: correct definition of SHA224_DIGEST_SIZE
24240         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
24241         Reported by Paulie Pena IV <paulie4@gmail.com>.
24242         Define as 224 / 8, rather than as a literal.
24243         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
24244         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
24245         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
24246
24247 2008-07-31  Bruno Haible  <bruno@clisp.org>
24248
24249         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
24250         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
24251         Reported by Jonathan Patschke <jp@centtech.com>.
24252
24253 2008-07-31  Bruno Haible  <bruno@clisp.org>
24254
24255         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
24256         Reported by Paolo Bonzini <bonzini@gnu.org>.
24257
24258 2008-07-30  Eric Blake  <ebb9@byu.net>
24259
24260         test-strtod: allow compilation without -lm
24261         * tests/test-strtod.c (main): Avoid link dependence on fabs.
24262         Reported by Dennis Clarke <blastwave@gmail.com>.
24263
24264 2008-07-28  Jim Meyering  <meyering@redhat.com>
24265
24266         bootstrap: work also when there are no .po files in po/
24267         * build-aux/bootstrap (update_po_files): Complete the change
24268         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
24269
24270 2008-07-27  Jim Meyering  <meyering@redhat.com>
24271
24272         * users.txt: Add zile.
24273
24274 2008-07-26  Ben Pfaff  <blp@gnu.org>
24275
24276         Add missing dependencies on new m4/exponent[fdl].m4 files.
24277         * modules/isnanf-nolibm: Add m4/exponentf.m4.
24278         * modules/isnand-nolibm: Add m4/exponentd.m4.
24279         * modules/isnanl-nolibm: Add m4/exponentl.m4.
24280         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
24281         m4/isnan[fdl].m4, because the macros actually used moved.
24282         Reported by Jim Meyering.
24283
24284 2008-07-14  Ben Pfaff  <blp@gnu.org>
24285
24286         Add isinf module.
24287         * lib/isinf.c: New file.
24288         * lib/math.in.h: Define isinf macro if we have decided to replace
24289         it.
24290         * m4/isinf.m4: New file.
24291         * m4/math_h.m4: Initialize and substitute variables for isinf
24292         module.
24293         * modules/isinf: New file.
24294         * modules/isinf-tests: New file.
24295         * modules/math: Add substitutions for new module.
24296         * tests/test-isinf.c: New file.
24297         * doc/posix-functions/isinf.texi: Mention new module.
24298         * MODULES.html.sh: Mention new module.
24299
24300 2008-07-14  Ben Pfaff  <blp@gnu.org>
24301
24302         Factor out some macros for use by additional modules.
24303         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
24304         exponentf.m4.
24305         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
24306         exponentd.m4.
24307         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
24308         file exponentl.m4.
24309         * m4/exponentf.m4: New file.
24310         * m4/exponentd.m4: New file.
24311         * m4/exponentl.m4: New file.
24312         * modules/isnanf: Use new file m4/exponentf.m4.
24313         * modules/isnand: Use new file m4/exponentd.m4.
24314         * modules/isnanl: Use new file m4/exponentl.m4.
24315
24316 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
24317
24318         mktime.c: normalize tp->tm_isdst value to -1/0/1.
24319         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
24320         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
24321         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
24322
24323         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
24324         readlink on platforms without PATH_MAX.
24325
24326 2008-07-21  Eric Blake  <ebb9@byu.net>
24327
24328         Warn, not fail, on stale version.
24329         * top/GNUmakefile (_curr-ver): Tone down previous patch.
24330
24331         Don't allow installation with stale devel version number.
24332         * top/GNUmakefile (_is-install-target): New macro.
24333         (_curr-ver): Forbid installation with stale version number.
24334
24335 2008-07-20  Bruno Haible  <bruno@clisp.org>
24336
24337         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
24338         TESTS_ENVIRONMENT.
24339         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
24340
24341 2008-07-20  Bruno Haible  <bruno@clisp.org>
24342
24343         * lib/c-stack.h (c_stack_action): Add documentation.
24344         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
24345
24346 2008-07-20  Bruno Haible  <bruno@clisp.org>
24347
24348         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
24349         * modules/readlink (License): Likewise.
24350
24351 2008-07-17  Eric Blake  <ebb9@byu.net>
24352
24353         * modules/c-stack (Link): Fix typo.
24354
24355         Make c-stack use libsigsegv, when available.
24356         * modules/c-stack (Depends-on): Add libsigsegv.
24357         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
24358         needed.
24359         * lib/c-stack.c (SIGSTKSZ): Define fallback.
24360         (segv_handler, overflow_handler, c_stack_action)
24361         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
24362         implementation when libsigsegv is available, but only when using
24363         the library is necessary.
24364         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
24365         comment, explaining why XSI check fails on Linux.
24366         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
24367         * tests/test-c-stack2.sh: Tweak skip message.
24368         * NEWS: Document new link-time requirements.
24369
24370 2008-07-16  Eric Blake  <ebb9@byu.net>
24371
24372         c-stack: Expose false positives when not using libsigsegv.
24373         * modules/c-stack-tests (Files): Expand test.
24374         * tests/test-c-stack.c (main): Add means to conditionally trigger
24375         non-overflow SIGSEGV.
24376         * tests/test-c-stack2.sh: New file.
24377
24378 2008-07-14  Bruno Haible  <bruno@clisp.org>
24379
24380         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
24381         Reported by Eric Blake.
24382
24383 2008-07-14  Sam Steingold  <sds@gnu.org>
24384             Bruno Haible  <bruno@clisp.org>
24385
24386         New module libsigsegv.
24387         * modules/libsigsegv: New file.
24388         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
24389         modifications.
24390         * MODULES.html.sh (Signal handling): New section.
24391
24392 2008-07-14  Bruno Haible  <bruno@clisp.org>
24393
24394         * modules/unictype/ctype-* (Description): Add the word "function".
24395         Improves the resulting doc in MODULES.html.
24396
24397 2008-07-12  Ben Pfaff  <blp@gnu.org>
24398
24399         Add longlong module.
24400         * modules/longlong: New file.
24401
24402 2008-07-12  Bruno Haible  <bruno@clisp.org>
24403
24404         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
24405         to empty.
24406
24407 2008-07-10  Ben Pfaff  <blp@gnu.org>
24408
24409         Add isnan module.
24410         * doc/posix-functions/isnan.texi: Mention new module.
24411         * lib/math.in.h: Define isnan macro if we have decided to replace
24412         it.
24413         * m4/isnan.m4: New file.
24414         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
24415         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
24416         also.
24417         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
24418         redundancy.
24419         * m4/math_h.m4: Initialize and substitute variables for isnan
24420         module.
24421         * modules/isnan: New file.
24422         * modules/isnan-tests: New file.
24423         * modules/math: Add substitutions for new module.
24424         * tests/test-isnan.c: New file.
24425         * MODULES.html.sh: Mention new module.
24426
24427 2008-07-10  Ben Pfaff  <blp@gnu.org>
24428
24429         Add isnanf module.
24430         * lib/isnanf.m4: New file.
24431         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
24432         (gl_HAVE_ISNANF_IN_LIBM): New macro.
24433         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
24434         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
24435         * modules/isnanf: New file.
24436         * modules/isnanf-tests: New file.
24437         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
24438         files.
24439         * tests/test-isnanf-nolibm.c: factored most of its contents into
24440         new file tests/test-isnanf.h.
24441         * tests/test-isnanf.h: New file.
24442         * tests/test-isnanf.c: New file.
24443         * MODULES.html.sh: Mention new module.
24444         * doc/glibc-functions/isnanf.texi: Mention new module.
24445
24446 2008-07-10  Ben Pfaff  <blp@gnu.org>
24447
24448         Add isnand module.
24449         * lib/isnand.h: New file.
24450         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
24451         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
24452         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
24453         functionality also.
24454         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
24455         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
24456         (gl_HAVE_ISNAND_IN_LIBM): New macro.
24457         * modules/isnand: New file.
24458         * modules/isnand-tests: New file.
24459         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
24460         files.
24461         * tests/test-isnand-nolibm.c: factored most of its contents into
24462         new file tests/test-isnand.h.
24463         * tests/test-isnand.h: New file.
24464         * tests/test-isnand.c: New file.
24465         * MODULES.html.sh: Mention new module.
24466
24467 2008-07-10  Ben Pfaff  <blp@gnu.org>
24468
24469         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
24470         * lib/isnand.h: Rename lib/isnand-nolibm.h.
24471         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
24472         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
24473         * modules/isnanf-nolibm: Update references to renamed files.
24474         * modules/isnand-nolibm: Likewise.
24475         * modules/isnanf-nolibm-tests: Likewise.
24476         * modules/isnand-nolibm-tests: Likewise.
24477         * lib/frexp.c: Likewise.
24478         * lib/isfinite.c: Likewise.
24479         * lib/signbitd.c: Likewise.
24480         * lib/signbitf.c: Likewise.
24481         * lib/vasnprintf.c: Likewise.
24482         * tests/test-ceilf1.c: Likewise.
24483         * tests/test-ceilf2.c: Likewise.
24484         * tests/test-floorf1.c: Likewise.
24485         * tests/test-floorf2.c: Likewise.
24486         * tests/test-frexp.c: Likewise.
24487         * tests/test-round1.c: Likewise.
24488         * tests/test-round2.c: Likewise.
24489         * tests/test-roundf1.c: Likewise.
24490         * tests/test-strtod.c: Likewise.
24491         * tests/test-trunc1.c: Likewise.
24492         * tests/test-trunc2.c: Likewise.
24493         * tests/test-truncf1.c: Likewise.
24494         * tests/test-truncf2.c: Likewise.
24495         * NEWS: Mention the renamed header files.
24496
24497 2008-07-11  Jim Meyering  <meyering@redhat.com>
24498
24499         vc-list-files: make the last-resort awk code more portable
24500         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
24501         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
24502         does not support it.
24503
24504 2008-07-10  Eric Blake  <ebb9@byu.net>
24505
24506         Work with tar's bootstrap.
24507         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
24508         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
24509         an m4 comment.
24510
24511 2008-07-09  Jim Meyering  <meyering@redhat.com>
24512
24513         posix-shell.m4: fix typo that made this test malfunction
24514         * m4/posix-shell.m4: Remove capitalization in variable name.
24515
24516 2008-07-08  Bruno Haible  <bruno@clisp.org>
24517
24518         * m4/onceonly.m4: Update comments.
24519         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24520
24521 2008-07-04  Jim Meyering  <meyering@redhat.com>
24522
24523         * users.txt: Add vc-dwim.
24524         (bison, coreutils): Use the gitweb URL.
24525
24526 2008-07-03  Jim Meyering  <meyering@redhat.com>
24527
24528         * users.txt: Add libffcall.  From Sam Steingold.
24529
24530 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
24531
24532         getdate.y: do not ignore TZ with relative day, month or year offset
24533         * lib/getdate.y (get_date): Move the tz-handling block to follow the
24534         relative-date-handling, since otherwise, the latter would clobber the
24535         sole output (an updated Start value) of the tz-handling block.
24536         * tests/test-getdate.c: Tests for the fix
24537
24538 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24539
24540         Recognize 'foo_LIBRARIES += libgnu.a'.
24541         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
24542         makefile snippet has already specified an installation location,
24543         also using '+='.
24544
24545 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
24546
24547         getdate.y: factor out common actions
24548         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
24549         Use them in place of open-coded actions.
24550
24551 2008-07-01  Simon Josefsson  <simon@josefsson.org>
24552
24553         Add self-test for getdate module.
24554         * modules/getdate-tests: New file.
24555         * tests/test-getdate.c: New file.
24556
24557 2008-06-29  Bruno Haible  <bruno@clisp.org>
24558
24559         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
24560         .gitignore.
24561         Reported by Sylvain Beucler <beuc@beuc.net>.
24562
24563 2008-06-29  Bruno Haible  <bruno@clisp.org>
24564
24565         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
24566         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
24567
24568 2008-06-29  Bruno Haible  <bruno@clisp.org>
24569
24570         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
24571         EXTRA_DIST.
24572         Reported by Sylvain Beucler <beuc@beuc.net>.
24573
24574 2008-06-26  Jim Meyering  <meyering@redhat.com>
24575
24576         make several modules depend on the "open" module
24577         This provides slightly increased consistency when opening-for-write
24578         the name of a non-directory spelled with a trailing slash.
24579         * modules/chdir-safer: Likewise.
24580         * modules/chown: Likewise.
24581         * modules/clean-temp: Likewise.
24582         * modules/copy-file: Likewise.
24583         * modules/fchdir: Likewise.
24584         * modules/fcntl-safer: Likewise.
24585         * modules/pipe: Likewise.
24586         * modules/utime: Likewise.
24587         Prompted by Eric Blake and Bruno Haible.
24588
24589 2008-06-24  Andreas Schwab  <schwab@suse.de>
24590
24591         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
24592         literals can be used as initializers for global variables.
24593
24594 2008-06-23  Eric Blake  <ebb9@byu.net>
24595
24596         Make gnulib-cache.m4 easier to diff.
24597         * gnulib-tool (func_import): Allow newlines when reading cached
24598         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
24599
24600 2008-06-23  Bruno Haible  <bruno@clisp.org>
24601
24602         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
24603         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
24604         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
24605         m4/signalblocking.m4.
24606         (gl_PREREQ_SIGACTION): Don't invoke it.
24607         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
24608         gl_PREREQ_SIG_HANDLER_H.
24609         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24610         Don't check for sigaction here.
24611
24612 2008-06-23  Bruno Haible  <bruno@clisp.org>
24613
24614         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
24615         (install_handlers): Don't set the SA_RESETHAND flag.
24616
24617 2008-06-23  Bruno Haible  <bruno@clisp.org>
24618
24619         * m4/sigaction.m4: Comment fixes.
24620         * lib/signal.in.h: Likewise.
24621
24622 2008-06-23  Eric Blake  <ebb9@byu.net>
24623
24624         Fix typo.
24625         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24626
24627         Avoid SA_ namespace.
24628         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24629         Reported by Ralf Wildenhues.
24630
24631         Avoid test failure due to SA_RESTORER.
24632         * tests/test-sigaction.c (SA_MASK): New macro.
24633         (main): Avoid failing due to extension flags being set.
24634         Reported by Jim Meyering.
24635
24636         Revert use of sig-handler.h in sigprocmask.c.
24637         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24638         it requires the existence of struct sigaction.
24639         * lib/sigprocmask.c (handler_t): Restore typedef.
24640         (rpl_signal, old_handlers): Use local type.
24641
24642 2008-06-22  Bruno Haible  <bruno@clisp.org>
24643
24644         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24645         conditionally.
24646         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24647
24648 2008-06-22  Bruno Haible  <bruno@clisp.org>
24649
24650         * doc/posix-functions/siginterrupt.texi: Move note.
24651
24652         * lib/signal.in.h (SA_RESTART): New macro.
24653         * lib/sigaction.c: Update comment.
24654
24655         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24656
24657         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24658         (gl_PREREQ_SIGPROCMASK): Invoke it.
24659         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24660
24661         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24662
24663         * lib/sigprocmask.c: Update a comment.
24664
24665 2008-06-21  Eric Blake  <ebb9@byu.net>
24666
24667         Use sigaction module rather than signal().
24668         * modules/c-stack (Depends-on): Add sigaction.
24669         * modules/fatal-signal (Depends-on): Likewise.
24670         * modules/nanosleep (Depends-on): Likewise.
24671         * modules/sigprocmask (Files): Add sig-handler.h.
24672         * modules/sigaction (Files): Likewise.
24673         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24674         Eggert.
24675         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24676         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24677         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24678         (init_fatal_signals): Likewise.
24679         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24680         (siginterrupt): Delete fallback.
24681         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24682         instead.
24683         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24684         siginterrupt.
24685
24686         New module sigaction, for mingw.
24687         * modules/sigaction: New module...
24688         * modules/sigaction-tests: ...and its test.
24689         * m4/sigaction.m4: New file.
24690         * lib/sigaction.c: Likewise.
24691         * tests/test-sigaction.c: Likewise.
24692         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24693         * modules/signal (Makefile.am): Likewise.
24694         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24695         needed.
24696         * doc/posix-headers/signal.texi (signal.h): Mention provided
24697         types.
24698         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24699         that sigaction is preferable.
24700         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24701         module.
24702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24703         sigaction.
24704
24705         Improve robustness of sigprocmask by overriding signal.
24706         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24707         is in use.
24708         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24709         (SIGKILL, SIGSTOP): Provide fallbacks.
24710         (rpl_signal): Implement.
24711         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24712         signal can be called inside handlers.
24713
24714         Fix nanosleep module on mingw.
24715         * modules/nanosleep (Depends-on): Add sys_select.
24716         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24717
24718         Fix licensing of sigprocmask.
24719         * modules/raise (License): Relicense as LGPL.
24720
24721 2008-06-21  Bruno Haible  <bruno@clisp.org>
24722
24723         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24724         result if it contains question marks.
24725         Reported by Michael Geng <linux@michaelgeng.de>.
24726
24727 2008-06-19  Bruno Haible  <bruno@clisp.org>
24728
24729         Fix CVS-ism.
24730         * doc/gnulib.texi: Include updated-stamp.texi.
24731         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24732         (updated-stamp.texi): New rule.
24733         (gnulib.info): Depend on it.
24734         * doc/.gitignore: Add updated-stamp.texi.
24735         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24736
24737 2008-06-19  Bruno Haible  <bruno@clisp.org>
24738
24739         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24740         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24741
24742 2008-06-19  Eric Blake  <ebb9@byu.net>
24743
24744         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24745         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24746         Reported by Stepan Kasal.
24747
24748 2008-06-18  Bruno Haible  <bruno@clisp.org>
24749
24750         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24751         Reported by Eric Blake.
24752
24753 2008-06-18  Eric Blake  <ebb9@byu.net>
24754
24755         Work around cygwin 1.5.25 strsignal bug.
24756         * tests/test-strsignal.c: Allow for const char *.
24757         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24758
24759 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24760
24761         * users.txt: Update URL to article and add author/date
24762         information.
24763
24764 2008-06-17  Bruno Haible  <bruno@clisp.org>
24765
24766         New macro gl_DISABLE_THREADS.
24767         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24768         if the user did not pass --enable-threads or --disable-threads option.
24769         (gl_DISABLE_THREADS): New macro.
24770         Reported by Eric Blake <ebb9@byu.net>.
24771
24772 2008-06-17  Bruno Haible  <bruno@clisp.org>
24773
24774         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24775         when the macro ignores it.
24776         Based on a patch by Eric Blake <ebb9@byu.net>.
24777
24778 2008-06-17  Bruno Haible  <bruno@clisp.org>
24779
24780         * modules/tls (License): Change to LGPLv2+.
24781         Reported by Eric Blake.
24782
24783 2008-06-17  Eric Blake  <ebb9@byu.net>
24784
24785         Simplify c-stack prerequisites.
24786         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24788         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24789         check.
24790         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24791         <sys/resource.h>.
24792
24793         Move c-stack test into testsuite.
24794         * modules/c-stack-tests: New file.
24795         * lib/c-stack.c [DEBUG]: Move test program...
24796         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24797         fail test if sigaltstack is lacking.
24798         * tests/test-c-stack.sh: New driver file.
24799
24800 2008-06-16  Eric Blake  <ebb9@byu.net>
24801
24802         Use raise module consistently.
24803         * modules/fatal-signal (Depends-on): Add raise.
24804         * modules/sigprocmask (Depends-on): Likewise.
24805         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24806         * lib/sigprocmask.c (sigprocmask): Likewise.
24807         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24808         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24809
24810         Fix compliance bug in sigpending.
24811         * lib/sigprocmask.c (sigpending): Return pending array via
24812         parameter, not return value.
24813
24814 2008-06-14  Eric Blake  <ebb9@byu.net>
24815
24816         Improve obstack-printf test code.
24817         * tests/test-obstack-printf.c (test_function): Fix comment, and
24818         simplify usage of obstack_* in macros.  Add a test for coverage.
24819         Reported by Bruno Haible.
24820
24821 2008-06-14  Bruno Haible  <bruno@clisp.org>
24822
24823         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24824         array size as a constant, not as a const variable.
24825         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24826         AC_USE_SYSTEM_EXTENSIONS.
24827         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24828         Test whether the obstack_printf function actually exists.
24829         * modules/obstack-printf (Depends-on): Add extensions.
24830         (Include): Remove obstack.h.
24831         * modules/obstack-printf-posix (Depends-on): Add extensions.
24832         (Include): Remove obstack.h.
24833
24834 2008-06-13  Eric Blake  <ebb9@byu.net>
24835
24836         Add obstack-printf and obstack-printf-posix modules.
24837         * modules/obstack-printf: New file.
24838         * modules/obstack-printf-posix: Likewise.
24839         * MODULES.html.sh (Misc): Mention them.
24840         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24841         Likewise.
24842         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24843         Likewise.
24844         * modules/stdio (Makefile.am): Accomodate new modules.
24845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24846         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24847         Declare.
24848         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24849         functions.
24850         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24851         (gl_REPLACE_OBSTACK_PRINTF): New macros
24852         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24853         * tests/test-obstack-printf.c: New file.
24854         * modules/obstack-printf-tests: Likewise.
24855         * modules/obstack-printf-posix-tests: Likewise.
24856
24857 2008-06-11  Bruno Haible  <bruno@clisp.org>
24858
24859         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24860         * lib/open.c: Include errno.h.
24861         (open): Fail when attempting to write to a file that has a trailing
24862         slash.
24863         * tests/test-open.c (main): Test against trailing slash bug.
24864         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24865
24866 2008-06-10  Bruno Haible  <bruno@clisp.org>
24867
24868         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24869         for $? to work inside the trap command, with various /bin/sh-s.
24870         * tests/test-vc-list-files-cvs.sh: Likewise.
24871
24872 2008-06-10  Bruno Haible  <bruno@clisp.org>
24873
24874         * lib/acl-internal.h: Don't include gettext.h here.
24875         * lib/set-mode-acl.c: Include gettext.h here.
24876         * lib/copy-acl.c: Likewise.
24877
24878 2008-06-10  Bruno Haible  <bruno@clisp.org>
24879
24880         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24881         * lib/wait-process.c (wait_subprocess): Likewise.
24882         * lib/execute.h (execute): Add termsigp argument.
24883         * lib/execute.c (execute): Likewise.
24884         * lib/csharpcomp.c (compile_csharp_using_pnet,
24885         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24886         * lib/csharpexec.c (execute_csharp_using_pnet,
24887         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24888         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24889         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24890         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24891         is_jikes_present): Update.
24892         * lib/javaexec.c (execute_java_class): Update.
24893         * lib/javaversion.c (execute_and_read_line): Update.
24894         * NEWS: Document the changes.
24895         Reported by Eric Blake.
24896
24897 2008-06-10  Eric Blake  <ebb9@byu.net>
24898
24899         Add missing include.
24900         * tests/test-strstr.c (includes): Add <signal.h>.
24901         * tests/test-strcasestr.c (includes): Likewise.
24902         * tests/test-memmem.c (includes): Likewise.
24903
24904 2008-06-10  Bruno Haible  <bruno@clisp.org>
24905
24906         * lib/wait-process.c (wait_subprocess): Add an assertion.
24907
24908 2008-06-10  Bruno Haible  <bruno@clisp.org>
24909
24910         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24911
24912 2008-06-10  Bruno Haible  <bruno@clisp.org>
24913
24914         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24915         using alarm().
24916         * tests/test-strcasestr.c (main): Likewise.
24917         * tests/test-strstr.c (main): Likewise.
24918
24919 2008-06-09  Bruno Haible  <bruno@clisp.org>
24920
24921         Work around the Solaris 10 ACE ACLs ABI change.
24922         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24923         declare if ACL_NO_TRIVIAL is present.
24924         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24925         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24926         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24927         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24928         define if ACL_NO_TRIVIAL is present.
24929         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24930         and use the current ABI.
24931         (file_has_acl): Use same #if condition as elsewhere.
24932         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24933         in use, and use the current ABI.
24934         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24935         Reported by Jim Meyering.
24936
24937 2008-06-09  Eric Blake  <ebb9@byu.net>
24938
24939         Work around environments that (stupidly) ignore SIGALRM.
24940         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24941         before using alarm().
24942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24943         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24944         Reported by Ian Beckwith <ianb@erislabs.net>.
24945
24946         Produce autobuild blurb earlier in log.
24947         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24948
24949 2008-06-09  Jim Meyering  <meyering@redhat.com>
24950         and OndÅ™ej Vašík  <ovasik@redhat.com>
24951
24952         utimens.c: correct kernel bug work-around
24953         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24954         failure, not success, and the kernel bug we're trying to work
24955         around affects not just the utimensat call, but also the fallback
24956         futimens call.
24957         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24958         not success.
24959         [HAVE_FUTIMENS]: Use the same work-around, here.
24960
24961 2008-06-09  Jim Meyering  <meyering@redhat.com>
24962
24963         add more guards around definition of ACE_-related code
24964         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24965         ALLOW and ACE_OWNER are also defined.
24966
24967 2008-06-08  Bruno Haible  <bruno@clisp.org>
24968
24969         * lib/acl-internal.h: Add me as co-author.
24970         * lib/file-has-acl.c: Likewise.
24971         * lib/set-mode-acl.c: Likewise.
24972         * lib/copy-acl.c: Likewise.
24973
24974 2008-06-08  Bruno Haible  <bruno@clisp.org>
24975
24976         Add support for AIX ACLs.
24977         * lib/acl-internal.h (acl_nontrivial): New declaration.
24978         * lib/file-has-acl.c (acl_nontrivial): New function.
24979         (file_has_acl): Add implementation using AIX 4 ACL API.
24980         * lib/set-mode-acl.c (qset_acl): Likewise.
24981         * lib/copy-acl.c (qcopy_acl): Likewise.
24982
24983 2008-06-08  Bruno Haible  <bruno@clisp.org>
24984
24985         Add support for HP-UX ACLs.
24986         * lib/acl-internal.h (acl_nontrivial): New declaration.
24987         * lib/file-has-acl.c (acl_nontrivial): New function.
24988         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24989         * lib/set-mode-acl.c (qset_acl): Likewise.
24990         * lib/copy-acl.c (qcopy_acl): Likewise.
24991
24992 2008-06-08  Bruno Haible  <bruno@clisp.org>
24993
24994         Add support for Cygwin ACLs.
24995         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24996         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24997         the chmod_or_fchmod call.
24998         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24999
25000 2008-06-08  Bruno Haible  <bruno@clisp.org>
25001
25002         Fix bug with setuid modes in Solaris 10+ code.
25003         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
25004         succeeded, when the mode contains some special bits.
25005
25006 2008-06-08  Bruno Haible  <bruno@clisp.org>
25007
25008         Add support for Solaris 7..10 ACLs.
25009         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
25010         declarations.
25011         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
25012         functions.
25013         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
25014         * lib/set-mode-acl.c (qset_acl): Likewise.
25015         * lib/copy-acl.c (qcopy_acl): Likewise.
25016
25017 2008-06-08  Bruno Haible  <bruno@clisp.org>
25018
25019         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
25020         declaration.
25021         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
25022         (acl_access_nontrivial): Remove MacOS X case.
25023         (file_has_acl): Use acl_extended_nontrivial.
25024         * lib/copy-acl.c (qcopy_acl): Likewise.
25025
25026 2008-06-08  Bruno Haible  <bruno@clisp.org>
25027
25028         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
25029
25030 2008-06-08  Jim Meyering  <meyering@redhat.com>
25031
25032         * modules/acl (Maintainer): Add Bruno Haible.
25033
25034 2008-06-07  Bruno Haible  <bruno@clisp.org>
25035
25036         Improve support for Tru64 ACLs.
25037         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
25038         ACL on OSF/1.
25039
25040 2008-06-07  Bruno Haible  <bruno@clisp.org>
25041
25042         Add support for MacOS X ACLs.
25043         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
25044         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
25045         * lib/set-mode-acl.c (qset_acl): Likewise.
25046         * lib/copy-acl.c (qcopy_acl): Likewise.
25047
25048 2008-06-07  Bruno Haible  <bruno@clisp.org>
25049
25050         Fix memory leak introduced on 2008-05-22.
25051         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
25052         use.
25053
25054 2008-06-07  Bruno Haible  <bruno@clisp.org>
25055
25056         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
25057         to construct an empty ACL.
25058
25059 2008-06-07  Bruno Haible  <bruno@clisp.org>
25060
25061         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
25062         precisely.
25063         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
25064
25065 2008-06-07  Bruno Haible  <bruno@clisp.org>
25066
25067         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
25068         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
25069
25070 2008-06-07  Bruno Haible  <bruno@clisp.org>
25071
25072         * doc/posix-functions/_setjmp.texi: Explain the use of this function
25073         regardless of POSIX.
25074         * doc/posix-functions/_longjmp.texi: Likewise.
25075         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
25076         SystemV platform in this case.
25077
25078 2008-06-06  Eric Blake  <ebb9@byu.net>
25079
25080         Document abort() bugs.
25081         * doc/posix-functions/abort.texi (abort): Mention anomalies.
25082
25083         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
25084         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
25085         sigsetjmp.
25086         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
25087         siglongjmp, but only as a macro.
25088         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
25089         is obsolete.
25090         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
25091
25092         Tweak documentation to cover cygwin argz bugs.
25093         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
25094         argz bug fix; no code change needed since no cygwin releases
25095         occurred between the last fix and the bug being tested.
25096         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
25097         module and recently fixed cygwin bugs.
25098         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
25099         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
25100         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
25101         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
25102         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
25103         Likewise.
25104         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
25105         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
25106         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
25107         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
25108         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
25109         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
25110         Likewise.
25111
25112         Avoid gcc warning on cygwin.
25113         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
25114         !ACL_NO_TRIVIAL]: Avoid unused variable.
25115
25116 2008-06-05  Eric Blake  <ebb9@byu.net>
25117
25118         Be tolerant of UNKNOWN version in gnulib-tool test dir.
25119         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
25120         git-version-gen fails to come up with a version.
25121         Reported by Simon Josefsson.
25122
25123 2008-06-05  Jim Meyering  <meyering@redhat.com>
25124             Paul Eggert  <eggert@cs.ucla.edu>
25125
25126         utimens.c: work around a probable Linux kernel bug
25127         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
25128         appears to be a kernel bug that causes utimensat to return 280
25129         instead of 0, indicating success.
25130
25131 2008-06-04  Bruno Haible  <bruno@clisp.org>
25132
25133         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
25134         2008-06-01 commit.
25135
25136 2008-06-04  Bruno Haible  <bruno@clisp.org>
25137
25138         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
25139         * lib/file-has-acl.c (acl_access_nontrivial): New function.
25140         (file_has_acl): Use it. Save errno afterwards.
25141         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
25142
25143 2008-06-03  Bruno Haible  <bruno@clisp.org>
25144
25145         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
25146         draft code. Simplify #ifs.
25147         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
25148         Put Solaris code after POSIX-draft code. Fix comments regarding
25149         Solaris 10, HP-UX. Mention Cygwin.
25150         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
25151
25152 2008-06-03  Eric Blake  <ebb9@byu.net>
25153
25154         Provide fallback for older kernels.
25155         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
25156         Provide runtime fallback if kernel lacks support.
25157         Reported by Mike Frysinger.
25158
25159 2008-06-02  Bruno Haible  <bruno@clisp.org>
25160
25161         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
25162         it exists.
25163
25164 2008-06-02  Bruno Haible  <bruno@clisp.org>
25165
25166         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
25167         * lib/copy-acl.c (qcopy_acl): Update comment.
25168
25169 2008-06-02  Bruno Haible  <bruno@clisp.org>
25170
25171         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
25172         like ACL APIs.
25173
25174 2008-06-02  Bruno Haible  <bruno@clisp.org>
25175
25176         * tests/test-file-has-acl.sh: Use different code for Cygwin.
25177         * tests/test-set-mode-acl.sh: Likewise.
25178         * tests/test-copy-acl.sh: Likewise.
25179         * tests/test-copy-file.sh: Likewise.
25180
25181 2008-06-02  Bruno Haible  <bruno@clisp.org>
25182
25183         * tests/test-file-has-acl.sh: Remove unused code.
25184
25185 2008-06-01  Bruno Haible  <bruno@clisp.org>
25186
25187         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
25188         (copy_acl): Just a wrapper around qcopy_acl that emits the error
25189         messages.
25190         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
25191
25192 2008-06-01  Bruno Haible  <bruno@clisp.org>
25193
25194         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
25195         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
25196         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
25197         APIs.
25198         * modules/acl-tests (configure.ac): Remove tests now contained in
25199         m4/acl.m4.
25200
25201 2008-06-02  Jim Meyering  <meyering@redhat.com>
25202
25203         announce-gen: use a better key-server host name
25204         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
25205         it may be more consistently reliable.  Suggested by Werner Koch
25206         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
25207
25208 2008-06-01  Bruno Haible  <bruno@clisp.org>
25209
25210         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
25211         Reported by Voroskoi Andras <voroskoi@gmail.com>.
25212
25213 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
25214
25215         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
25216
25217 2008-06-01  Bruno Haible  <bruno@clisp.org>
25218
25219         New ACL tests.
25220         * tests/test-file-has-acl.sh: New file.
25221         * tests/test-file-has-acl.c: New file.
25222         * tests/test-set-mode-acl.sh: New file.
25223         * tests/test-set-mode-acl.c: New file.
25224         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
25225         * tests/test-copy-acl.c: New file.
25226         * modules/acl-tests: New file, based on modules/copy-file-tests.
25227         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
25228         (Depends-on): Add acl-tests.
25229         (configure.ac): Remove checks.
25230         (Makefile.am): Don't create test-sameacls program here any more.
25231
25232 2008-06-01  Bruno Haible  <bruno@clisp.org>
25233
25234         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
25235         * tests/test-sameacls.c: Include progname.h.
25236         (main): Invoke set_program_name. Portability fixes for MacOS X,
25237         Solaris, HP-UX.
25238
25239 2008-06-01  Bruno Haible  <bruno@clisp.org>
25240
25241         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
25242         function.
25243         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
25244
25245 2008-06-01  Bruno Haible  <bruno@clisp.org>
25246
25247         * modules/rpmatch (Depends-on): Add strdup.
25248
25249 2008-06-01  Bruno Haible  <bruno@clisp.org>
25250
25251         * lib/pipe.c: Include unistd-safer.h.
25252         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
25253         * modules/pipe (Depends-on): Add unistd-safer.
25254
25255 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25256
25257         * modules/autobuild (configure.ac): Call AB_INIT.
25258
25259 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25260
25261         * tests/test-getaddrinfo.c: Don't print debug messages by default.
25262         Suggested by Bruno Haible <bruno@clisp.org>.
25263
25264 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25265
25266         * tests/test-base64.c: Cast size_t to unsigned long when invoking
25267         printf.  Use %lu instead of %d.  Reported by Bruno Haible
25268         <bruno@clisp.org>.
25269
25270 2008-05-29  Eric Blake  <ebb9@byu.net>
25271
25272         Prefer new POSIX 200x interfaces over futimesat.
25273         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
25274         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
25275         when available.
25276         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
25277
25278 2008-05-28  Bruno Haible  <bruno@clisp.org>
25279
25280         * modules/stpcpy (License): Change to LGPLv2+.
25281         Requested by David Lutterkort <dlutter@redhat.com>.
25282
25283 2008-05-27  Bruno Haible  <bruno@clisp.org>
25284
25285         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
25286         current mingw.
25287         Reported by Jose E. Marchesi <jemarch@gnu.org>.
25288
25289 2008-05-27  Bruno Haible  <bruno@clisp.org>
25290
25291         * modules/iconv_open (Link): New section, from module 'iconv'.
25292         * modules/striconv (Link): Likewise.
25293         * modules/striconveh (Link): Likewise.
25294         * modules/xstriconv (Link): Likewise.
25295         * modules/unicodeio (Link): Likewise.
25296         * modules/propername (Link): Likewise.
25297         Reported by Jim Meyering.
25298
25299 2008-05-26  Jim Meyering  <meyering@redhat.com>
25300
25301         sha256: do not artificially restrict buffer length to be < 2^32
25302         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
25303         uint32_t to size_t.
25304         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
25305         to match.
25306
25307         avoid unaligned access errors, e.g., on sparc
25308         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
25309         direct access through a possibly-unaligned uint64* pointer.
25310         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
25311         direct access through a possibly-unaligned uint32* pointer.
25312         Prompted by this patch from Tom "spot" Callaway:
25313         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
25314
25315         sha512.c: fix typo in comment
25316         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
25317
25318 2008-05-25  Bruno Haible  <bruno@clisp.org>
25319
25320         * lib/set-mode-acl.c: Renamed from lib/acl.c.
25321         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
25322         (Makefile.am): Update lib_SOURCES.
25323
25324 2008-05-25  Bruno Haible  <bruno@clisp.org>
25325
25326         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
25327
25328 2008-05-25  Jim Meyering  <meyering@redhat.com>
25329
25330         useless-if-before-free: freed expr may have white-space differences
25331         * build-aux/useless-if-before-free: Recognize cases in which the
25332         freed expression differs from the tested one in embedded white
25333         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
25334         $1 was used, so we can't make any regexp shy.  Improved tests now
25335         detect this.
25336
25337         useless-if-before-free: accept white space in the expression.
25338         * build-aux/useless-if-before-free: For now, any white space
25339         in the expression must be identical in the free argument.
25340
25341         useless-if-before-free: efficiency tweak
25342         * build-aux/useless-if-before-free: Make the expression-matching
25343         regexp "shy".
25344         Make the *outer* regexp shy, not the expr-matching one.
25345
25346         update code-in-comment to accept cast of free arg
25347         * build-aux/useless-if-before-free: Update regexp.
25348
25349 2008-05-25  Bruno Haible  <bruno@clisp.org>
25350
25351         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
25352         * modules/copy-file-tests (Files, Makefile.am): Update.
25353         * tests/test-copy-file.c (func_test_copy): Update.
25354
25355 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
25356
25357         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
25358
25359 2008-05-23  Bruno Haible  <bruno@clisp.org>
25360
25361         Improve support for ACLs on OSF/1.
25362         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
25363         Remove fallback for unknown flavors of ACLs.
25364
25365 2008-05-22  Bruno Haible  <bruno@clisp.org>
25366
25367         Add support for ACLs on OSF/1.
25368         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
25369         replacements.
25370         (acl_free_text): New macro fallback.
25371         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
25372         acl_free.
25373         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
25374         acl_free_text function. Require AC_C_INLINE.
25375
25376 2008-05-22  Bruno Haible  <bruno@clisp.org>
25377
25378         Make copy_acl work on MacOS X 10.5.
25379         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
25380         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
25381         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
25382         If MODE_INSIDE_ACL, don't assume that every system has the same text
25383         representation for ACLs as FreeBSD.
25384         * lib/copy-acl.c (copy_acl): Add support for platforms with
25385         !MODE_INSIDE_ACL.
25386         * lib/file-has-acl.c (file_has_acl): Likewise.
25387         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
25388         FreeBSD, MacOS X, or IRIX, respectively.
25389
25390 2008-05-22  Bruno Haible  <bruno@clisp.org>
25391
25392         * lib/acl.h: Don't include <sys/acl.h>.
25393         (GETACLCNT): Move fallback to lib/acl-internal.h.
25394         * lib/acl-internal.h: Include <sys/acl.h> here.
25395         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
25396
25397 2008-05-22  Bruno Haible  <bruno@clisp.org>
25398
25399         Split off copy_acl function to separate file.
25400         * lib/copy-acl.c: New file, extracted from lib/acl.c.
25401         * lib/acl.c (copy_acl): Moved function to separate file.
25402         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
25403         * modules/acl (Files): Add lib/copy-acl.c.
25404         (Makefiles.am): Augment lib_SOURCES.
25405
25406 2008-05-22  Bruno Haible  <bruno@clisp.org>
25407
25408         * modules/copy-file-tests: New file.
25409         * tests/test-copy-file.sh: New file.
25410         * tests/test-copy-file.c: New file.
25411         * tests/test-copy-file-sameacls.c: New file.
25412
25413 2008-05-22  Eric Blake  <ebb9@byu.net>
25414
25415         Avoid gcc warning.
25416         * tests/test-memcmp.c (main): Pass NULL indirectly.
25417
25418 2008-05-21  Bruno Haible  <bruno@clisp.org>
25419
25420         Add reference doc about ACLs.
25421         * doc/acl-resources.txt: New file.
25422         * doc/acl-cygwin.txt: New file.
25423
25424 2008-05-21  Bruno Haible  <bruno@clisp.org>
25425
25426         Avoid one more warning from gcc.
25427         * lib/vasnprintf.c (IF_LINT): Update comments.
25428         (VASNPRINTF): Use it also for the 'prefix' array initializer.
25429
25430 2008-05-21  Jim Meyering  <meyering@redhat.com>
25431
25432         avoid a warning from gcc
25433         * lib/vasnprintf.c (IF_LINT): Define.
25434         (scale10_round_decimal_long_double):
25435         Use it to avoid a "may be used uninitialized" warning.
25436         (scale10_round_decimal_double): Likewise.
25437
25438 2008-05-21  Simon Josefsson  <simon@josefsson.org>
25439
25440         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
25441         declared.
25442
25443 2008-05-20  Bruno Haible  <bruno@clisp.org>
25444
25445         * tests/test-memcmp.c (main): Test also the sign of the result. Test
25446         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
25447
25448 2008-05-20  Simon Josefsson  <simon@josefsson.org>
25449
25450         * modules/memcmp-tests: New file.
25451         * tests/test-memcmp.c: New file.
25452
25453 2008-05-19  Bruno Haible  <bruno@clisp.org>
25454
25455         * modules/propername (Notice, configure.ac): Put quoted "..." into
25456         --keyword option.
25457         * lib/propername.h: Update comments accordingly.
25458         Reported by Eric Blake.
25459
25460 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
25461
25462         * modules/getpass-gnu (Depends-on): Add fseeko.
25463
25464 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25465
25466         * modules/base64-tests: New file.
25467
25468 2008-05-19  Bo Borgerson <gigabo@gmail.com>
25469
25470         * lib/base64.c (base64_decode_ctx): If a decode context structure
25471         was passed in use it to ignore newlines.  If a context structure
25472         was _not_ passed in, continue to treat newlines as garbage (this
25473         is the historical behavior).  Formerly base64_decode.
25474         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25475         takes a decode context structure.
25476         * lib/base64.h (base64_decode): Macro for four-argument calls.
25477         (base64_decode_alloc): Likewise.
25478         * lib/base64.c (base64_decode_ctx): If a decode context structure
25479         was passed in use it to ignore newlines.  If a context structure
25480         was _not_ passed in, continue to treat newlines as garbage (this
25481         is the historical behavior).  Formerly base64_decode.
25482         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25483         takes a decode context structure.
25484         * lib/base64.h (base64_decode): Macro for four-argument calls.
25485         (base64_decode_alloc): Likewise.
25486
25487 2008-05-19  Jim Meyering  <meyering@redhat.com>
25488
25489         avoid a warning from gcc
25490         * lib/trim.c (IF_LINT): Define.
25491         (trim2): Use it to avoid a "may be used uninitialized" warning.
25492
25493         Fix doc typo.
25494         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
25495
25496 2008-05-19  Bruno Haible  <bruno@clisp.org>
25497
25498         * doc/glibc-functions/getpass.texi: Document limits of other
25499         implementations.
25500
25501 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25502             Bruno Haible <bruno@clisp.org>
25503
25504         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
25505
25506 2008-05-18  Bruno Haible  <bruno@clisp.org>
25507
25508         * modules/propername: New file, from GNU gettext.
25509         * lib/propername.h: New file, from GNU gettext.
25510         * lib/propername.c: New file, from GNU gettext.
25511         * MODULES.html.sh (Internationalization functions): Add propername.
25512
25513 2008-05-16  Jim Meyering  <meyering@redhat.com>
25514             Bruno Haible  <bruno@clisp.org>
25515
25516         Avoid some warnings from "gcc -Wshadow".
25517         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
25518
25519 2008-05-15  Eric Blake  <ebb9@byu.net>
25520
25521         Extend previous patch to cygwin 1.7.0.
25522         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
25523         fast implementation in cygwin >= 1.7.0.
25524         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25525         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25526
25527 2008-05-15  Bruno Haible  <bruno@clisp.org>
25528
25529         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
25530         implementation in glibc >= 2.9.
25531         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25533
25534 2008-05-15  Bruno Haible  <bruno@clisp.org>
25535
25536         * MODULES.html.sh (Internationalization functions): Remove linebreak.
25537         (Unicode string functions): Add unilbrk/*.
25538         Reported by Karl Berry.
25539
25540 2008-05-15  Eric Blake  <ebb9@byu.net>
25541
25542         Fix violation of <stdbool.h> replacement in regex.
25543         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
25544         * lib/regexec.c (re_search_internal): Likewise.
25545         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
25546
25547 2008-05-15  Jim Meyering  <meyering@redhat.com>
25548
25549         avoid distracting test output when git or cvs is not found
25550         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
25551         * tests/test-vc-list-files-git.sh: Likewise.
25552
25553 2008-05-15  Eric Blake  <ebb9@byu.net>
25554
25555         Glibc finally accepted the memmem speedup code, bugzilla #5514.
25556         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
25557         glibc version.
25558         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25559         * doc/posix-functions/strstr.texi (strstr): Likewise.
25560         * lib/str-two-way.h (MAX): Sychronize with glibc.
25561
25562 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
25563
25564         * lib/regcomp.c (optimize_utf8): Add a note on why we test
25565         opr.ctx_type.
25566         (calc_first): Initialize constraint field.
25567         (duplicate_node_closure): Use it instead of special casing ANCHORS.
25568         Fix grammar.
25569         (duplicate_node): Merge constraint field for all node types.
25570         (calc_eclosure_iter): Look at constraint field for all node types.
25571         * lib/regex_internal.c (create_cd_newstate): Don't look at
25572         opr.ctx_type.
25573
25574 2008-05-14  Bruno Haible  <bruno@clisp.org>
25575
25576         Help GCC to do better code generation.
25577         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
25578         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25579         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
25580         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
25581         Declare with attribute 'malloc' if supported.
25582
25583 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
25584
25585         use "echo STR|wc -c" rather than unportable "expr length STR"
25586         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
25587         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
25588
25589 2008-05-14  Jim Meyering  <meyering@redhat.com>
25590
25591         use dd ibs=$n count=1 ... rather than less-portable head -c$n
25592         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
25593         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
25594         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
25595         via Collin Lasse.
25596
25597 2008-05-14  Eric Blake  <ebb9@byu.net>
25598
25599         Avoid quadratic growth in gl_LIBSOURCES.
25600         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
25601         Suggested by Bruno Haible.
25602
25603         Test xmemdup0.
25604         * modules/xmemdup0-tests: New file.
25605         * tests/test-xmemdup0.c: Likewise.
25606
25607 2008-05-13  Eric Blake  <ebb9@byu.net>
25608
25609         Split xmemdup0 into its own module.
25610         * modules/xmemdup0: New file.
25611         * lib/xmemdup0.h: Likewise.
25612         * lib/xmemdup0.c: Likewise.
25613         * MODULES.html.sh (Memory management functions): Add xmemdup0.
25614         * lib/xalloc.h (xmemdup0): Remove.
25615         * lib/xmalloc.c (xmemdup0): Likewise.
25616
25617 2008-05-13  Eric Blake  <ebb9@byu.net>
25618             Bruno Haible  <bruno@clisp.org>
25619
25620         Reduce number of forks required during autoconf.
25621         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25622         and gl_LIBSOURCES_DIR.
25623         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25624         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25625         m4_syscmd per file.
25626         <m4_foreach_w>: Move...
25627         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25628
25629 2008-05-13  Eric Blake  <ebb9@byu.net>
25630
25631         * gnulib-tool: Fix various comment typos.
25632
25633 2008-05-12  Bruno Haible  <bruno@clisp.org>
25634
25635         Tailor the linebreaking algorithm.
25636         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25637
25638 2008-05-12  Bruno Haible  <bruno@clisp.org>
25639
25640         Update to Unicode 5.0.0.
25641         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25642         LBP_JV, LBP_JT. Redistribute values.
25643         (unilbrk_table): Change size.
25644         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25645         Unicode TR#14 rev. 22.
25646         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25647         LBP_JV, LBP_JT. Redistribute values.
25648         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25649         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25650         Update.
25651         * lib/unilbrk/lbrkprop1.h: Regenerated.
25652         * lib/unilbrk/lbrkprop2.h: Regenerated.
25653         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25654         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25655         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25656         Likewise.
25657         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25658         Likewise.
25659         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25660         result.
25661         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25662         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25663         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25664         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25665         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25666         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25667
25668 2008-05-11  Bruno Haible  <bruno@clisp.org>
25669
25670         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25671
25672 2008-05-11  Bruno Haible  <bruno@clisp.org>
25673
25674         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25675         * modules/unilbrk/gen-lbrk: New file.
25676
25677 2008-05-11  Bruno Haible  <bruno@clisp.org>
25678
25679         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25680         * m4/sha512.m4 (gl_SHA512): Likewise.
25681
25682 2008-05-11  Jim Meyering  <meyering@redhat.com>
25683
25684         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25685         * modules/crypto/sha256: New file.
25686         * modules/crypto/sha512: Likewise.
25687         * lib/sha256.c: Likewise.
25688         * lib/sha256.h: Likewise.
25689         * lib/sha512.c: Likewise.
25690         * lib/sha512.h: Likewise.
25691         * lib/u64.h: Likewise.
25692         * m4/sha256.m4: Likewise.
25693         * m4/sha512.m4: Likewise.
25694         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25695
25696 2008-05-10  Bruno Haible  <bruno@clisp.org>
25697
25698         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25699         (Input/Output <stdio.h>): Add xprintf.
25700         (Signal handling <signal.h>): Add strsignal.
25701         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25702         (Core language properties): Add func.
25703         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25704         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25705         strings.
25706         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25707         (Input/output): New section.
25708         (File system functions): Add openat-die, stat-macros.
25709         (Networking functions): Add sockets.
25710         (Unicode string functions): Add unictype/*.
25711         (Support for building libraries and executables): Add gperf.
25712         (Support for building documentation): Add agpl-3.0.
25713         (Misc): Add nocrash.
25714
25715 2008-05-10  Bruno Haible  <bruno@clisp.org>
25716
25717         * modules/unictype/gen-ctype: New file.
25718
25719 2008-05-10  Jim Meyering  <meyering@redhat.com>
25720
25721         Make chdir-safer.c more efficient on a system with no symlinks.
25722         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25723         also if ELOOP is zero.  Suggested by Bruno Haible.
25724
25725         Make chdir-safer.c slightly safer.
25726         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25727         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25728
25729         Avoid compile failure on systems without ELOOP (like mingw).
25730         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25731         Reported by Bruno Haible.
25732
25733 2008-05-10  Bruno Haible  <bruno@clisp.org>
25734
25735         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25736         (is_utf8_encoding): Use a case-insensitive comparison.
25737         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25738         streq.
25739
25740 2008-05-10  Bruno Haible  <bruno@clisp.org>
25741
25742         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25743         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25744         * lib/unilbrk/ulc-common.h (iconv_string_length,
25745         iconv_string_keeping_offsets): Remove declarations.
25746         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25747         Don't include <iconv.h>, streq.h, xsize.h.
25748         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25749         conversion.
25750         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25751         <iconv.h>, streq.h, xsize.h.
25752         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25753         conversion.
25754         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25755         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25756         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25757         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25758
25759 2008-05-10  Bruno Haible  <bruno@clisp.org>
25760
25761         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25762         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25763
25764         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25765         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25766
25767         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25768         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25769
25770         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25771         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25772
25773         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25774         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25775
25776         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25777         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25778
25779         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25780         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25781
25782         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25783         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25784
25785 2008-05-10  Bruno Haible  <bruno@clisp.org>
25786
25787         Split up 'linebreak' module.
25788         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25789         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25790         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25791         modifications.
25792         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25793         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25794         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25795         lib/linebreak.c.
25796         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25797         lib/linebreak.c.
25798         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25799         lib/linebreak.c.
25800         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25801         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25802         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25803         lib/linebreak.c.
25804         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25805         lib/linebreak.c.
25806         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25807         lib/linebreak.c.
25808         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25809         lib/linebreak.c.
25810         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25811         lib/linebreak.c.
25812         * modules/unilbrk/base: New file.
25813         * modules/unilbrk/tables: New file.
25814         * modules/unilbrk/u8-possible-linebreaks: New file.
25815         * modules/unilbrk/u16-possible-linebreaks: New file.
25816         * modules/unilbrk/u32-possible-linebreaks: New file.
25817         * modules/unilbrk/ulc-common: New file.
25818         * modules/unilbrk/ulc-possible-linebreaks: New file.
25819         * modules/unilbrk/u8-width-linebreaks: New file.
25820         * modules/unilbrk/u16-width-linebreaks: New file.
25821         * modules/unilbrk/u32-width-linebreaks: New file.
25822         * modules/unilbrk/ulc-width-linebreaks: New file.
25823         * lib/linebreak.h: Remove file.
25824         * lib/linebreak.c: Remove file.
25825         * m4/linebreak.m4: Remove file.
25826         * modules/linebreak: Remove file.
25827         * NEWS: Mention the changes.
25828
25829 2008-05-09  Eric Blake  <ebb9@byu.net>
25830
25831         Add xmemdup0.
25832         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25833         implementation.
25834         * lib/xmalloc.c (xmemdup0): New C implementation.
25835
25836 2008-05-08  Bruno Haible  <bruno@clisp.org>
25837
25838         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25839
25840 2008-05-07  Eric Blake  <ebb9@byu.net>
25841
25842         Support cross-compilation of <wctype.h>.
25843         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25844         AC_CACHE_CHECK.
25845
25846 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25847
25848         * build-aux/vc-list-files: Add support for bzr.
25849
25850 2008-05-03  Jim Meyering  <meyering@redhat.com>
25851
25852         avoid failed assertion with tight malloc
25853         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25854
25855 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25856
25857         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25858         are needed from arpa/inet.h.
25859         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25860         Reported by Bruno Haible.
25861
25862 2008-05-02  Jim Meyering  <meyering@redhat.com>
25863
25864         avoid compilation error on FreeBSD 6
25865         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25866
25867 2008-05-01  Jim Meyering  <meyering@redhat.com>
25868
25869         useless-if-before-free: correct --help's exit status description
25870         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25871         for one or more matches, etc.  Reported by Bruno Haible.
25872
25873         vc-list-files: make the stand-alone gnulib test work
25874         * modules/vc-list-files-tests (configure.ac):
25875         Define and AC_SUBST abs_aux_dir.
25876         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25877         $(abs_top_srcdir) to each script and having each of them
25878         duplicate the work of setting PATH, set PATH here, using
25879         the new variable, abs_aux_dir instead.
25880         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25881         * tests/test-vc-list-files-git.sh: Likewise.
25882         Reported by Bruno Haible.
25883
25884 2008-05-01  Bruno Haible  <bruno@clisp.org>
25885
25886         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25887         reallocation. Rename 'done' to 'found_delimiter'.
25888
25889 2008-05-01  Jim Meyering  <meyering@redhat.com>
25890
25891         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25892         * build-aux/vc-list-files: Use `...`, not $(...).
25893
25894 2008-04-30  Jim Meyering  <meyering@redhat.com>
25895
25896         add tests for vc-list-files
25897         * modules/vc-list-files-tests: New module.
25898         * tests/test-vc-list-files-cvs.sh: New file.
25899         * tests/test-vc-list-files-git.sh: New file.
25900
25901         avoid a warning from gcc
25902         * lib/getndelim2.c (IF_LINT): Define.
25903         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25904
25905         vc-list-files: work properly with build-aux/cvsu, too
25906         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25907         to all cvs-based clauses.
25908
25909         vc-list-files: work properly in the CVS+awk case, too
25910         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25911
25912         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25913         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25914         take more than one file argument, so .  Add quotes, just in case $dir
25915         ever contains a shell meta-character.  Prompted by Soren Hansen in
25916         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25917
25918 2008-04-29  Eric Blake  <ebb9@byu.net>
25919
25920         Optimize getndelim2 to use block operations when possible.
25921         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25922         freadseek, and memchr2.
25923         * lib/getndelim2.c (getndelim2): Use them for block reads.
25924
25925 2008-04-29  Bruno Haible  <bruno@clisp.org>
25926
25927         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25928         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25929         * modules/inet_ntop (Depends-on): Add extensions.
25930         * modules/inet_pton (Depends-on): Likewise.
25931         Reported by Simon Josefsson.
25932
25933 2008-04-29  Jim Meyering  <meyering@redhat.com>
25934
25935         When the is more than one match in a block, match all of them.
25936         * build-aux/useless-if-before-free: Iterate through each block
25937         until there are no more matches.
25938
25939         Fix broken useless-if-before-free script.
25940         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25941         the expression to match cast of argument to free-like function.
25942
25943 2008-04-29  Eric Blake  <ebb9@byu.net>
25944
25945         Use new header.
25946         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25947
25948 2008-04-29  Jim Meyering  <meyering@redhat.com>
25949
25950         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25951         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25952         by gnulib to exist and to declare e.g., inet_ntop.
25953         Don't include "inet_ntop.h", now removed.
25954
25955         * m4/arpa_inet_h.m4: Remove trailing blanks.
25956
25957 2008-04-29  Eric Blake  <ebb9@byu.net>
25958
25959         Silence valgrind on safe reads beyond potential array bounds.
25960         * lib/rawmemchr.valgrind: New file.
25961         * lib/strchrnul.valgrind: Likewise.
25962         * modules/rawmemchr (Files): Distribute new file.
25963         * modules/strchrnul (Files): Likewise.
25964         Suggested by Bruno Haible.
25965
25966 2008-04-29  Bruno Haible  <bruno@clisp.org>
25967
25968         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25969         (inet_ntop, inet_pton): Change portability warning's wording.
25970         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25971         Invoke gl_CHECK_NEXT_HEADERS.
25972         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25973         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25974         set ARPA_INET_H.
25975         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25976         * modules/arpa_inet (Description): No longer only for systems that
25977         lack it.
25978         (Depends-on): Add include_next.
25979         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25980         HAVE_ARPA_INET_H.
25981
25982 2008-04-29  Jim Meyering  <meyering@redhat.com>
25983
25984         * modules/mkdir (License): Re-license as LGPLv2+.
25985
25986 2008-04-29  Bruno Haible  <bruno@clisp.org>
25987
25988         * modules/rawmemchr (Maintainer): Set to Eric.
25989         * modules/strchrnul (Maintainer): Likewise.
25990
25991 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25992
25993         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25994         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25995
25996         * modules/arpa_inet (arpa/inet.h): Use them.
25997
25998 2008-04-28  Eric Blake  <ebb9@byu.net>
25999
26000         Test getndelim2.
26001         * modules/getndelim2-tests: New file.
26002         * tests/test-getndelim2.c: Likewise.
26003         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
26004         stream.
26005         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
26006
26007         * MODULES.html.sh: Document new module.
26008
26009 2008-04-20  Bruno Haible  <bruno@clisp.org>
26010
26011         * lib/c-stack.c (die): Use raise.
26012         * modules/c-stack (Depends-on): Add raise.
26013
26014 2008-04-28  Bruno Haible  <bruno@clisp.org>
26015
26016         Expect rpmatch to be declared.
26017         * lib/yesno.c (rpmatch): Remove declaration.
26018
26019         Declare rpmatch.
26020         * lib/stdlib.in.h (rpmatch): New declaration.
26021         * lib/rpmatch.c: Include <stdlib.h> first.
26022         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
26023         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
26024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
26025         HAVE_RPMATCH.
26026         * modules/rpmatch (Depends-on): Add stdlib, extensions.
26027         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26028         (Include): Set to <stdlib.h>.
26029         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
26030         HAVE_RPMATCH.
26031         * NEWS: Document the change.
26032
26033 2008-04-28  Bruno Haible  <bruno@clisp.org>
26034
26035         Change rpmatch to use nl_langinfo when appropriate.
26036         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
26037         (N_): New macro.
26038         (localized_pattern): New function/macro.
26039         (try): Remove match, nomatch arguments. Copy the pattern into safe
26040         memory before caching it.
26041         (rpmatch): Use localized_pattern. Add translator comments.
26042         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
26043         Suggested by Eric Blake.
26044         * modules/rpmatch (Depends-on): Add stdbool.
26045
26046 2008-04-28  Eric Blake  <ebb9@byu.net>
26047
26048         Add rawmemchr module, matching glibc.
26049         * modules/string (Makefile.am): New indicator.
26050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
26051         * lib/string.in.h (rawmemchr): Declare when appropriate.
26052         * modules/rawmemchr: New file.
26053         * m4/rawmemchr.m4: Likewise.
26054         * lib/rawmemchr.c: Likewise.
26055         * modules/rawmemchr-tests: Likewise.
26056         * tests/test-rawmemchr.c: Likewise.
26057         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
26058         module.
26059         * modules/strchrnul (Depends-on): Add rawmemchr.
26060         * lib/strchrnul.c (strchrnul): Optimize a corner case.
26061
26062         Whitespace cleanup.
26063         * tests/test-strchrnul.c: Reindent.
26064         * lib/strchrnul.c: Likewise.
26065
26066         Optimize and test strchrnul.
26067         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
26068         * modules/strchrnul-tests: New file.
26069         * tests/test-strchrnul.c: Likewise.
26070
26071         Remove intprops dependency.
26072         * modules/memchr (Depends-on): Remove intprops.
26073         * modules/memrchr (Depends-on): Likewise.
26074         * modules/memchr2 (Depends-on): Likewise.
26075         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
26076         * lib/memrchr.c (__memrchr): Likewise.
26077         * lib/memrchr2.c (memchr2): Likewise.
26078         Reported by Simon Josefsson.
26079
26080 2008-04-28  Simon Josefsson  <simon@josefsson.org>
26081
26082         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
26083         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26084
26085 2008-04-28  Simon Josefsson  <simon@josefsson.org>
26086
26087         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
26088
26089         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
26090
26091         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
26092
26093         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
26094         declarations.
26095         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
26096
26097         * m4/inet_pton.m4: Don't check for header files.
26098
26099         * m4/inet_ntop.m4: Don't check for header files.
26100
26101 2008-04-28  Simon Josefsson  <simon@josefsson.org>
26102
26103         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
26104         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
26105         trigger for cygwin).
26106         Reported by Bruno Haible  <bruno@clisp.org>.
26107
26108 2008-04-28  Bruno Haible  <bruno@clisp.org>
26109
26110         * doc/posix-functions/strdup.texi: Mention mingw problem.
26111
26112 2008-04-27  Bruno Haible  <bruno@clisp.org>
26113
26114         * modules/stat-time-tests (Depends-on): Add sleep.
26115         * tests/test-stat-time.c (force_unlink): New function.
26116         (cleanup): Use it.
26117         (test_mtime): Remove the ctime related tests.
26118         (test_ctime): New function, containing the ctime related tests.
26119         (main): Call test_ctime, except on native Windows platforms.
26120
26121 2008-04-27  Bruno Haible  <bruno@clisp.org>
26122
26123         * lib/rpmatch.c (rpmatch): Add some comments.
26124         Reported by James Youngman <jay@gnu.org>.
26125
26126 2008-04-27  Bruno Haible  <bruno@clisp.org>
26127
26128         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
26129         quiet NaNs.
26130
26131 2008-04-27  Bruno Haible  <bruno@clisp.org>
26132
26133         Make test-yesno.sh work on mingw.
26134         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
26135         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
26136         (main): Set stdin to binary mode.
26137         * modules/yesno-tests (Depends-on): Add binary-io.
26138
26139 2008-04-27  Bruno Haible  <bruno@clisp.org>
26140
26141         Fix 'isfinite' on x86, x86_64, ia64 platforms.
26142         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
26143         argument that lie outside the IEEE 854 domain.
26144         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
26145         (gl_ISFINITE): Use it.
26146         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
26147
26148 2008-04-27  Bruno Haible  <bruno@clisp.org>
26149
26150         Allow local renaming in config.h.
26151         * lib/memrchr.c (memrchr): Don't undefine outside libc.
26152
26153 2008-04-27  Bruno Haible  <bruno@clisp.org>
26154
26155         * lib/memchr.c (__memchr): Change type of 'i'.
26156         * lib/memchr2.c (memchr2): Likewise.
26157
26158 2008-04-26  Eric Blake  <ebb9@byu.net>
26159         and Bruno Haible  <bruno@clisp.org>
26160
26161         Optimize and test memrchr.
26162         * modules/memrchr (Depends-on): Add intprops.
26163         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
26164         * modules/memrchr-tests: New file.
26165         * tests/test-memrchr.c: New file.
26166
26167 2008-04-26  Bruno Haible  <bruno@clisp.org>
26168
26169         Add tentative support for DragonFly BSD.
26170         * lib/stdio-impl.h: Add macros for DragonFly BSD.
26171         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
26172         fp.
26173         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
26174         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
26175         * lib/fpurge.c (fpurge): Likewise.
26176         * lib/freadable.c (freaadable): Likewise.
26177         * lib/freadahead.c (freadahead): Likewise.
26178         * lib/freading.c (freading): Likewise.
26179         * lib/freadptr.c (freadptr): Likewise.
26180         * lib/freadseek.c (freadptrinc): Likewise.
26181         * lib/fseeko.c (fseeko): Likewise.
26182         * lib/fseterr.c (fseterr): Likewise.
26183         * lib/fwritable.c (fwritable): Likewise.
26184         * lib/fwriting.c (fwriting): Likewise.
26185
26186 2008-04-26  Bruno Haible  <bruno@clisp.org>
26187
26188         * lib/stdio-impl.h: New file.
26189         * lib/fbufmode.c: Include stdio-impl.h.
26190         (fbufmode): Use fp_, remove redundant #defines.
26191         * lib/fflush.c: Include stdio-impl.h.
26192         (clear_ungetc_buffer): Remove redundant #defines.
26193         * lib/fpurge.c: Include stdio-impl.h.
26194         (fpurge): Remove redundant #defines.
26195         * lib/freadable.c: Include stdio-impl.h.
26196         (freadable): Remove redundant #defines.
26197         * lib/freadahead.c: Include stdio-impl.h.
26198         (freadahead): Remove redundant #defines.
26199         * lib/freading.c: Include stdio-impl.h.
26200         (freading): Remove redundant #defines.
26201         * lib/freadptr.c: Include stdio-impl.h.
26202         (freadptr): Remove redundant #defines.
26203         * lib/freadseek.c: Include stdio-impl.h.
26204         (freadptrinc): Remove redundant #defines.
26205         * lib/fseeko.c: Include stdio-impl.h.
26206         (rpl_fseeko): Remove redundant #defines.
26207         * lib/fseterr.c: Include stdio-impl.h.
26208         (fseterr): Remove redundant #defines.
26209         * lib/fwritable.c: Include stdio-impl.h.
26210         (fwritable: Remove redundant #defines.
26211         * lib/fwriting.c: Include stdio-impl.h.
26212         (fwriting): Remove redundant #defines.
26213         * modules/fbufmode (Files): Add lib/stdio-impl.h.
26214         * modules/fflush (Files): Likewise.
26215         * modules/fpurge (Files): Likewise.
26216         * modules/freadable (Files): Likewise.
26217         * modules/freadahead (Files): Likewise.
26218         * modules/freading (Files): Likewise.
26219         * modules/freadptr (Files): Likewise.
26220         * modules/freadseek (Files): Likewise.
26221         * modules/fseeko (Files): Likewise.
26222         * modules/fseterr (Files): Likewise.
26223         * modules/fwritable (Files): Likewise.
26224         * modules/fwriting (Files): Likewise.
26225
26226 2008-04-26  Bruno Haible  <bruno@clisp.org>
26227
26228         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
26229         restore_seek_optimization, update_fpos_cache): New functions, extracted
26230         from rpl_fflush.
26231         (rpl_fflush): Use them.
26232         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
26233         (gl_REPLACE_FFLUSH): Use it.
26234
26235 2008-04-26  Bruno Haible  <bruno@clisp.org>
26236
26237         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
26238         on Solaris.
26239         * tests/test-xstrtoimax.sh: Likewise.
26240         * tests/test-xstrtoumax.sh: Likewise.
26241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26242
26243 2008-04-26  Bruno Haible  <bruno@clisp.org>
26244
26245         * modules/memchr-tests: New file.
26246         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
26247
26248 2008-04-26  Eric Blake  <ebb9@byu.net>
26249             Bruno Haible  <bruno@clisp.org>
26250
26251         * lib/memchr.c: Include intprops.h.
26252         (__memchr): Optimize parallel detection of matching bytes. Rename local
26253         variables. Add explanatory comments.
26254
26255 2008-04-26  Bruno Haible  <bruno@clisp.org>
26256
26257         Fix module 'memchr', broken since 2000-10-28.
26258         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
26259
26260 2008-04-26  Bruno Haible  <bruno@clisp.org>
26261
26262         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
26263         comments.
26264
26265 2008-04-25  Eric Blake  <ebb9@byu.net>
26266
26267         Use native fstatat on cygwin 1.7.0.
26268         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
26269         first.
26270
26271 2008-04-23  Eric Blake  <ebb9@byu.net>
26272
26273         Improve memchr2 performance.
26274         * lib/memchr2.c (memchr2): Further optimize parallel detection of
26275         NUL bytes.
26276         * modules/memchr2 (Depends-on): Use intprops.h.
26277
26278 2008-04-23  Simon Josefsson  <simon@josefsson.org>
26279
26280         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
26281         an inline function instead of a CPP macro.  Patch by Ben Pfaff
26282         <blp@cs.stanford.edu>.
26283
26284 2008-04-23  Simon Josefsson  <simon@josefsson.org>
26285
26286         * lib/arpa_inet.in.h: New file.
26287
26288         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
26289         (Makefile.am): Sed in substitute header file.
26290
26291         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
26292         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
26293
26294         * modules/inet_ntop (configure.ac): Use
26295         gl_ARPA_INET_MODULE_INDICATOR.
26296
26297         * modules/inet_pton (configure.ac): Use
26298         gl_ARPA_INET_MODULE_INDICATOR.
26299
26300 2008-04-22  Jim Meyering  <meyering@redhat.com>
26301
26302         * modules/verify (License): Re-license as LGPLv2+.
26303
26304 2008-04-22  Simon Josefsson  <simon@josefsson.org>
26305
26306         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
26307         parameter to void* as per POSIX standard (MinGW uses char*).
26308
26309 2008-04-21  Bruno Haible  <bruno@clisp.org>
26310
26311         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26312         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
26313         Define to replacements if REPLACE_ISWCNTRL is 1.
26314         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
26315         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
26316         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
26317         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
26318         what it fixes.
26319         * doc/posix-functions/iswalpha.texi: Likewise.
26320         * doc/posix-functions/iswblank.texi: Likewise.
26321         * doc/posix-functions/iswcntrl.texi: Likewise.
26322         * doc/posix-functions/iswdigit.texi: Likewise.
26323         * doc/posix-functions/iswgraph.texi: Likewise.
26324         * doc/posix-functions/iswlower.texi: Likewise.
26325         * doc/posix-functions/iswprint.texi: Likewise.
26326         * doc/posix-functions/iswpunct.texi: Likewise.
26327         * doc/posix-functions/iswspace.texi: Likewise.
26328         * doc/posix-functions/iswupper.texi: Likewise.
26329         * doc/posix-functions/iswxdigit.texi: Likewise.
26330         Reported by Alain Guibert.
26331
26332 2008-04-21  Bruno Haible  <bruno@clisp.org>
26333
26334         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
26335         Patch by Alain Guibert.
26336
26337 2008-04-21  Bruno Haible  <bruno@clisp.org>
26338
26339         Fix test failures on mingw.
26340         * tests/test-xstrtol.c (print_no_progname): New function.
26341         (main): Install it in error_print_progname hook.
26342         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
26343         * tests/test-xstrtoimax.sh: Likewise.
26344         * tests/test-xstrtoumax.sh: Likewise.
26345
26346 2008-04-21  Bruno Haible  <bruno@clisp.org>
26347
26348         Fix test failure on mingw.
26349         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
26350
26351 2008-04-21  Bruno Haible  <bruno@clisp.org>
26352
26353         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
26354         Actually assign a value.
26355
26356 2008-04-20  Bruno Haible  <bruno@clisp.org>
26357
26358         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
26359         take 2.
26360         * lib/canonicalize.c (canonicalize_file_name): Elide if the
26361         'canonicalize-lgpl' module is also used.
26362         * lib/canonicalize-lgpl.c: Undo last change.
26363         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
26364
26365 2008-04-20  Bruno Haible  <bruno@clisp.org>
26366
26367         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
26368         config.h. Provide _mkdir based fallback for mingw.
26369         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
26370         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
26371         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
26372         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
26373         rather than defining mkdir in config.h.
26374         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
26375         (gl_SYS_STAT_H_DEFAULTS): New macro.
26376         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
26377         HAVE_IO_H any more.
26378         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
26379         HAVE_DECL_MKDIR and HAVE_IO_H.
26380
26381 2008-04-20  Bruno Haible  <bruno@clisp.org>
26382
26383         * lib/isapipe.c: Port to native Windows platforms.
26384
26385 2008-04-20  Bruno Haible  <bruno@clisp.org>
26386
26387         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
26388
26389 2008-04-21  Eric Blake  <ebb9@byu.net>
26390
26391         Work around preprocessors that don't handle UINTMAX_MAX.
26392         * lib/memchr2.c (memchr2): Avoid embedded #if.
26393         Reported by Alain Guibert, fix suggested by Bruno Haible.
26394
26395 2008-04-21  Simon Josefsson  <simon@josefsson.org>
26396
26397         * doc/posix-functions/strftime.texi (strftime): Explain better
26398         Windows incompatibility.  Suggested by Micah Cowan
26399         <micah@cowan.name>.
26400
26401 2008-04-20  Bruno Haible  <bruno@clisp.org>
26402
26403         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
26404         unistr/u8-mblen.
26405
26406 2008-04-20  Bruno Haible  <bruno@clisp.org>
26407
26408         Fix test failure on platforms with non-GNU iconv.
26409         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
26410         (U_TO_U8): Use it, rather than u16_to_u8.
26411         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
26412         units at the end of the input string.
26413         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
26414
26415 2008-04-20  Bruno Haible  <bruno@clisp.org>
26416
26417         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
26418         when the resulting length is 0.
26419         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
26420
26421 2008-04-20  Bruno Haible  <bruno@clisp.org>
26422
26423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
26424         works.
26425         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
26426
26427 2008-04-20  Bruno Haible  <bruno@clisp.org>
26428
26429         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
26430         * modules/tsearch-tests (configure.ac): Test for initstate function.
26431
26432 2008-04-20  Bruno Haible  <bruno@clisp.org>
26433
26434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
26435         for nlink_t if missing.
26436         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
26437
26438 2008-04-19  Bruno Haible  <bruno@clisp.org>
26439
26440         Work around snprintf bug on Linux libc5.
26441         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
26442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26443         gl_SNPRINTF_SIZE1.
26444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26445         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
26446         that test failed.
26447         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
26448         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
26449         * modules/snprintf (Files): Add m4/printf.m4.
26450         * modules/vsnprintf (Files): Likewise.
26451         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
26452         * doc/posix-functions/vsnprintf.texi: Likewise.
26453
26454 2008-04-19  Bruno Haible  <bruno@clisp.org>
26455
26456         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
26457         from 0.0058 to less than 10^-7.
26458
26459 2008-04-19  Bruno Haible  <bruno@clisp.org>
26460
26461         Fix rounding when a precision is given.
26462         * lib/vasnprintf.c (is_borderline): New function.
26463         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
26464         9...9x.
26465         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
26466         %e, %g.
26467         * tests/test-vasprintf-posix.c (test_function): Likewise.
26468         * tests/test-snprintf-posix.h (test_function): Likewise.
26469         * tests/test-sprintf-posix.h (test_function): Likewise.
26470         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
26471         * tests/test-printf-posix.h (test_function): Likewise.
26472         * tests/test-printf-posix.output: Update.
26473         Reported by John Darrington <john@darrington.wattle.id.au> via
26474         Ben Pfaff <blp@cs.stanford.edu>.
26475
26476 2008-04-18  Simon Josefsson  <simon@josefsson.org>
26477
26478         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
26479         Suggested by Bruno Haible <bruno@clisp.org>.
26480
26481 2008-04-17  Bruno Haible  <bruno@clisp.org>
26482
26483         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
26484         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
26485         implementation.
26486         Patch by Bruce Merry <bmerry@gmail.com>.
26487
26488 2008-04-17  Simon Josefsson  <simon@josefsson.org>
26489
26490         * doc/posix-functions/strftime.texi (strftime): Mention that %e
26491         doesn't work under Windows.
26492
26493 2008-04-16  Bruno Haible  <bruno@clisp.org>
26494
26495         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
26496         New macros.
26497         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
26498         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
26499         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
26500         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
26501         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
26502         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
26503         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
26504         macros.
26505         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
26506         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
26507         Northern Sotho, Uighur.
26508
26509 2008-04-16  Bruno Haible  <bruno@clisp.org>
26510
26511         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
26512         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
26513         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
26514         Reported by Daniel Bergström <daniel@octocode.com>.
26515
26516 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
26517             Bruno Haible  <bruno@clisp.org>
26518
26519         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
26520         function.
26521         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
26522         New functions, mostly extracted from gl_locale_name_default.
26523         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
26524
26525 2008-04-16  Eric Blake  <ebb9@byu.net>
26526
26527         Adjust strtod detection to catch glibc 2.7 bug.
26528         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
26529         Reported by John Gatewood Ham.
26530
26531 2008-04-16  Bruno Haible  <bruno@clisp.org>
26532
26533         Add tentative support for Linux libc5.
26534         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
26535         * lib/fpurge.c (fpurge): Likewise.
26536         * lib/freadable.c (freadable): Likewise.
26537         * lib/freadahead.c (freadahead): Likewise.
26538         * lib/freading.c (freading): Likewise.
26539         * lib/freadptr.c (freadptr): Likewise.
26540         * lib/freadseek.c (freadptrinc): Likewise.
26541         * lib/fseeko.c (rpl_fseeko): Likewise.
26542         * lib/fseterr.c (fseterr): Likewise.
26543         * lib/fwritable.c (fwritable): Likewise.
26544         * lib/fwriting.c (fwriting): Likewise.
26545         Reported by Alain Guibert <alguibert+bts@free.fr>.
26546
26547 2008-04-15  Bruno Haible  <bruno@clisp.org>
26548
26549         * modules/mathl (configure.ac): Define module indicator.
26550
26551 2008-04-15  Bruno Haible  <bruno@clisp.org>
26552
26553         * lib/logl.c (logl): Remove unused variables.
26554
26555 2008-04-15  Bruno Haible  <bruno@clisp.org>
26556
26557         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
26558         fails.
26559
26560 2008-04-15  Bruno Haible  <bruno@clisp.org>
26561
26562         * lib/trim.c (trim2): Fix argument of isspace() macro.
26563
26564 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
26565
26566         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
26567         to 0.
26568         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
26569
26570 2008-04-14  Bruno Haible  <bruno@clisp.org>
26571
26572         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
26573         AC_LANG_PROGRAM argument.
26574         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
26575         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
26576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26577         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26578         * m4/math_h.m4 (gl_MATH_H): Likewise.
26579         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26580         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26581         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26582         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
26583         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26584         * m4/regex.m4 (gl_REGEX): Likewise.
26585         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
26586         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
26587         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26588         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
26589         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26590         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26591         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26592         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26593
26594 2008-04-14  Jim Meyering  <meyering@redhat.com>
26595
26596         test-strtod: fix typos: s/abs/fabs/
26597         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
26598
26599 2008-04-13  Bruno Haible  <bruno@clisp.org>
26600
26601         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
26602         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
26603         module is also used and while not building the reloc-wrapper.
26604
26605 2008-04-13  Bruno Haible  <bruno@clisp.org>
26606
26607         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
26608
26609 2008-04-13  Bruno Haible  <bruno@clisp.org>
26610
26611         Fix AIX compilation failure introduced on 2008-04-02.
26612         * tests/test-frexp.c (exp): Undefine before redefining.
26613         * tests/test-frexpl.c (exp): Likewise.
26614
26615 2008-04-13  Bruno Haible  <bruno@clisp.org>
26616
26617         Work around a HP-UX stdio bug.
26618         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26619         * tests/test-ftello.c (main): Likewise.
26620         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26621         * doc/posix-functions/ftello.texi: Likewise.
26622
26623 2008-04-13  Bruno Haible  <bruno@clisp.org>
26624
26625         Make test-signbit pass on HP-UX/hppa.
26626         * tests/test-signbit.c (minus_zerol): New variable.
26627         (test_signbitl): Use it.
26628
26629 2008-04-13  Bruno Haible  <bruno@clisp.org>
26630
26631         Make truncl work on OSF/1 4.0.
26632         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26633         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26634         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26636         HAVE_DECL_TRUNCL.
26637         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26638         HAVE_DECL_TRUNCL.
26639         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26640
26641 2008-04-13  Bruno Haible  <bruno@clisp.org>
26642
26643         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26644
26645 2008-04-13  Bruno Haible  <bruno@clisp.org>
26646
26647         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26648         expression, so as to avoid HP-UX 11 cc compiler bug.
26649
26650 2008-04-13  Bruno Haible  <bruno@clisp.org>
26651
26652         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26653
26654 2008-04-13  Bruno Haible  <bruno@clisp.org>
26655
26656         * lib/git-merge-changelog.c: Remove empty declaration outside of
26657         functions.
26658
26659 2008-04-13  Bruno Haible  <bruno@clisp.org>
26660
26661         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26662
26663 2008-04-13  Bruno Haible  <bruno@clisp.org>
26664
26665         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26666         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26667         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26668         also if it exists but lacks definitions of the SHUT_* macros.
26669         * modules/sys_socket (Description): Update.
26670         Reported by Elbert Pol <e.pol@chello.nl>.
26671
26672 2008-04-13  Bruno Haible  <bruno@clisp.org>
26673
26674         * lib/localcharset.c (OS2): Don't redefine if already defined.
26675         Reported by Elbert Pol <e.pol@chello.nl>.
26676
26677 2008-04-13  Bruno Haible  <bruno@clisp.org>
26678
26679         * lib/binary-io.h [__EMX__]: Include <io.h>.
26680         Reported by Elbert Pol <e.pol@chello.nl>.
26681
26682 2008-04-12  Bruno Haible  <bruno@clisp.org>
26683
26684         * lib/fpucw.h: Enable the definitions also for x86_64.
26685         Needed for NetBSD/x86_64.
26686         Reported by Thomas Klausner <tk@giga.or.at>.
26687
26688 2008-04-12  Bruno Haible  <bruno@clisp.org>
26689
26690         * tests/test-strtod.c: Include isnand.h.
26691         (main): Use isnand instead of isnan.
26692         Reported by Jim Meyering.
26693
26694 2008-04-12  Bruno Haible  <bruno@clisp.org>
26695
26696         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26697         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26698
26699 2008-04-12  Jim Meyering  <meyering@redhat.com>
26700
26701         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26702
26703 2008-04-12  Bruno Haible  <bruno@clisp.org>
26704
26705         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26706         Reported by Elbert Pol <e.pol@chello.nl>.
26707
26708 2008-04-12  Eric Blake  <ebb9@byu.net>
26709
26710         Work around Solaris 10 math.h bug.
26711         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26712         (gl_MATH_H_DEFAULTS): Set up default.
26713         * modules/math (Makefile.am): Replace new indicators.
26714         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26715         * tests/test-math.c (main): Test this.
26716         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26717         * doc/posix-headers/math.texi (math.h): Mention bug.
26718         Reported by Nelson H. F. Beebe and Jim Meyering.
26719
26720 2008-04-11  Bruno Haible  <bruno@clisp.org>
26721
26722         Adapt to future versions of Apple GCC.
26723         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26724         Reported by Peter O'Gorman <peter@pogma.com>.
26725
26726 2008-04-11  Bruno Haible  <bruno@clisp.org>
26727
26728         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26729
26730 2008-04-11  Bruno Haible  <bruno@clisp.org>
26731
26732         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26733
26734         * modules/getaddrinfo-tests (Makefile.am): Define
26735         test_getaddrinfo_LDADD.
26736
26737 2008-04-11  Bruno Haible  <bruno@clisp.org>
26738
26739         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26740         (init): Fix syntax error.
26741         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26742         is declared.
26743
26744 2008-04-11  Bruno Haible  <bruno@clisp.org>
26745
26746         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26747         * modules/glob (Depends-on): Add stdbool.
26748
26749 2008-04-11  Bruno Haible  <bruno@clisp.org>
26750
26751         * lib/trim.c: Include <string.h>.
26752
26753 2008-04-11  Eric Blake  <ebb9@byu.net>
26754
26755         Avoid compile failure on OS/2.
26756         * lib/regex_internal.h (internal_function): Disable optimization
26757         on OS/2 (__EMX__), where it caused compiler error.
26758         Reported by Elbert Pol.
26759
26760 2008-04-11  Bruno Haible  <bruno@clisp.org>
26761
26762         Flush the standard error stream before aborting. Needed on mingw.
26763         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26764         * tests/test-array_list.c (ASSERT): Likewise.
26765         * tests/test-array_oset.c (ASSERT): Likewise.
26766         * tests/test-avltree_list.c (ASSERT): Likewise.
26767         * tests/test-avltree_oset.c (ASSERT): Likewise.
26768         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26769         * tests/test-binary-io.c (ASSERT): Likewise.
26770         * tests/test-byteswap.c (ASSERT): Likewise.
26771         * tests/test-c-ctype.c (ASSERT): Likewise.
26772         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26773         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26774         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26775         * tests/test-c-strstr.c (ASSERT): Likewise.
26776         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26777         * tests/test-canonicalize.c (ASSERT): Likewise.
26778         * tests/test-carray_list.c (ASSERT): Likewise.
26779         * tests/test-ceilf1.c (ASSERT): Likewise.
26780         * tests/test-ceilf2.c (ASSERT): Likewise.
26781         * tests/test-ceill.c (ASSERT): Likewise.
26782         * tests/test-count-one-bits.c (ASSERT): Likewise.
26783         * tests/test-fbufmode.c (ASSERT): Likewise.
26784         * tests/test-fflush2.c (ASSERT): Likewise.
26785         * tests/test-floorf1.c (ASSERT): Likewise.
26786         * tests/test-floorf2.c (ASSERT): Likewise.
26787         * tests/test-floorl.c (ASSERT): Likewise.
26788         * tests/test-fopen.c (ASSERT): Likewise.
26789         * tests/test-fpending.c (ASSERT): Likewise.
26790         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26791         * tests/test-fpurge.c (ASSERT): Likewise.
26792         * tests/test-freadable.c (ASSERT): Likewise.
26793         * tests/test-freadahead.c (ASSERT): Likewise.
26794         * tests/test-freading.c (ASSERT): Likewise.
26795         * tests/test-freadptr.c (ASSERT): Likewise.
26796         * tests/test-freadptr2.c (ASSERT): Likewise.
26797         * tests/test-freadseek.c (ASSERT): Likewise.
26798         * tests/test-freopen.c (ASSERT): Likewise.
26799         * tests/test-frexp.c (ASSERT): Likewise.
26800         * tests/test-frexpl.c (ASSERT): Likewise.
26801         * tests/test-fseek.c (ASSERT): Likewise.
26802         * tests/test-fseeko.c (ASSERT): Likewise.
26803         * tests/test-fstrcmp.c (ASSERT): Likewise.
26804         * tests/test-ftell.c (ASSERT): Likewise.
26805         * tests/test-ftello.c (ASSERT): Likewise.
26806         * tests/test-func.c (ASSERT): Likewise.
26807         * tests/test-fwritable.c (ASSERT): Likewise.
26808         * tests/test-fwriting.c (ASSERT): Likewise.
26809         * tests/test-getdelim.c (ASSERT): Likewise.
26810         * tests/test-getline.c (ASSERT): Likewise.
26811         * tests/test-i-ring.c (ASSERT): Likewise.
26812         * tests/test-iconv-utf.c (ASSERT): Likewise.
26813         * tests/test-iconv.c (ASSERT): Likewise.
26814         * tests/test-isfinite.c (ASSERT): Likewise.
26815         * tests/test-isnand.c (ASSERT): Likewise.
26816         * tests/test-isnanf.c (ASSERT): Likewise.
26817         * tests/test-isnanl.h (ASSERT): Likewise.
26818         * tests/test-ldexpl.c (ASSERT): Likewise.
26819         * tests/test-linked_list.c (ASSERT): Likewise.
26820         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26821         * tests/test-localename.c (ASSERT): Likewise.
26822         * tests/test-lseek.c (ASSERT): Likewise.
26823         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26824         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26825         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26826         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26827         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26828         * tests/test-mbschr.c (ASSERT): Likewise.
26829         * tests/test-mbscspn.c (ASSERT): Likewise.
26830         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26831         * tests/test-mbspbrk.c (ASSERT): Likewise.
26832         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26833         * tests/test-mbsrchr.c (ASSERT): Likewise.
26834         * tests/test-mbsspn.c (ASSERT): Likewise.
26835         * tests/test-mbsstr1.c (ASSERT): Likewise.
26836         * tests/test-mbsstr2.c (ASSERT): Likewise.
26837         * tests/test-mbsstr3.c (ASSERT): Likewise.
26838         * tests/test-memchr2.c (ASSERT): Likewise.
26839         * tests/test-memmem.c (ASSERT): Likewise.
26840         * tests/test-open.c (ASSERT): Likewise.
26841         * tests/test-printf-frexp.c (ASSERT): Likewise.
26842         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26843         * tests/test-printf-posix.c (ASSERT): Likewise.
26844         * tests/test-quotearg.c (ASSERT): Likewise.
26845         * tests/test-rbtree_list.c (ASSERT): Likewise.
26846         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26847         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26848         * tests/test-round1.c (ASSERT): Likewise.
26849         * tests/test-roundf1.c (ASSERT): Likewise.
26850         * tests/test-roundl.c (ASSERT): Likewise.
26851         * tests/test-signbit.c (ASSERT): Likewise.
26852         * tests/test-sleep.c (ASSERT): Likewise.
26853         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26854         * tests/test-snprintf.c (ASSERT): Likewise.
26855         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26856         * tests/test-stat-time.c (ASSERT): Likewise.
26857         * tests/test-strcasestr.c (ASSERT): Likewise.
26858         * tests/test-strerror.c (ASSERT): Likewise.
26859         * tests/test-striconv.c (ASSERT): Likewise.
26860         * tests/test-striconveh.c (ASSERT): Likewise.
26861         * tests/test-striconveha.c (ASSERT): Likewise.
26862         * tests/test-strsignal.c (ASSERT): Likewise.
26863         * tests/test-strstr.c (ASSERT): Likewise.
26864         * tests/test-strtod.c (ASSERT): Likewise.
26865         * tests/test-trunc1.c (ASSERT): Likewise.
26866         * tests/test-trunc2.c (ASSERT): Likewise.
26867         * tests/test-truncf1.c (ASSERT): Likewise.
26868         * tests/test-truncf2.c (ASSERT): Likewise.
26869         * tests/test-truncl.c (ASSERT): Likewise.
26870         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26871         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26872         * tests/test-vasnprintf.c (ASSERT): Likewise.
26873         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26874         * tests/test-vasprintf.c (ASSERT): Likewise.
26875         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26876         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26877         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26878         * tests/test-vsnprintf.c (ASSERT): Likewise.
26879         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26880         * tests/test-wcwidth.c (ASSERT): Likewise.
26881         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26882         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26883         * tests/test-xvasprintf.c (ASSERT): Likewise.
26884         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26885         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26886         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26887         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26888         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26889         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26890         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26891         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26892         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26893         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26894         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26895         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26896         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26897         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26898         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26899         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26900         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26901         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26902         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26903         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26904         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26905         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26906         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26907         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26908         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26909         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26910         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26911         * tests/unictype/test-combining.c (ASSERT): Likewise.
26912         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26913         * tests/unictype/test-digit.c (ASSERT): Likewise.
26914         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26915         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26916         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26917         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26918         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26919         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26920         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26921         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26922         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26923         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26924         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26925         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26926         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26927         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26928         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26929         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26930         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26931         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26932         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26933         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26934         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26935         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26936         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26937         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26938         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26939         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26940         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26941         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26942         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26943         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26944         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26945         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26946         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26947         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26948         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26949         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26950         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26951         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26952         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26953         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26954         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26955         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26956         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26957         Reported by Eric Blake.
26958
26959 2008-04-11  Bruno Haible  <bruno@clisp.org>
26960
26961         * lib/wchar.in.h: Tweak comment.
26962
26963 2008-04-11  Bruno Haible  <bruno@clisp.org>
26964
26965         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26966         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26967         gl_COMMON.
26968         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26969
26970 2008-04-11  Bruno Haible  <bruno@clisp.org>
26971
26972         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26973
26974 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26975
26976         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26977         of attempting to use non-existing /dev/*random.  Based on patch
26978         from Adam Strzelecki <ono@java.pl> in
26979         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26980
26981 2008-04-08  Bruno Haible  <bruno@clisp.org>
26982
26983         Add tentative support for emx+gcc.
26984         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26985         * lib/fpurge.c (fpurge): Likewise.
26986         * lib/freadable.c (freadable): Likewise.
26987         * lib/freadahead.c (freadahead): Likewise.
26988         * lib/freading.c (freading): Likewise.
26989         * lib/freadptr.c (freadptr): Likewise.
26990         * lib/freadseek.c (freadptrinc): Likewise.
26991         * lib/fseeko.c (rpl_fseeko): Likewise.
26992         * lib/fseterr.c (fseterr): Likewise.
26993         * lib/fwritable.c (fwritable): Likewise.
26994         * lib/fwriting.c (fwriting): Likewise.
26995         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26996
26997 2008-04-09  Eric Blake  <ebb9@byu.net>
26998
26999         Avoid some autoconf warnings.
27000         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
27001         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
27002         * m4/afs.m4 (gl_AFS): Likewise.
27003         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
27004         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
27005         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27006         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
27007         (gl_INTEGER_TYPE_SUFFIX): Likewise.
27008         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
27009         (AC_CHECK_DECLS_ONCE): Likewise.
27010         Rename file...
27011         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
27012         gnulib-tool requires autoconf 2.59 or better.
27013         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
27014
27015 2008-04-08  Eric Blake  <ebb9@byu.net>
27016
27017         Use 'git describe --match' if present (added in git 1.5.5).
27018         * build-aux/git-version-gen: Limit result to tags that match 'v*'
27019         if possible.
27020
27021 2008-04-08  Bruno Haible  <bruno@clisp.org>
27022
27023         Add tentative support for OpenServer.
27024         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
27025         _ptr, _cnt.
27026         * lib/fpurge.c (fpurge): Likewise.
27027         * lib/freadable.c (freadable): Likewise.
27028         * lib/freadahead.c (freadahead): Likewise.
27029         * lib/freading.c (freading): Likewise.
27030         * lib/freadptr.c (freadptr): Likewise.
27031         * lib/freadseek.c (freadptrinc): Likewise.
27032         * lib/fseeko.c (rpl_fseeko): Likewise.
27033         * lib/fseterr.c (fseterr): Likewise.
27034         * lib/fwritable.c (fwritable): Likewise.
27035         * lib/fwriting.c (fwriting): Likewise.
27036         Reported by Roger Cornelius <rac@tenzing.org> and
27037         Brian K. White <brian@aljex.com>.
27038
27039 2008-04-06  Jim Meyering  <meyering@redhat.com>
27040
27041         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
27042
27043 2008-04-06  Bruno Haible  <bruno@clisp.org>
27044
27045         Avoid possible error with non-ASCII bytes in UTF-8 locales.
27046         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
27047         * tests/test-printf-posix.sh: Likewise.
27048         * tests/test-vfprintf-posix.sh: Likewise.
27049         * tests/test-vprintf-posix.sh: Likewise.
27050         * tests/test-xprintf-posix.sh: Likewise.
27051
27052 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27053
27054         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
27055         hide error from 'ls', needed on OS/2.
27056         Report by Elbert Pol <elbert.pol@gmail.com>.
27057
27058 2008-04-04  Eric Blake  <ebb9@byu.net>
27059
27060         Make test-fseeko.c failures meaningful.
27061         * tests/test-fseeko.c: Print line number on failure.
27062         * tests/test-fseek.c: Likewise.
27063         Reported by Nelson H. F. Beebe.
27064
27065         Improve strtod bug detection check.
27066         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
27067         required for Solaris 10.
27068         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
27069
27070 2008-04-04  Bruno Haible  <bruno@clisp.org>
27071
27072         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
27073         by m4/setenv.m4.
27074
27075 2008-04-03  Eric Blake  <ebb9@byu.net>
27076
27077         Ensure sane .version contents.
27078         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
27079         version string.
27080         * build-aux/git-version-gen: Improve documentation.
27081
27082         Make GNU make output nicer.
27083         * top/GNUmakefile [!_have-Makefile]: Add dependency on
27084         MAKECMDGOALS to enforce message for all command line targets.  Set
27085         srcdir for use in maint.mk.
27086
27087         Another maintainer tweak.
27088         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
27089         a target that regenerates version.
27090
27091 2008-04-03  Jim Meyering  <meyering@redhat.com>
27092
27093         vc-list-files: don't cause coreutils "make po-check" failure
27094         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
27095
27096 2008-04-03  Eric Blake  <ebb9@byu.net>
27097
27098         Allow VPATH usage of vc-list-files.
27099         * build-aux/vc-list-files (scriptversion): Add timestamp.
27100         (options): Add --help, --version, -C.
27101         (CVS): Support installed cvsu.
27102
27103 2008-04-02  Bruno Haible  <bruno@clisp.org>
27104
27105         Avoid some "statement with no effect" warnings from gcc.
27106         * tests/test-wctype.c (main): Explicitly ignore unused values.
27107         Reported by Jim Meyering.
27108
27109 2008-04-02  Jim Meyering  <meyering@redhat.com>
27110
27111         Avoid some warnings from "gcc -Wshadow".
27112         * tests/test-frexp.c (exp): Define to a different identifier.
27113         * tests/test-frexpl.c (exp): Likewise.
27114
27115 2008-04-03  Jim Meyering  <meyering@redhat.com>
27116
27117         bootstrap: remove dangling *.[ch] symlinks from lib
27118         * build-aux/bootstrap [dangling symlink removal]: Move find's
27119         -depth option to precede all others, to avoid a warning.
27120         Remove *.[ch] files too, and from "$source_base" (usually lib/).
27121
27122 2008-04-02  Bruno Haible  <bruno@clisp.org>
27123
27124         Avoid some warnings from "gcc -Wshadow".
27125         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
27126         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
27127         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
27128         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
27129         Reported by Jim Meyering.
27130
27131 2008-04-01  Bruno Haible  <bruno@clisp.org>
27132
27133         Fix test to work on IRIX 6.5 with cc.
27134         * tests/test-math.c (numeric_equal): New function.
27135         (main): Use it.
27136
27137 2008-04-01  Bruno Haible  <bruno@clisp.org>
27138
27139         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
27140
27141 2008-04-01  Bruno Haible  <bruno@clisp.org>
27142
27143         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
27144         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
27145         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
27146         (Depends-on): Remove math.
27147
27148         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
27149         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
27150         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
27151         (Depends-on): Remove math.
27152
27153         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
27154         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
27155         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
27156         (Depends-on): Remove math.
27157         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
27158         (Depends-on): Remove math.
27159
27160         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
27161         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
27162         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
27163         (Depends-on): Remove math.
27164         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
27165         (Depends-on): Remove math.
27166
27167         * tests/test-round1.c: Include nan.h.
27168         (main): Use NaNd instead of NAN.
27169         * modules/round-tests (Files): Add tests/nan.h.
27170
27171         * tests/test-trunc1.c: Include nan.h.
27172         (main): Use NaNd instead of NAN.
27173         * modules/trunc-tests (Files): Add tests/nan.h.
27174
27175         * tests/test-roundf1.c: Include nan.h.
27176         (main): Use NaNf instead of NAN.
27177         * modules/roundf-tests (Files): Add tests/nan.h.
27178
27179         * tests/test-truncf1.c: Include nan.h.
27180         (main): Use NaNf instead of NAN.
27181         * modules/truncf-tests (Files): Add tests/nan.h.
27182
27183         * tests/test-ceilf1.c: Include nan.h.
27184         (main): Use NaNf instead of NAN.
27185         * modules/ceilf-tests (Files): Add tests/nan.h.
27186
27187         * tests/test-floorf1.c: Include nan.h.
27188         (main): Use NaNf instead of NAN.
27189         * modules/floorf-tests (Files): Add tests/nan.h.
27190
27191         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
27192         (main): Use NaNf instead of NAN.
27193         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
27194
27195         * tests/test-isnand.c: Include nan.h instead of <math.h>.
27196         (main): Use NaNd instead of NAN.
27197         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
27198
27199         * tests/test-frexp.c: Include nan.h.
27200         (main): Use NaNd instead of NAN.
27201         * modules/frexp-tests (Files): Add tests/nan.h.
27202
27203         * lib/isnan.c: Don't include <math.h>.
27204         (FUNC): Don't use NAN macro.
27205         * modules/isnand-nolibm (Depends-on): Remove math.
27206         * modules/isnanf-nolibm (Depends-on): Remove math.
27207         * modules/isnanl (Depends-on): Remove math.
27208         * modules/isnanl-nolibm (Depends-on): Remove math.
27209
27210         * tests/nan.h: New file.
27211
27212 2008-04-01  Eric Blake  <ebb9@byu.net>
27213
27214         Fix typos.
27215         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
27216         values to be the right type.
27217
27218         For now, cater to gnulib strtod inaccuracies.
27219         * tests/test-strtod.c (main): Allow 1-ulp error on expected
27220         fractional results.  While not as nice from a QoI perspective, it
27221         is a quicker patch than correctly implementing decimal to binary
27222         rounding.
27223
27224 2008-03-31  Eric Blake  <ebb9@byu.net>
27225
27226         Guarantee a definition of NAN.
27227         * lib/math.in.h (NAN): Define if missing.
27228         * tests/test-math.c (main): Test it.
27229         * doc/posix-headers/math.texi (math.h): Document this.
27230         * lib/isnan.c (rpl_isnand): Use it.
27231         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
27232         * tests/test-floorf1.c (NaN): Likewise.
27233         * tests/test-frexp.c (NaN): Likewise.
27234         * tests/test-isnand.c (NaN): Likewise.
27235         * tests/test-isnanf.c (NaN): Likewise.
27236         * tests/test-round1.c (NaN): Likewise.
27237         * tests/test-roundf1.c (NaN): Likewise.
27238         * tests/test-snprintf-posix.h (NaN): Likewise.
27239         * tests/test-sprintf-posix.h (NaN): Likewise.
27240         * tests/test-trunc1.c (NaN): Likewise.
27241         * tests/test-truncf1.c (NaN): Likewise.
27242         * tests/test-vasnprintf-posix.c (NaN): Likewise.
27243         * tests/test-vasprintf-posix.c (NaN): Likewise.
27244         * modules/isnand-nolibm (Depends-on): Add math.
27245         * modules/isnanf-nolibm (Depends-on): Likewise.
27246         * modules/isnanl (Depends-on): Likewise.
27247         * modules/isnanl-nolibm (Depends-on): Likewise.
27248         * modules/snprintf-posix-tests (Depends-on): Likewise.
27249         * modules/sprintf-posix-tests (Depends-on): Likewise.
27250         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
27251         * modules/vsprintf-posix-tests (Depends-on): Likewise.
27252         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
27253         * modules/vasprintf-posix-tests (Depends-on): Likewise.
27254
27255 2008-03-31  Bruno Haible  <bruno@clisp.org>
27256
27257         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
27258         * doc/posix-functions/strtod.texi: Likewise.
27259
27260 2008-03-31  Bruno Haible  <bruno@clisp.org>
27261
27262         * tests/test-strtod.c (main): Don't use C99 syntax.
27263
27264 2008-03-31  Bruno Haible  <bruno@clisp.org>
27265
27266         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
27267         Reported by Eric Blake.
27268
27269 2008-03-31  Jim Meyering  <meyering@redhat.com>
27270
27271         Don't compare actual signbit return values.
27272         * tests/test-strtod.c (main): Rather, compare only their
27273         zero/non-zero nature.
27274
27275 2008-03-31  Eric Blake  <ebb9@byu.net>
27276
27277         More strtod documentation.
27278         * doc/posix-functions/strtod.texi (strtod): Interpret more test
27279         failures as distinct bugs.
27280
27281 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
27282
27283         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
27284         Problem reported by Erik Benada in
27285         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
27286
27287 2008-03-30  Bruno Haible  <bruno@clisp.org>
27288
27289         * tests/test-strtod.c: Add comments about which assertion fails on which
27290         platform.
27291         * doc/posix-functions/strtod.texi: Add info about many more platforms.
27292
27293 2008-03-30  Eric Blake  <ebb9@byu.net>
27294
27295         Test signbit behavior on zeros.
27296         * tests/test-signbit.c (test_signbitf): Add tests for zero.
27297         (test_signbitd, test_signbitl): Likewise.
27298
27299         More strtod touchups.
27300         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
27301         sign of negative underflow, for now.  Use .5, not .1.
27302         * doc/posix-functions/strtod.texi (strtod): Mention these
27303         limitations.
27304         Reported by Jim Meyering.
27305
27306 2008-03-30  Bruno Haible  <bruno@clisp.org>
27307
27308         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
27309         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
27310
27311 2008-03-30  Bruno Haible  <bruno@clisp.org>
27312
27313         Avoid failure when attempting to return empty iconv results on some
27314         platforms.
27315         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
27316         allocation, don't report ENOMEM when the resulting string is empty.
27317
27318 2008-03-30  Bruno Haible  <bruno@clisp.org>
27319
27320         Fix buffer overrun.
27321         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
27322         Don't consider the width for tmp_length. Check count against tmp_length
27323         before doing the padding. Ensure enough allocation during padding.
27324
27325 2008-03-30  Eric Blake  <ebb9@byu.net>
27326
27327         strtod touchups.
27328         * lib/strtod.c (strtod): Avoid compiler warnings.
27329         Reported by Jim Meyering.
27330
27331 2008-03-30  Bruno Haible  <bruno@clisp.org>
27332
27333         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
27334         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
27335         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
27336         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
27337         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
27338         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
27339         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
27340         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
27341
27342         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
27343         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
27344         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
27345         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
27346         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
27347         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
27348         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
27349         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
27350
27351         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
27352         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
27353         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
27354         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
27355         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
27356         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
27357         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
27358         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
27359
27360         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
27361         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
27362
27363         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
27364         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
27365
27366         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
27367         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
27368
27369         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
27370         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
27371         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
27372
27373         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
27374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
27375         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
27376
27377         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
27378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
27379         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
27380
27381         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
27382         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
27383         * modules/vasprintf (Depends-on): Add EOVERFLOW.
27384
27385         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
27386         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
27387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
27388         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
27389         (Depends-on): Add EOVERFLOW.
27390         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
27391         (Depends-on): Add EOVERFLOW.
27392         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
27393         (Depends-on): Add EOVERFLOW.
27394         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
27395         (Depends-on): Add EOVERFLOW.
27396         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27397         (Depends-on): Add EOVERFLOW.
27398         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27399         (Depends-on): Add EOVERFLOW.
27400         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27401         (Depends-on): Add EOVERFLOW.
27402         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27403         (Depends-on): Add EOVERFLOW.
27404
27405         * lib/sprintf.c (EOVERFLOW): Remove fallback.
27406         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
27407         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
27408
27409         * lib/snprintf.c (EOVERFLOW): Remove fallback.
27410         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
27411         * modules/snprintf (Depends-on): Add EOVERFLOW.
27412
27413         * lib/poll.c (EOVERFLOW): Remove fallback.
27414         * modules/poll (Depends-on): Add EOVERFLOW.
27415
27416         * lib/getugroups.c (EOVERFLOW): Remove fallback.
27417         * modules/getugroups (Depends-on): Add EOVERFLOW.
27418
27419         * lib/getdelim.c (EOVERFLOW): Remove fallback.
27420         * modules/getdelim (Depends-on): Add EOVERFLOW.
27421
27422         * lib/ftell.c (EOVERFLOW): Remove fallback.
27423         * modules/ftell (Depends-on): Add EOVERFLOW.
27424
27425         * lib/fprintf.c (EOVERFLOW): Remove fallback.
27426         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
27427         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
27428
27429         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
27430
27431         * modules/EOVERFLOW-tests: New file.
27432         * tests/test-EOVERFLOW.c: New file.
27433
27434         * modules/EOVERFLOW: New file.
27435         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
27436
27437 2008-03-30  Bruno Haible  <bruno@clisp.org>
27438
27439         Fix bug introduced on 2007-06-10.
27440         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
27441         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
27442
27443 2008-03-30  Bruno Haible  <bruno@clisp.org>
27444
27445         Improve freadseek's efficiency after ungetc.
27446         * lib/freadseek.c: Include freadahead.h.
27447         (freadptrinc): New function, extracted from freadseek.
27448         (freadseek): Use it in a loop. Use freadahead to determine the number
27449         of loop iterations.
27450         * modules/freadseek (Depends-on): Add freadahead.
27451         (configure.ac): Require AC_C_INLINE.
27452
27453 2008-03-30  Bruno Haible  <bruno@clisp.org>
27454
27455         * lib/freadseek.c (freadseek): Don't ignore the return value of
27456         freadptr.
27457
27458 2008-03-29  Eric Blake  <ebb9@byu.net>
27459
27460         Add hex float support.
27461         * modules/strtod (Depends-on): Add c-ctype.
27462         (Link): Mention POW_LIB.
27463         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
27464         whitespace between 'e' and exponent.
27465         * tests/test-strtod.c (main): Enable hex float tests.
27466         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
27467         now provides.
27468
27469         Document various strtod bugs, with some fixes.
27470         * doc/posix-functions/strtod.texi (strtod): Document bugs with
27471         "-0x", "inf", "nan", and hex constants.
27472         * doc/posix-functions/atof.texi (atof): Likewise.
27473         * modules/stdlib (Makefile.am): Support strtod.
27474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27475         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
27476         detect additional strtod bugs.
27477         * lib/stdlib.in.h (rpl_strtod): Add declarations.
27478         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
27479         bool where appropriate.  Parse 'inf' and 'nan'.
27480         * tests/test-strtod.c: New file.
27481         * modules/strtod (Depends-on): Add stdbool, stdlib.
27482         (configure.ac): Turn on module indicator.
27483         * modules/strtod-tests: New module.
27484
27485 2008-03-29  Eric Blake  <ebb9@byu.net>
27486
27487         Fix ftell on mingw.
27488         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
27489         * modules/ftell-tests (Depends-on): Add binary-io.
27490         * modules/ftello-tests (Depends-on): Likewise.
27491         * tests/test-ftell.c (main): Enhance test to cover behavior after
27492         ungetc.  Enforce binary mode.
27493         * tests/test-ftello.c (main): Likewise.
27494
27495         Pass test-freadseek on cygwin.
27496         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
27497         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
27498         ungetc buffer.
27499
27500         * tests/test-fflush2.c (main): Fix typo.
27501
27502 2008-03-29  Bruno Haible  <bruno@clisp.org>
27503
27504         * tests/test-fflush2.c (main): Temporarily disable the contents of
27505         this test.
27506         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
27507         Reported by Eric Blake.
27508
27509 2008-03-28  Simon Josefsson  <simon@josefsson.org>
27510
27511         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
27512         (GC_SHA224_DIGEST_SIZE): Add.
27513
27514         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
27515         (gc_hash_digest_length): Likewise.
27516         (gc_hash_buffer): Likewise.
27517
27518 2008-03-25  Bruno Haible  <bruno@clisp.org>
27519
27520         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
27521         detail which gettext release to use.
27522         Reported by Simon Josefsson.
27523
27524 2008-03-26  Jim Meyering  <meyering@redhat.com>
27525
27526         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
27527         * modules/gnumakefile (clean-GNUmakefile): Also, use
27528         test ... && ... || : syntax rather than if-then ... fi.
27529
27530         gnumakefile: Don't double-quote-expand $(VPATH) value.
27531         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
27532
27533 2008-03-24  Eric Blake  <ebb9@byu.net>
27534
27535         Alter GNUmakefile to install into top directory.
27536         * modules/maintainer-makefile: Split, and add dependency...
27537         * modules/gnumakefile: to this new module.
27538         * build-aux/GNUmakefile: Move...
27539         * top/GNUmakefile: ...here.
27540         * build-aux/maint.mk: Move...
27541         * top/maint.mk: ...here.
27542         * MODULES.html.sh (Support for maintaining...): Document new
27543         module.
27544
27545 2008-03-23  Bruno Haible  <bruno@clisp.org>
27546
27547         * gnulib-tool: New options --vc-files, --no-vc-files.
27548         (func_usage): Document them.
27549         (vc_files): New variable.
27550         (func_import): Consider vc_files.
27551         (func_create_testdir): Set vc_files to empty.
27552         Suggested by Jim Meyering and Karl Berry.
27553
27554 2008-03-23  Bruno Haible  <bruno@clisp.org>
27555
27556         Fix regex compilation error on HP-UX 11.
27557         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
27558         * modules/regex (Files): Add m4/mbstate_t.m4.
27559         Reported by Ton Voon <ton.voon@altinity.com>.
27560
27561 2008-03-23  Bruno Haible  <bruno@clisp.org>
27562
27563         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
27564
27565 2008-03-23  Eric Blake  <ebb9@byu.net>
27566             Bruno Haible  <bruno@clisp.org>
27567
27568         Install files from top/ in the destination directory.
27569         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27570         augmentation also for the files from top/.
27571         (func_import, func_create_testdir): Rewrite file names:
27572         top/filename -> filename.
27573
27574 2008-03-23  Bruno Haible  <bruno@clisp.org>
27575
27576         Tweak "gnulib --version" output.
27577         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
27578
27579 2008-03-23  Bruno Haible  <bruno@clisp.org>
27580
27581         Tweak "gnulib --version" output.
27582         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
27583         rather than contents of ChangeLog, when possible.
27584
27585 2008-03-21  Eric Blake  <ebb9@byu.net>
27586
27587         More --version tweaks.
27588         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
27589         date of last ChangeLog entry.
27590
27591 2008-03-21  Jim Meyering  <meyering@redhat.com>
27592
27593         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
27594
27595 2008-03-20  Eric Blake  <ebb9@byu.net>
27596
27597         VPATH fix.
27598         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
27599
27600 2008-03-20  Simon Josefsson  <simon@josefsson.org>
27601
27602         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
27603         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
27604
27605 2008-03-20  Eric Blake  <ebb9@byu.net>
27606
27607         Sync GNUmakefile with coreutils.
27608         * build-aux/GNUmakefile (have-Makefile): Rename...
27609         (_have-Makefile): ...to this, for namespace consideration.
27610         (GNUmakefile.cfg): Include, if present.
27611         (_autoreconf): Define a default.
27612         (_is-dist-target): New rule for rebuilds to pick up intra-release
27613         version.
27614         (maint-cfg.mk): Rename...
27615         (cfg.mk): ...to this.
27616
27617 2008-03-18  Jim Meyering  <meyering@redhat.com>
27618
27619         New script and module: mktempd
27620         * MODULES.html.sh (maint+release support): Add mktempd.
27621         * build-aux/mktempd: New file.
27622         * modules/mktempd: New file.
27623
27624 2008-03-15  Jim Meyering  <meyering@redhat.com>
27625
27626         Undo last change.
27627         * lib/sha1.c, lib/md5.c: 63 != ~63.
27628         Reported by Andreas Schwab.
27629
27630         sha1.c, md5.c: Hoist a redundant expression.
27631         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27632         "ctx->buflen" only once, before calling *_process_block.
27633         * lib/md5.c (md5_process_bytes): Likewise.
27634
27635 2008-03-14  Eric Blake  <ebb9@byu.net>
27636
27637         Bump copyright year in files generated by gnulib-tool.
27638         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27639         gnulib-tool, rather than hard-coding it.
27640
27641         Fix 'gnulib-tool --version' output to work with git.
27642         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27643         (startup): ...here.
27644         (func_version): Use it to invoke git-version-gen, rather than
27645         relying on CVS keyword expansion.  Modernize wording.
27646         (cvsdatestamp, last_checkin_date, version): Kill unused
27647         variables.
27648
27649 2008-03-12  Jim Meyering  <meyering@redhat.com>
27650
27651         Recognize optional cast of the argument to free.
27652         * build-aux/useless-if-before-free: Update regexps.
27653
27654         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27655
27656 2008-03-11  Bruno Haible  <bruno@clisp.org>
27657
27658         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27659         by a single package.
27660         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27661         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27662         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27663         Reported by Sam Steingold <sds@gnu.org>.
27664
27665 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27666
27667         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27668         repositories.
27669
27670 2008-03-11  Bruno Haible  <bruno@clisp.org>
27671
27672         Avoid conflicts between local macro definitions.
27673         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27674         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27675
27676 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27677             Bruno Haible  <bruno@clisp.org>
27678
27679         Make va_copy work with some version of xlc on AIX 5.1.
27680         * lib/stdarg.in.h: New file.
27681         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27682         On AIX, use a <stdarg.h> file substitute.
27683         * modules/stdarg (Files): Add lib/stdarg.in.h.
27684         (Depends-on): Add include_next.
27685         (Makefile.am): Build a stdarg.h substitute if requested.
27686         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27687
27688 2008-03-10  Bruno Haible  <bruno@clisp.org>
27689
27690         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27691         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27692         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27693
27694 2008-03-10  Bruno Haible  <bruno@clisp.org>
27695
27696         * modules/stdlib (Depends-on): Add include_next, remove
27697         absolute-header.
27698
27699 2008-03-09  Bruno Haible  <bruno@clisp.org>
27700
27701         * lib/freadahead.h (freadahead): Document more precisely.
27702         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27703         the sum of both buffer sizes.
27704         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27705         * NEWS: Document the change.
27706
27707 2008-03-09  Bruno Haible  <bruno@clisp.org>
27708
27709         Extend freadptr to return also the buffer size.
27710         * lib/freadptr.h (freadptr): Add sizep argument.
27711         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27712         (freadptr): Add sizep argument. Determine buffer size like freadahead
27713         does.
27714         * tests/test-freadptr.c: Don't include freadahead.h.
27715         (main): Adapt for new calling convention of freadptr.
27716         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27717         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27718         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27719         tests/test-freadptr2.sh.
27720         (Depends): Remove freadahead.
27721         (TESTS): Add test-freadptr2.sh.
27722         (check_PROGRAMS): Add test-freadptr2.
27723
27724 2008-03-09  Bruno Haible  <bruno@clisp.org>
27725
27726         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27727         Report and solution by Simon Josefsson.
27728
27729 2008-03-06  Bruno Haible  <bruno@clisp.org>
27730
27731         Make fflush after ungetc work on BSD platforms.
27732         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27733         * tests/test-fflush2.c: New file.
27734         * tests/test-fflush2.sh: New file.
27735         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27736         tests/test-fflush2.c.
27737         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27738         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27739
27740 2008-03-06  Eric Blake  <ebb9@byu.net>
27741
27742         Likewise for ftello.
27743         * modules/ftello (Dependencies): Add extensions.
27744         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27745
27746 2008-03-06  Bruno Haible  <bruno@clisp.org>
27747
27748         * modules/fseeko (Dependencies): Add extensions.
27749         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27750         Needed on glibc systems.
27751
27752 2008-03-06  Bruno Haible  <bruno@clisp.org>
27753
27754         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27755         email address.
27756         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27757
27758 2008-03-06  Bruno Haible  <bruno@clisp.org>
27759
27760         * users.txt: Add libgnupdf.
27761
27762 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27763
27764         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27765         (Header File Substitutes, Function Substitutes,
27766         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27767         (Build robot for gnulib): Fix typo.
27768
27769 2008-03-06  Bruno Haible  <bruno@clisp.org>
27770
27771         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27772         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27773
27774 2008-03-06  Bruno Haible  <bruno@clisp.org>
27775
27776         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27777         * doc/gnulib.texi: Include it.
27778
27779 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27780
27781         * modules/func (License): Change license to unlimited; there was
27782         no LGPL parts in the module anyway.
27783
27784 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27785
27786         * modules/__func__: Renamed to modules/func.
27787         * modules/__func__-tests: Renamed to modules/func-tests.
27788         * tests/test-__func__.c: Renamed to tests/test-func.c.
27789         * m4/__func__.m4: Renamed to m4/func.m4.
27790         * doc/gnulib.texi (__func__): Section renamed to func.
27791         Suggested by Eric Blake <ebb9@byu.net>.
27792
27793 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27794
27795         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27796         about __func__.  Make example self-contained.  Suggested by Eric
27797         Blake <ebb9@byu.net>.
27798
27799         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27800         Suggested by Eric Blake <ebb9@byu.net>.
27801
27802 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27803
27804         * modules/__func__: New file.
27805         * modules/__func__-tests: New file.
27806         * tests/test-__func__.c: New file.
27807         * m4/__func__.m4: New file.
27808         * doc/gnulib.texi (__func__): Document __func__ module.
27809
27810 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27811
27812         * modules/byteswap (License): Re-license as LGPLv2+.
27813
27814 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27815
27816         * doc/Makefile: Add pdf target.
27817
27818 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27819
27820         * modules/inline (License): Use 'unlimited', since there are only
27821         *.m4 files in this module.
27822
27823 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27824             Bruno Haible  <bruno@clisp.org>
27825
27826         Add support for HP C 7.1 on OpenVMS 8.3.
27827         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27828
27829 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27830
27831         Update VMS specifics.
27832         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27833
27834 2008-03-02  Jim Meyering  <meyering@redhat.com>
27835
27836         Remove the last dependency on the "free" module.
27837         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27838         Reported by Bob Proulx.
27839
27840         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27841
27842         Remove useless "if" tests before free.  Deprecate "free" module.
27843         * doc/posix-functions/free.texi: Mention that this
27844         module is no longer useful.
27845         * modules/free (Notice): Say this module is obsolete.
27846         * modules/readutmp (Depends-on): Remove free.
27847         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27848         * lib/putenv.c (putenv): Likewise.
27849         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27850         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27851         * tests/test-c-strcasestr.c (main): Likewise.
27852         * tests/test-c-strstr.c (main): Likewise.
27853         * tests/test-mbscasestr1.c (main): Likewise.
27854         * tests/test-mbscasestr2.c (main): Likewise.
27855         * tests/test-mbsstr1.c (main): Likewise.
27856         * tests/test-mbsstr2.c (main): Likewise.
27857         * tests/test-memmem.c (main): Likewise.
27858         * tests/test-strcasestr.c (main): Likewise.
27859         * tests/test-striconv.c (main): Likewise.
27860         * tests/test-striconveh.c (main): Likewise.
27861         * tests/test-striconveha.c (main): Likewise.
27862         * tests/test-strstr.c (main): Likewise.
27863
27864         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27865
27866         bootstrap: sync from coreutils again
27867         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27868
27869 2008-03-01  Jim Meyering  <meyering@redhat.com>
27870
27871         bootstrap: sync from coreutils
27872         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27873         also when the target doesn't exist.
27874
27875 2008-03-01  Eric Blake  <ebb9@byu.net>
27876
27877         Fix bugs in last patch.
27878         * lib/memchr2.c (memchr2): Fix typo.
27879         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27880         extension.
27881         Reported by Bruce Korb.
27882
27883         New module 'memchr2'.
27884         * modules/memchr2: New file.
27885         * modules/memchr2-tests: Likewise.
27886         * lib/memchr2.h: Likewise.
27887         * lib/memchr2.c: Likewise, based on memchr.c.
27888         * tests/test-memchr2.c: New test.
27889         * MODULES.html.sh (String handling): Add memchr2.
27890
27891 2008-02-29  Bruno Haible  <bruno@clisp.org>
27892
27893         * modules/freadseek-tests: New file.
27894         * tests/test-freadseek.sh: New file.
27895         * tests/test-freadseek.c: New file.
27896
27897         New module 'freadseek'.
27898         * modules/freadseek: New file.
27899         * lib/freadseek.h: New file.
27900         * lib/freadseek.c: New file.
27901         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27902
27903 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27904
27905         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27906         wydawca.
27907
27908         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27909         program_invocation_name and program_invocation_short_name are
27910         present.
27911
27912 2008-02-28  Bruno Haible  <bruno@clisp.org>
27913
27914         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27915         * tests/test-freadptr.sh: Also test non-seekable stdin.
27916
27917 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27918
27919         * build-aux/bootstrap (source_base, m4_base)
27920         (doc_base, tests_base): New variables.
27921         (gnulib_tool_options): Do not hardcode base directories, use
27922         the above variables instead.
27923
27924 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27925
27926         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27927
27928 2008-02-28  Bruno Haible  <bruno@clisp.org>
27929
27930         * modules/freadptr-tests: New file.
27931         * tests/test-freadptr.sh: New file.
27932         * tests/test-freadptr.c: New file.
27933
27934         New module 'freadptr'.
27935         * modules/freadptr: New file.
27936         * lib/freadptr.h: New file.
27937         * lib/freadptr.c: New file.
27938         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27939
27940 2008-02-26  Karl Berry  <karl@freefriends.org>
27941
27942         Sync from Libtool:
27943         * libltdl/argz.c (argz_add, argz_count): New functions.
27944         * libltdl/argz.in.h: Declare them.
27945         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27946
27947 2008-02-22  Bruno Haible  <bruno@clisp.org>
27948
27949         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27950         is a pointer type.  Needed for HP-UX 10.
27951         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27952         * doc/posix-functions/gmtime_r.texi: Likewise.
27953         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27954
27955 2008-02-24  Bruno Haible  <bruno@clisp.org>
27956
27957         * modules/environ-tests: New file.
27958         * tests/test-environ.c: New file.
27959
27960         New module 'environ'.
27961         * modules/environ: New file.
27962         * lib/unistd.in.h (environ): New declaration.
27963         * m4/environ.m4: New file.
27964         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27965         after use.
27966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27967         HAVE_DECL_ENVIRON.
27968         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27969         HAVE_DECL_ENVIRON.
27970         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27971         wrong claim that 'environ' is missing on some systems.
27972         * modules/execute (Depends-on): Add environ.
27973         * lib/execute.c (environ): Remove fallback declaration.
27974         * modules/pipe (Depends-on): Add environ.
27975         * lib/pipe.c (environ): Remove fallback declaration.
27976         * modules/setenv (Depends-on): Add environ.
27977         * lib/setenv.c (environ): Remove fallback declaration.
27978         * modules/unsetenv (Depends-on): Add environ.
27979         * lib/unsetenv.c (environ): Remove fallback declaration.
27980         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27981         m4/environ.m4.
27982         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27983         (gl_PREREQ_UNSETENV): Likewise.
27984
27985 2008-02-24  Bruno Haible  <bruno@clisp.org>
27986
27987         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27988
27989 2008-02-20  Bob Proulx  <bob@proulx.com>
27990
27991         Enable use of older two part flavor 'git describe'.
27992         * build-aux/git-version-gen: If using the older two part flavor of
27993         git version then recreate the third part now present in the
27994         newer three part flavor of git describe.
27995
27996 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27997
27998         * lib/fts.c (fts_build): Typo correction to comment.
27999
28000 2008-02-17  Bruno Haible  <bruno@clisp.org>
28001
28002         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
28003         generating no-op conflicts.
28004
28005 2008-02-17  Bruno Haible  <bruno@clisp.org>
28006
28007         Speed up by 10%.
28008         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
28009         result_entries, rather than an index-based loop.
28010
28011 2008-02-17  Bruno Haible  <bruno@clisp.org>
28012
28013         Speed up by 25%.
28014         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
28015         'hashcode_cached'.
28016         (entry_create): New function.
28017         (entry_hashcode): Use the cached hashcode if possible.
28018         (read_changelog_file, try_split_merged_entry): Use entry_create.
28019
28020 2008-02-17  Bruno Haible  <bruno@clisp.org>
28021
28022         Speed up from O(n^2) to O(n) for long ChangeLog files.
28023         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
28024         (read_changelog_file): Change implementation of entries_reversed list
28025         to rbtreehash.
28026         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
28027
28028 2008-02-17  Bruno Haible  <bruno@clisp.org>
28029
28030         New option --split-merged-entry.
28031         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
28032         (find_paragraph_end, try_split_merged_entry): New functions.
28033         (long_options): Add option --split-merged-entry.
28034         (usage): Document option --split-merged-entry.
28035         (main): Implement option --split-merged-entry.
28036         Reported by Eric Blake.
28037
28038 2008-02-17  Bruno Haible  <bruno@clisp.org>
28039
28040         * lib/git-merge-changelog.c: Include c-strstr.h.
28041         (main): Support the "git pull --rebase" situation.
28042         * modules/git-merge-changelog (Depends-on): Add c-strstr.
28043         Reported by Eric Blake.
28044
28045 2008-02-16  Eric Blake  <ebb9@byu.net>
28046
28047         Avoid doubling \ in common case of "c-maybe" quoting style.
28048         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
28049         eliding outer quotes.
28050         * lib/quotearg.h: Document this.
28051         * tests/test-quotearg.c (result_strings, inputs, results_g)
28052         (flag_results, locale_results): Test it by adding a new string to
28053         each test group.
28054         (compare_strings): Test new string.
28055
28056 2008-02-13  Eric Blake  <ebb9@byu.net>
28057
28058         Avoid trigraph quoting in default output.
28059         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
28060         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
28061         unless explicitly requested.
28062         * tests/test-quotearg.c (flag_results, main): Add additional tests.
28063
28064 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
28065
28066         Don't rely on signed integer overflowing to negative value.
28067         * lib/getugroups.c (getugroups): Include <limits.h>.
28068         Instead, compare against INT_MAX, and increment only if the test passes.
28069
28070 2008-02-13  Jim Meyering  <meyering@redhat.com>
28071         and Eric Blake  <ebb9@byu.net>
28072
28073         Avoid shadowing warning and compile errors on Linux.
28074         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
28075         forwarding macros on Linux.
28076         (dcgettext): Define a stub, for Linux.
28077         (results_g, main): Avoid warnings.
28078
28079 2008-02-12  Eric Blake  <ebb9@byu.net>
28080
28081         Silence warning in last patch.
28082         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
28083
28084         Quotearg part 4: add tests, fix c-maybe colon quoting.
28085         * lib/quotearg.h: Improve documentation.
28086         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
28087         escapes when adding outer quotes.  When quoting trigraphs, use
28088         valid C notation.  When quoting NUL, omit extra characters if next
28089         character is not digit.  Alter prototype.
28090         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
28091         callers.
28092         * modules/quotearg-tests: New module.
28093         * tests/test-quotearg.c: New test.
28094
28095 2008-02-07  Eric Blake  <ebb9@byu.net>
28096
28097         Quotearg part 3: add flag to control outer quote elision.
28098         * lib/quotearg.h (c_maybe_quoting_style): New style.
28099         (enum quoting_flags): Better documentation of flags.
28100         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
28101         c-maybe style.
28102         (quotearg_buffer_restyled): Handle new flag to elide outer
28103         quotes.
28104
28105         Quotearg part 2: add flag that can control NUL elision.
28106         * lib/quotearg.h (set_quoting_flags): New prototype.
28107         * lib/quotearg.c (struct quoting_options): Add flag field.
28108         (set_quoting_flags): New function.
28109         (quotearg_buffer_restyled): Add flags parameter.
28110         (quotearg_alloc_mem): Set the flag if length cannot be returned.
28111         (quotearg_n_options): Set the flag, since length cannot be
28112         returned.
28113         (quoting_options_from_style): Default flags correctly.
28114
28115         Quotearg part 1: more wrappers, restore quotearg_char state.
28116         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
28117         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
28118         (quotearg_colon_mem): New wrappers.
28119         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
28120         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
28121         functions.
28122         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
28123         (quotearg_colon_mem): New functions.
28124
28125 2008-02-11  Bruno Haible  <bruno@clisp.org>
28126
28127         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
28128         library in the current directory: it does not work with parallel make.
28129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28130
28131 2008-02-11  Bruno Haible  <bruno@clisp.org>
28132
28133         * .gitattributes: New file.
28134
28135 2008-02-11  Jim Meyering  <meyering@redhat.com>
28136
28137         useless-if-before-free: Fix reversed exit values.
28138         * build-aux/useless-if-before-free: Use correct values
28139         for EXIT_MATCH and EXIT_NO_MATCH.
28140
28141         * build-aux/useless-if-before-free: Close stdout carefully.
28142
28143 2008-02-10  Bruno Haible  <bruno@clisp.org>
28144
28145         New module 'git-merge-changelog'.
28146         * modules/git-merge-changelog: New file.
28147         * lib/git-merge-changelog.c: New file.
28148
28149 2008-02-10  Jim Meyering  <meyering@redhat.com>
28150
28151         useless-if-before-free: New option: --list (-l).
28152
28153         useless-if-before-free: Don't exit immediately upon open failure.
28154         * build-aux/useless-if-before-free: Exit 2 for errors.
28155         Upon failure to open a file, don't exit immediately.
28156         Rather, just warn and continue with any remaining files.
28157
28158 2008-02-10  Bruno Haible  <bruno@clisp.org>
28159
28160         New abstract list operation 'node_set_value'.
28161         * lib/gl_list.h (gl_list_node_set_value): New function.
28162         (struct gl_list_implementation): New field node_set_value.
28163         * lib/gl_list.c (gl_list_node_set_value): New function.
28164         * lib/gl_array_list.c (gl_array_node_set_value): New function.
28165         (gl_array_list_implementation): Update.
28166         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
28167         (gl_carray_list_implementation): Update.
28168         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
28169         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28170         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28171         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
28172         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28173         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28174         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28175         Update.
28176         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
28177         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
28178         (gl_sublist_list_implementation): Update.
28179
28180 2008-02-10  Bruno Haible  <bruno@clisp.org>
28181
28182         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
28183         Needed when ELEMENT is #defined to 'some_type *'.
28184
28185 2008-02-10  Jim Meyering  <meyering@redhat.com>
28186
28187         New script and module: useless-if-before-free
28188         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
28189         * build-aux/useless-if-before-free: New file.
28190         * modules/useless-if-before-free: New file.
28191
28192         * build-aux/gitlog-to-changelog: Use committer date, not author date.
28193
28194         xstrtol_error: Fix typo.
28195         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
28196         s/exit_failure/exit_status/.
28197
28198 2008-02-09  Jim Meyering  <meyering@redhat.com>
28199
28200         New script and module: gitlog-to-changelog
28201         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
28202         * modules/gitlog-to-changelog: New file.
28203         * build-aux/gitlog-to-changelog: New file.
28204
28205 2008-02-08  Jim Meyering  <meyering@redhat.com>
28206
28207         Avoid two "parameter unused" warnings.
28208         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
28209         Mark "st" as used.
28210
28211         Use "git COMMAND", not "git-COMMAND".
28212         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
28213         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
28214         * build-aux/git-version-gen: Use "git status", not "git-status".
28215
28216 2008-02-07  Bruno Haible  <bruno@clisp.org>
28217
28218         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
28219         Avoids a crash on Windows Vista.
28220         Reported by Adam Strzelecki <ono@java.pl> via
28221         Simon Josefsson <simon@josefsson.org>.
28222
28223 2008-02-06  Bruno Haible  <bruno@clisp.org>
28224
28225         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
28226         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
28227         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
28228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
28229         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28230         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28231         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
28232         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
28233         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28240         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
28241         left-adjust flag.
28242         * tests/test-snprintf-posix.h (test_function): Likewise.
28243         * tests/test-sprintf-posix.h (test_function): Likewise.
28244         * tests/test-vasprintf-posix.c (test_function): Likewise.
28245         * doc/posix-functions/fprintf.texi: Update.
28246         * doc/posix-functions/printf.texi: Update.
28247         * doc/posix-functions/snprintf.texi: Update.
28248         * doc/posix-functions/sprintf.texi: Update.
28249         * doc/posix-functions/vfprintf.texi: Update.
28250         * doc/posix-functions/vprintf.texi: Update.
28251         * doc/posix-functions/vsnprintf.texi: Update.
28252         * doc/posix-functions/vsprintf.texi: Update.
28253         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28254
28255 2008-02-06  Bruno Haible  <bruno@clisp.org>
28256
28257         Fix bug introduced on 2008-01-26.
28258         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
28259
28260 2008-02-06  Bruno Haible  <bruno@clisp.org>
28261
28262         Fix bug introduced on 2007-06-10.
28263         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
28264         !NEED_PRINTF_FLAG_ZERO.
28265
28266 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
28267
28268         getloadavg: use libperfstat on AIX5
28269         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
28270
28271 2008-02-03  Bruno Haible  <bruno@clisp.org>
28272
28273         * lib/diffseq.h: Add comments about required #includes.
28274         Reported by Michael Biggs <gnulib@doubleplum.net>.
28275
28276 2008-02-01  Bruno Haible  <bruno@clisp.org>
28277
28278         * users.txt: Add gnuit.
28279
28280 2008-01-31  Bruno Haible  <bruno@clisp.org>
28281
28282         * lib/md4.c (set_uint32): Mark as inline.
28283         * lib/md5.c (set_uint32): Likewise.
28284         * lib/sha1.c (set_uint32): Likewise.
28285         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
28286         * m4/md5.m4 (gl_MD5): Likewise.
28287         * m4/sha1.m4 (gl_SHA1): Likewise.
28288
28289 2008-01-31  Jim Meyering  <meyering@redhat.com>
28290
28291         Use "sizeof VAR", rather than a literal "4".
28292         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
28293         * lib/md4.c (md4_read_ctx): Likewise.
28294         * lib/sha1.c (sha1_read_ctx): Likewise.
28295
28296 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28297
28298         * tests/test-sha1.c: New file, based on test-md5.c.
28299
28300         * modules/crypto/sha1-tests: New file.
28301
28302 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28303
28304         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
28305
28306 2008-01-31  Jim Meyering  <meyering@redhat.com>
28307
28308         Prefer "sizeof v" over the equivalent "4".
28309         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
28310         * lib/md5.c (set_uint32): Likewise.
28311         * lib/sha1.c (set_uint32): Likewise.
28312
28313 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28314
28315         * lib/sha1.c (set_uint32): Mark function as static.
28316
28317 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28318
28319         md2: clarify comments to say that alignment is not required.
28320         * lib/md2.h: Remove warning about alignment in comment.
28321         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
28322         never been required.
28323
28324 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28325
28326         md4: adapt alignment constraint fix from sha1.
28327         * lib/md4.c (set_uint32): New function, from sha1.c
28328         (md4_read_ctx): Use it.
28329         (md4_finish_ctx): Doc fix.
28330         * lib/md4.h: Doc fix.
28331
28332 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28333
28334         md5: adapt alignment constraint fix from sha1.
28335         * lib/md5.c (set_uint32): New function, from sha1.c
28336         (md5_read_ctx): Use it.
28337         (md5_finish_ctx): Doc fix.
28338         * lib/md5.h: Doc fix.
28339
28340 2008-01-30  Peter Palfrader  <weasel@debian.org>
28341
28342         sha1: remove the result buffer alignment constraint
28343         * lib/sha1.c (set_uint32): New function.
28344         (sha1_read_ctx): Rewrite to remove the result buffer alignment
28345         constraint.
28346         (sha1_finish_ctx): Remove comment warning about alignment constraint.
28347         * lib/sha1.h: Likewise.
28348
28349 2008-01-30  Andreas Schwab  <schwab@suse.de>
28350             Bruno Haible  <bruno@clisp.org>
28351
28352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
28353         correct definition of LDBL_MIN_EXP.
28354
28355 2008-01-30  Karl Berry  <karl@gnu.org>
28356
28357         * config/srclist-update: try to preserve x bit on updates.
28358         * config/srclistvars.sh: update for karl.
28359
28360 2008-01-29  Jim Meyering  <meyering@redhat.com>
28361
28362         vasnprintf.c: Avoid warning about unused label
28363         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
28364         "overflow" label definition and associated code with the
28365         same cpp condition that guards the sole use of that label.
28366
28367 2008-01-26  Bruno Haible  <bruno@clisp.org>
28368
28369         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
28370         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
28371         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
28372         * lib/isnanl-nolibm.h (isnanl): Likewise.
28373         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28374
28375 2008-01-26  Bruno Haible  <bruno@clisp.org>
28376
28377         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
28378         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
28379
28380 2008-01-26  Bruno Haible  <bruno@clisp.org>
28381
28382         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
28383         GCC >= 4.0 built-in.
28384         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
28385
28386 2008-01-26  Bruno Haible  <bruno@clisp.org>
28387
28388         Rename isnan, applicable to 'double' only, to isnand.
28389         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
28390         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
28391         (configure.ac): Update.
28392         (Include): Replace "isnan.h" with "isnand.h".
28393         * m4/isnand.m4: Renamed from m4/isnan.m4.
28394         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
28395         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
28396         instead of isnan.c.
28397         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
28398         instead of HAVE_ISNAN_IN_LIBC.
28399         (isnand): Renamed from isnan.
28400         * lib/isnand.c: New file.
28401         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
28402         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
28403         (Makefile.am): Update.
28404         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
28405         Include isnand.h instead of isnan.h.
28406         (main): Test isnand instead of isnan.
28407         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
28408         isnan-nolibm.
28409         * modules/frexp (Depends-on): Likewise.
28410         * modules/frexp-tests (Depends-on): Likewise.
28411         * modules/frexp-nolibm (Depends-on): Likewise.
28412         * modules/frexp-nolibm-tests (Depends-on): Likewise.
28413         * modules/isfinite (Depends-on): Likewise.
28414         * modules/round-tests (Depends-on): Likewise.
28415         * modules/signbit (Depends-on): Likewise.
28416         * modules/signbit-tests (Depends-on): Likewise.
28417         * modules/snprintf-posix (Depends-on): Likewise.
28418         * modules/sprintf-posix (Depends-on): Likewise.
28419         * modules/trunc-tests (Depends-on): Likewise.
28420         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28421         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28422         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28423         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28424         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28425         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28426         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28427         * modules/vasnprintf-posix (Depends-on): Likewise.
28428         * modules/vasprintf-posix (Depends-on): Likewise.
28429         * modules/vfprintf-posix (Depends-on): Likewise.
28430         * modules/vsnprintf-posix (Depends-on): Likewise.
28431         * modules/vsprintf-posix (Depends-on): Likewise.
28432         * lib/frexp.c: Include isnand.h instead of isnan.h.
28433         (ISNAN): Set to isnand instead of isnan.
28434         * lib/isfinite.c: Include isnand.h instead of isnan.h.
28435         (gl_isfinited): Use isnand instead of isnan.
28436         * lib/signbitd.c: Include isnand.h instead of isnan.h.
28437         (gl_signbitd): Use isnand instead of isnan.
28438         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
28439         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
28440         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
28441         (main): Use isnand instead of isnan.
28442         * tests/test-round1.c: Include isnand.h.
28443         (main): Use isnand instead of isnan.
28444         * tests/test-round2.c: Include isnand.h instead of isnan.h.
28445         (ISNAN): Set to isnand instead of isnan.
28446         * tests/test-trunc1.c: Include isnand.h.
28447         (main): Use isnand instead of isnan.
28448         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
28449         (equal): Use isnand instead of isnan.
28450         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
28451         isnand-nolibm.
28452         * NEWS: Mention the change.
28453
28454 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28455             Bruno Haible  <bruno@clisp.org>
28456
28457         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
28458         the GCC builtins for signbits are present and set
28459         REPLACE_SIGNBIT_USING_GCC if so.
28460         * lib/math.in.h (signbit): Define using GCC builtins if
28461         REPLACE_SIGNBIT_USING_GCC is set.
28462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
28463         REPLACE_SIGNBIT_USING_GCC.
28464         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
28465
28466 2008-01-25  Jim Meyering  <meyering@redhat.com>
28467
28468         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
28469         * lib/poll.c: Include <config.h>, not "config.h".
28470         * tests/test-getaddrinfo.c: Likewise.
28471
28472 2008-01-25  Simon Josefsson  <simon@josefsson.org>
28473
28474         * modules/sockets-tests: New file.
28475
28476 2008-01-24  Simon Josefsson  <simon@josefsson.org>
28477
28478         * modules/sockets: New module, can be used to call WSA_Startup and
28479         WSA_Cleanup when needed.
28480
28481         * lib/sockets.h, lib/sockets.c: New files.
28482
28483         * m4/sockets.m4: New file.
28484
28485         * tests/test-sockets.c: New file.
28486
28487 2008-01-19  Bruno Haible  <bruno@clisp.org>
28488
28489         * doc/posix-headers: Renamed from doc/headers.
28490         * doc/posix-functions: Renamed from doc/functions.
28491         * doc/gnulib.texi: Update.
28492
28493 2008-01-19  Bruno Haible  <bruno@clisp.org>
28494
28495         * doc/glibc-functions/strcasestr.texi: Include contents of
28496         doc/functions/strcasestr.texi, fixing the list of platforms.
28497         * doc/functions/strcasestr.texi: Remove file.
28498
28499 2008-01-19  Bruno Haible  <bruno@clisp.org>
28500
28501         * doc/glibc-functions/memmem.texi: Include contents of
28502         doc/functions/memmem.texi.
28503         * doc/functions/memmem.texi: Remove file.
28504
28505 2008-01-18  Bruno Haible  <bruno@clisp.org>
28506
28507         * doc/glibc-functions/*.texi: New files.
28508         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
28509         to use the new files.
28510
28511 2008-01-17  Bruno Haible  <bruno@clisp.org>
28512
28513         * tests/test-gethostname.c (main): Fix printf statement.
28514
28515 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28516
28517         * modules/gethostname-tests: New file.
28518
28519         * tests/test-gethostname.c: New file.
28520
28521 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28522
28523         * lib/gethostname.c: Include string.h unconditionally, strncpy is
28524         used by the UNAME case.  Reported by Bruno Haible
28525         <bruno@clisp.org>.
28526
28527 2008-01-17  Eric Blake  <ebb9@byu.net>
28528
28529         Convert c-strcasestr to be more efficient.
28530         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
28531         (Depends-on): Add c-strcase, remove malloca, strnlen.
28532         * tests/test-c-strcasestr.c (main): Enhance test.
28533         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
28534
28535 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28536
28537         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
28538         Use it in creating po/Makevars.
28539
28540 2008-01-15  Simon Josefsson  <simon@josefsson.org>
28541
28542         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
28543         Applications that requires it should initialize libgcrypt
28544         manually.
28545
28546 2008-01-16  Simon Josefsson  <simon@josefsson.org>
28547
28548         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
28549
28550 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28551
28552         Fix problem with getdate on mingw32 reported by Simon Josefsson
28553         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
28554         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
28555         tzname", when deciding whether to declare tzname.
28556         * lib/strftime.c (tzname): Likewise.
28557
28558 2008-01-15  Bruno Haible  <bruno@clisp.org>
28559
28560         Work around a MacOS X 10.5 bug in frexpl().
28561         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
28562         * doc/functions/frexpl.texi: Document the bug.
28563         Reported by Elias Pipping <pipping@gentoo.org>.
28564
28565 2008-01-14  Eric Blake  <ebb9@byu.net>
28566
28567         Touch up previous patch.
28568         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
28569         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
28570
28571         Convert strcasestr module to use Two-Way algorithm.
28572         * modules/strcasestr-simple: New module, based on the old
28573         strcasestr, but with Two-Way rather than KMP.
28574         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
28575         * lib/string.in.h (rpl_strcasestr): Declare.
28576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28577         performance.
28578         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
28579         * modules/string (Makefile.am): Support strcasestr.
28580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28581         * modules/strcasestr-tests (Depends-on): Check for alarm.
28582         * tests/test-strcasestr.c: Augment test.
28583         * lib/str-two-way.h: Clean up stray macro.
28584         * NEWS: Document new module.
28585         * MODULES.html.sh (string handling): Likewise.
28586         * doc/functions/strcasestr.texi: New file.
28587         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
28588         here, since it is not a POSIX function.
28589
28590 2008-01-14  Colin Watson  <cjwatson@debian.org>
28591             Bruno Haible  <bruno@clisp.org>
28592
28593         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
28594         works fine; if not, set REPLACE_STRSIGNAL.
28595         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
28596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28597         REPLACE_STRSIGNAL.
28598         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
28599         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
28600         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
28601
28602 2008-01-14  Bruno Haible  <bruno@clisp.org>
28603
28604         * modules/strsignal (Include): Change to <string.h>.
28605
28606 2008-01-14  Colin Watson  <cjwatson@debian.org>
28607
28608         * modules/argp (Notice): Add a notice recommending to change
28609         XGETTEXT_OPTIONS.
28610         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
28611
28612 2008-01-13  Colin Watson  <cjwatson@debian.org>
28613
28614         * modules/strsignal-tests: New file.
28615         * tests/test-strsignal.c: New file.
28616
28617         * lib/strsignal.c: New file, from glibc with modifications.
28618         * lib/siglist.h: New file, from glibc with modifications.
28619         * lib/string.in.h (strsignal): New declaration.
28620         * m4/strsignal.m4: New file.
28621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28622         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28623         * modules/strsignal: New file.
28624         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28625         HAVE_DECL_STRSIGNAL.
28626
28627 2008-01-13  Bruno Haible  <bruno@clisp.org>
28628
28629         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28630         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28631         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28632         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28633
28634 2008-01-13  Bruno Haible  <bruno@clisp.org>
28635
28636         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28637         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28638         * lib/argp.h (__attribute__): Likewise.
28639         * lib/c-stack.c (__attribute__): Likewise.
28640         * lib/error.h (__attribute__): Likewise.
28641         * lib/fts.c (__attribute__): Likewise.
28642         * lib/openat.h (__attribute__): Likewise.
28643         * lib/stdio.in.h (__attribute__): Likewise.
28644         * lib/string.in.h (__attribute__): Likewise.
28645         * lib/utimens.c (__attribute__): Likewise.
28646         * lib/vasnprintf.h (__attribute__): Likewise.
28647         * lib/xalloc.h (__attribute__): Likewise.
28648         * lib/xprintf.h (__attribute__): Likewise.
28649         * lib/xstrtol.h (__attribute__): Likewise.
28650         * lib/xvasprintf.h (__attribute__): Likewise.
28651
28652 2008-01-12  Bruno Haible  <bruno@clisp.org>
28653
28654         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28655         * doc/glibc-headers/a.out.texi: New file.
28656         * doc/glibc-headers/aliases.texi: New file.
28657         * doc/glibc-headers/alloca.texi: New file.
28658         * doc/glibc-headers/ar.texi: New file.
28659         * doc/glibc-headers/argp.texi: New file.
28660         * doc/glibc-headers/argz.texi: New file.
28661         * doc/glibc-headers/byteswap.texi: New file.
28662         * doc/glibc-headers/crypt.texi: New file.
28663         * doc/glibc-headers/endian.texi: New file.
28664         * doc/glibc-headers/envz.texi: New file.
28665         * doc/glibc-headers/err.texi: New file.
28666         * doc/glibc-headers/error.texi: New file.
28667         * doc/glibc-headers/execinfo.texi: New file.
28668         * doc/glibc-headers/fpu_control.texi: New file.
28669         * doc/glibc-headers/fstab.texi: New file.
28670         * doc/glibc-headers/fts.texi: New file.
28671         * doc/glibc-headers/getopt.texi: New file.
28672         * doc/glibc-headers/ieee754.texi: New file.
28673         * doc/glibc-headers/ifaddrs.texi: New file.
28674         * doc/glibc-headers/libintl.texi: New file.
28675         * doc/glibc-headers/mcheck.texi: New file.
28676         * doc/glibc-headers/mntent.texi: New file.
28677         * doc/glibc-headers/obstack.texi: New file.
28678         * doc/glibc-headers/paths.texi: New file.
28679         * doc/glibc-headers/printf.texi: New file.
28680         * doc/glibc-headers/pty.texi: New file.
28681         * doc/glibc-headers/resolv.texi: New file.
28682         * doc/glibc-headers/shadow.texi: New file.
28683         * doc/glibc-headers/sysexits.texi: New file.
28684         * doc/glibc-headers/ttyent.texi: New file.
28685
28686 2008-01-12  Jim Meyering  <meyering@redhat.com>
28687
28688         announce-gen: emit Gnulib's git-based version string.
28689         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28690         New option --gnulib-version=V, where V is expected to be
28691         the output of running git describe in the gnulib directory.
28692         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28693         not useful, and plan to stop publishing an xdelta file with each
28694         coreutils release.
28695
28696         * build-aux/announce-gen: Also check for lzma-compressed files.
28697
28698 2008-01-11  Bruno Haible  <bruno@clisp.org>
28699
28700         * tests/test-memmem.c (main): Increase maximum allowed time.
28701         * tests/test-strstr.c (main): Likewise.
28702
28703 2008-01-11  Bruno Haible  <bruno@clisp.org>
28704
28705         * doc/functions/memmem.texi: Add more precisions about platforms.
28706         * doc/functions/strstr.texi: Likewise.
28707
28708 2008-01-10  Eric Blake  <ebb9@byu.net>
28709
28710         * m4/strstr.m4: Delete cruft from copy-n-paste.
28711         Reported by Bruno Haible.
28712
28713 2008-01-10  Bruno Haible  <bruno@clisp.org>
28714
28715         Make c-strstr rely on strstr.
28716         * lib/c-strstr.c: Don't include str-kmp.h.
28717         (c_strstr): Define in terms of strstr.
28718         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28719         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28720
28721 2008-01-10  Bruno Haible  <bruno@clisp.org>
28722
28723         * doc/gnulib.texi (String Functions in C Locale): New section.
28724         * doc/c-ctype.texi: New file.
28725         * doc/c-strcase.texi: New file.
28726         * doc/c-strcaseeq.texi: New file.
28727         * doc/c-strcasestr.texi: New file.
28728         * doc/c-strstr.texi: New file.
28729         * doc/c-strtod.texi: New file.
28730         * doc/c-strtold.texi: New file.
28731
28732 2008-01-10  Eric Blake  <ebb9@byu.net>
28733
28734         * lib/relocatable.h: Fix a comment.
28735
28736 2008-01-10  Eric Blake  <ebb9@byu.net>
28737
28738         Share two-way algorithm.
28739         * lib/str-two-way.h: New file, merged from...
28740         * lib/memmem.c: ...here...
28741         * lib/strstr.c: ...and here.
28742         * modules/memmem (Files): Use it.
28743         * modules/strstr (Files): Likewise.
28744
28745         Avoid quadratic strstr implementations.
28746         * lib/strstr.c: New file.
28747         * m4/strstr.m4: Likewise.
28748         * modules/strstr: Likewise.
28749         * modules/strstr-tests: Likewise.
28750         * tests/test-strstr.c: Likewise.
28751         * lib/string.in.h (rpl_strstr): Declare.
28752         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28754         * modules/string (Makefile.am): Likewise.
28755         * MODULES.html.sh (string handling): Mention new module.
28756         * doc/functions/strstr.texi (strstr): Document the bug.
28757
28758 2008-01-10  Bruno Haible  <bruno@clisp.org>
28759
28760         * lib/relocatable.h (relocate): State whether result is freshly
28761         allocated or not.
28762         * lib/relocatable.c (relocate): Return a freshly allocated string
28763         instead of a pointer to a privately held string.
28764         Reported by Sylvain Beucler <beuc@gnu.org>.
28765
28766 2008-01-10  Colin Watson  <cjwatson@debian.org>
28767
28768         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28769         s/S_ISNLK/S_ISLNK/.
28770
28771 2008-01-09  Bruno Haible  <bruno@clisp.org>
28772
28773         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28774         and other files.
28775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28776         if it's only a guess.
28777         * modules/memmem: Simplify by depending on memmem-simple.
28778
28779 2008-01-09  Bruno Haible  <bruno@clisp.org>
28780
28781         Work around OpenBSD 4.0 tdelete() bug.
28782         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28783         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28784         macros and don't redefine the enum values.
28785         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28786         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28787         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28788
28789 2008-01-09  Bruno Haible  <bruno@clisp.org>
28790
28791         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28792         (main): Don't perform the tests if setlocale did not install a UTF-8
28793         locale. Needed on OpenBSD 4.0.
28794         * modules/wcwidth-tests (Depends-on): Add localcharset.
28795
28796 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28797
28798         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28799         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28800         * NEWS: announce this.
28801         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28802
28803 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28804         and Eric Blake  <ebb9@byu.net>
28805
28806         Add memmem-simple module.
28807         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28808         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28809         * modules/memmem-simple: New file.
28810         * modules/memmem (Description): Tweak.
28811         * MODULES.html.sh (string handling): Mention new module.
28812         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28813         addressed by memmem-simple.
28814         * NEWS: Document the difference.
28815
28816 2008-01-09  Eric Blake  <ebb9@byu.net>
28817
28818         Give gcc some memmem optimization hints.
28819         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28820         (strcasestr): Declare as pure.
28821         * modules/memmem (Maintainer): Claim my implementation.
28822
28823 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28824
28825         Support AIX 6.1 and higher.
28826         * build-aux/config.libpath: Likewise.
28827         * build-aux/config.rpath: Likewise.
28828
28829 2008-01-08  Jim Meyering  <meyering@redhat.com>
28830             Bruno Haible  <bruno@clisp.org>
28831
28832         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28833         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28834         Reported by Peter Fales in
28835         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28836
28837 2008-01-08  Bruno Haible  <bruno@clisp.org>
28838
28839         * modules/unictype/category-of (Depends-on): Add
28840         unictype/category-none.
28841         * modules/unictype/category-and-tests (Depends-on): Add
28842         unictype/category-{L,N,Lu,Nd}.
28843         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28844         * modules/unictype/category-or-tests (Depends-on): Add
28845         unictype/category-{L,N}.
28846         * modules/unictype/category-name-tests (Depends-on): Add
28847         unictype/category-{Z,Nl}.
28848         Reported by Simon Josefsson.
28849
28850 2008-01-08  Bruno Haible  <bruno@clisp.org>
28851
28852         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28853         convention better.
28854         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28855         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28856         Reported by Peter Miller <millerp@canb.auug.org.au>.
28857
28858 2008-01-08  Eric Blake  <ebb9@byu.net>
28859
28860         Rewrite memmem to guarantee linear complexity without malloc.
28861         * lib/memmem.c (memmem): Use Two-Way rather than
28862         Knuth-Morris-Pratt, to allow O(1) space usage.
28863         (critical_factorization, two_way_short_needle)
28864         (two_way_long_needle): New functions.
28865         (knuth_morris_pratt): Delete.
28866         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28867         Add stdint.
28868         * tests/test-memmem.c (main): Add tests for periodic needle and
28869         sublinear performance.
28870         * doc/functions/memmem.texi (memmem): Document other deficiencies
28871         in cygwin and older glibc.
28872
28873 2008-01-08  Bruno Haible  <bruno@clisp.org>
28874
28875         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28876         augmentation.
28877
28878 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28879
28880         Add a configure time option: --disable-acl.
28881         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28882         AC_ARG_ENABLE(acl).
28883
28884 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28885
28886         * tests/test-localename.c: Don't include obsolete "setenv.h".
28887
28888         * modules/localename-tests (Depends-on): Need unsetenv.
28889
28890 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28891
28892         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28893
28894 2008-01-06  Colin Watson  <cjwatson@debian.org>
28895
28896         * users.txt: Add man-db.
28897
28898 2008-01-07  Bruno Haible  <bruno@clisp.org>
28899
28900         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28901         previous section name.
28902
28903 2008-01-07  Bruno Haible  <bruno@clisp.org>
28904
28905         * lib/progname.c (set_program_name): Don't strip off a leading
28906         "lt-" prefix outside a .libs directory.
28907         Suggested by Paul Eggert.
28908
28909 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28910             Bruno Haible  <bruno@clisp.org>
28911
28912         Improve memory cleanup in 'relocatable' module.
28913         * lib/relocatable.h (compute_curr_prefix): Change return type to
28914         'char *'.
28915         * lib/relocatable.c (compute_curr_prefix): Change return type to
28916         'char *'. Free curr_installdir after use.
28917         (relocate): Free curr_prefix_better after use.
28918         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28919
28920 2008-01-01  Bruno Haible  <bruno@clisp.org>
28921
28922         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28923         failure on older glibc systems.
28924         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28925
28926 2008-01-05  Eric Blake  <ebb9@byu.net>
28927
28928         Avoid quadratic system memmem.
28929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28930         Reported by Ralf Wildenhues.
28931
28932         Fix memmem test for mingw.
28933         * modules/memmem-tests (configure.ac): Check for alarm.
28934         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28935         it.
28936         * doc/functions/memmem.texi: New file.
28937         * doc/gnulib.texi (Function Substitutes): Add memmem.
28938         Reported by Bruno Haible.
28939
28940 2008-01-04  Bruno Haible  <bruno@clisp.org>
28941
28942         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28943         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28944         gl_HEADER_STRING_H_DEFAULTS.
28945
28946 2008-01-04  Eric Blake  <ebb9@byu.net>
28947
28948         Shorten duration of memmem test.
28949         * tests/test-memmem.c (main): Use alarm to declare failure if test
28950         is taking too long.
28951         Reported by Ralf Wildenhues.
28952
28953 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28954
28955         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28956         string, needed by strerror.
28957
28958 2008-01-03  Colin Watson  <cjwatson@debian.org>
28959             Bruno Haible  <bruno@clisp.org>
28960
28961         * doc/gnulib-tool.texi (Localization): New section.
28962
28963 2008-01-02  Bruno Haible  <bruno@clisp.org>
28964
28965         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28966         variables to 'unsigned char *' type.
28967         Reported by Paul Eggert.
28968
28969 2008-01-02  Jim Meyering  <jim@meyering.net>
28970
28971         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28972
28973 2007-12-31  Jim Meyering  <jim@meyering.net>
28974
28975         Avoid use of private FTS type name.
28976         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28977
28978 2007-12-30  Karl Berry  <karl@gnu.org>
28979
28980         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28981         work around defect in Texinfo and/or the standalone Info browser.
28982
28983 2007-12-30  Bruno Haible  <bruno@clisp.org>
28984
28985         Unify 5 copies of the KMP code.
28986         * lib/str-kmp.h: New file.
28987         * lib/c-strcasestr.c: Include str-kmp.h.
28988         (knuth_morris_pratt): Remove function.
28989         (c_strcasestr): Update.
28990         * lib/c-strstr.c: Include str-kmp.h.
28991         (knuth_morris_pratt): Remove function.
28992         (c_strcasestr): Update.
28993         * lib/mbscasestr.c: Include str-kmp.h.
28994         (knuth_morris_pratt_unibyte): Remove function.
28995         * lib/mbsstr.c: Include str-kmp.h.
28996         (knuth_morris_pratt_unibyte): Remove function.
28997         * lib/strcasestr.c: Include str-kmp.h.
28998         (knuth_morris_pratt): Remove function.
28999         (strcasestr): Update.
29000         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
29001         * modules/c-strstr (Files): Likewise.
29002         * modules/mbscasestr (Files): Likewise.
29003         * modules/mbsstr (Files): Likewise.
29004         * modules/strcasestr (Files): Likewise.
29005         Suggested by Paul Eggert.
29006
29007 2007-12-30  Bruno Haible  <bruno@clisp.org>
29008
29009         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
29010         defined.
29011
29012 2007-12-30  Bruno Haible  <bruno@clisp.org>
29013
29014         * lib/xmalloca.h: Include xalloc.h.
29015         (xnmalloca): New macro.
29016
29017 2007-12-30  Bruno Haible  <bruno@clisp.org>
29018
29019         * lib/malloca.h (nmalloca): New macro.
29020         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
29021         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
29022         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
29023         knuth_morris_pratt_multibyte): Likewise.
29024         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
29025         knuth_morris_pratt_multibyte): Likewise.
29026         * lib/memmem.c (knuth_morris_pratt): Likewise.
29027         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
29028
29029 2007-12-25  Bruno Haible  <bruno@clisp.org>
29030
29031         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
29032         * lib/glob.c: Don't include openat.h.
29033         (link_exists2_p): Add back the code that deals with the
29034         !GLOB_ALTDIRFUNC case.
29035         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
29036         let it do the filename concatenation.
29037         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
29038         * modules/glob (Depends-on): Remove openat.
29039
29040 2007-12-31  Bruno Haible  <bruno@clisp.org>
29041
29042         * modules/dirfd (License): Change to LGPLv2+.
29043         Approved by Jim Meyering.
29044
29045 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
29046
29047         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
29048         when multiplying M by sizeof (size_t).
29049
29050 2007-12-10  Martin Lambers  <marlam@marlam.de>
29051
29052         Override getpagesize on mingw.
29053         * lib/getpagesize.c: New file.
29054         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
29055         * modules/getpagesize (Files): Add lib/getpagesize.c.
29056         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
29057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29058         REPLACE_GETPAGESIZE.
29059         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
29060
29061 2007-12-25  Bruno Haible  <bruno@clisp.org>
29062
29063         * modules/localcharset (Notice): New field.
29064         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
29065         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
29066
29067 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
29068             Bruno Haible  <bruno@clisp.org>
29069
29070         Avoid using the syntax symbol() in formatted documentation.
29071         * MODULES.html.sh (func_module): When replacing symbol() with a
29072         hyperlink, remove the parentheses. Show an error if some remain.
29073         Recognize and render the '...' syntax.
29074         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
29075         Rework. Add paragraph about GCC's inlining.
29076         * doc/alloca.texi: Likewise.
29077         * doc/error.texi: Remove parentheses from symbol reference.
29078         * doc/gnulib-intro.texi: Likewise.
29079         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
29080         * modules/fnmatch (Description): Reword to say "the ... function".
29081         * modules/full-read (Description): Likewise.
29082         * modules/full-write (Description): Likewise.
29083         * modules/safe-read (Description): Likewise.
29084         * modules/safe-write (Description): Likewise.
29085         * modules/strchrnul (Description): Likewise.
29086         * modules/trim (Description): Likewise.
29087         * modules/error (Description): Remove parentheses from symbol
29088         references.
29089         * modules/verror (Description): Likewise.
29090         Reported by Karl Berry.
29091
29092 2007-12-25  Bruno Haible  <bruno@clisp.org>
29093
29094         Fixup after 2007-10-16 commit.
29095         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
29096
29097 2007-12-24  Bruno Haible  <bruno@clisp.org>
29098
29099         Make --enable-relocatable work with DESTDIR.
29100         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
29101         to compute installdir from destprog.
29102         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
29103         also set the RELOC_DESTDIR variable.
29104         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
29105
29106 2007-12-24  Bruno Haible  <bruno@clisp.org>
29107
29108         Fix link error due to xalloc_die().
29109         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
29110         of xreadlink.
29111         * lib/relocwrapper.c: Update comments.
29112         * build-aux/install-reloc: Remove xreadlink.c from file list.
29113         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
29114         xreadlink.c.
29115         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
29116
29117 2007-12-24  Bruno Haible  <bruno@clisp.org>
29118
29119         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
29120         * lib/setenv.h: Remove file.
29121         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
29122         lib/setenv.h.
29123         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
29124         (Depends-on): Add stdlib.
29125         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
29126         gl_FUNC_UNSETENV.
29127         (Include): Replace setenv.h with <stdlib.h>.
29128         * modules/unsetenv: New file.
29129         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
29130         * lib/unsetenv.c: Include <stdlib.h> first.
29131         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
29132         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
29133         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
29134         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
29135         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
29136         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
29137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
29138         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
29139         * doc/functions/unsetenv.texi: Update.
29140         * modules/xsetenv (Depends-on): Add unsetenv.
29141         * modules/getdate (Depends-on): Likewise.
29142         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
29143         * lib/xsetenv.c: Don't include setenv.h.
29144         * lib/getdate.y: Likewise.
29145         * lib/relocwrapper.c: Likewise.
29146         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
29147         (Depends-on): Add stdlib.
29148         * NEWS: Mention the changes.
29149         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
29150
29151 2007-12-23  Bruno Haible  <bruno@clisp.org>
29152
29153         * lib/memmem.c (memmem): Use lowercase variable names. Tab
29154         indentation.
29155
29156 2007-12-23  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/c-strcasestr.c: Add more comments.
29159         * lib/c-strstr.c: Likewise.
29160         * lib/mbscasestr.c: Likewise.
29161         * lib/mbsstr.c: Likewise.
29162         * lib/strcasestr.c: Likewise.
29163         * lib/memmem.c: Likewise.
29164
29165 2007-12-23  Bruno Haible  <bruno@clisp.org>
29166
29167         * tests/test-memmem.c: Include <string.h> first.
29168
29169 2007-12-22  Bruno Haible  <bruno@clisp.org>
29170
29171         * gnulib-tool (func_create_testdir): Change $auxdir while generating
29172         the contents of $testsbase.
29173         Reported by Ralf Wildenhues.
29174
29175 2007-12-22  Bruno Haible  <bruno@clisp.org>
29176
29177         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
29178         two variables local_ldadd_before, local_ldadd_last.
29179
29180 2007-12-20  Eric Blake  <ebb9@byu.net>
29181
29182         Work around circular library issue when cross-compiling.
29183         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
29184         that progname.o does not need to pull in rpl_memcmp.
29185
29186 2007-12-19  Eric Blake  <ebb9@byu.net>
29187
29188         Fix memmem to avoid O(n^2) worst-case complexity.
29189         * lib/memmem.c (knuth_morris_pratt): New function.
29190         (memmem): Use it if first few naive iterations fail.
29191         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
29192         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
29193         * modules/memchr (License): Likewise.
29194         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
29195         malloca.
29196         * tests/test-memmem.c: Rewrite, borrowing ideas from
29197         test-mbsstr1.c; the old version wouldn't even compile!
29198         * modules/memmem-tests: New file.
29199         * lib/string.in.h (rpl_memmem): Add declaration.
29200         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
29201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
29202         REPLACE_MEMMEM.
29203
29204 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29205
29206         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
29207         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
29208         before any system include files, and undef after them all.  This
29209         should fix a problem on VMS reported by John E. Malmberg in
29210         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
29211
29212 2007-12-17  Eric Blake  <ebb9@byu.net>
29213
29214         Revert addition of verify, for BSD/OS.
29215         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
29216         can't handle large files, for the sake of obsolete platforms.
29217         * modules/fseeko (Depends-on): Remove verify.
29218         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
29219         * doc/functions/ftello.texi (ftello): Likewise.
29220         * doc/functions/fgetpos.texi (fgetpos): Likewise.
29221         Reported by Larry Jones.
29222
29223 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
29224
29225         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
29226         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
29227
29228 2007-12-17  Jim Meyering  <meyering@redhat.com>
29229
29230         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
29231         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
29232         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
29233         * modules/getcwd (Depends-on): Add openat.
29234         Reported by Petr Salinger.
29235
29236 2007-12-17  Bruno Haible  <bruno@clisp.org>
29237
29238         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
29239         avoid a segmentation fault of the configure test on x86_64 systems.
29240
29241 2007-12-15  Jim Meyering  <meyering@redhat.com>
29242
29243         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
29244
29245 2007-12-13  Eric Blake  <ebb9@byu.net>
29246
29247         Another fseek test.
29248         * tests/test-fseek.c (main): Also test ungetc handling.
29249         * tests/test-fseeko.c (main): Likewise.
29250         * modules/fseeko (Depends-on): Add verify.
29251         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
29252         large.
29253         Reported by Larry Jones.
29254
29255         Fix fseeko on mingw.
29256         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
29257         seek.
29258
29259         Beef up fseek tests.
29260         * tests/test-fseek.c (main): Also test eof handling.
29261         * tests/test-fseeko.c (main): Likewise.
29262         Reported by Larry Jones.
29263
29264 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
29265
29266         Fix fseeko on BSD-based platforms.
29267         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
29268         successful seek.
29269
29270 2007-12-12  Eric Blake  <ebb9@byu.net>
29271
29272         Allow circular dependency of separate libtests.a
29273         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
29274         when use_libtests.
29275
29276 2007-12-11  Eric Blake  <ebb9@byu.net>
29277
29278         Fix bug with -0.0L in previous patch.
29279         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
29280         * tests/test-isnan.c (main): Also test on zeroes.
29281         * tests/test-isnanf.c (main): Likewise.
29282         * tests/test-isnanl.h (main): Likewise.
29283
29284         Detect pseudo-denormals on x86 even when cross-compiling.
29285         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
29286         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
29287         invalid bit patterns that happen to satisfy ==.
29288
29289         Avoid link failures with separate libtests.a.
29290         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
29291         last, to satisfy circular dependencies.
29292
29293 2007-12-11  Eric Blake  <ebb9@byu.net>
29294         and Bruno Haible  <bruno@clisp.org>
29295
29296         Fix OpenBSD 4.0 <float.h> handling of long double.
29297         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
29298         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
29299         * doc/headers/float.texi (float.h): Document OpenBSD bug.
29300
29301 2007-12-11  Jim Meyering  <meyering@redhat.com>
29302
29303         * users.txt: Add libvirt.
29304
29305         Support versions of autoconf prior to 2.59c.
29306         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
29307         if it is not already defined.
29308
29309 2007-12-09  Bruno Haible  <bruno@clisp.org>
29310
29311         Let 'gnulib-tool --import' collect sources needed for the tests in
29312         tests/ rather than in lib/.
29313         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
29314         argument. If true, add rules to generate libtests.a, and put libtests.a
29315         into $(LDADD). Consider source files in subdirectories and set
29316         uses_subdirs.
29317         (func_emit_initmacro_start, func_emit_initmacro_end,
29318         func_emit_initmacro_done): Pass all arguments explicitly.
29319         (func_import): Determine two module lists main_modules,
29320         testsrelated_modules. Determine use_libtests. Determine two variables
29321         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
29322         instead of just sed_transform_lib_file. Determine two variables
29323         main_files and testsrelated_files. Compute 'files' as the union of
29324         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
29325         func_add_or_update. In the generated gnulib-comp.m4, collect the
29326         object files for tests/ in different variables than those for lib/.
29327         Substitute LIBTESTS_LIBDEPS.
29328         (func_create_testdir): Combine the uses_subdirs results from
29329         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
29330
29331 2007-12-09  Bruno Haible  <bruno@clisp.org>
29332
29333         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
29334         the build-aux directory.
29335
29336 2007-12-09  Bruno Haible  <bruno@clisp.org>
29337
29338         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
29339         introduced on 2006-09-09.
29340
29341 2007-12-07  Jim Meyering  <meyering@redhat.com>
29342
29343         Let these macros work also with autoconf-2.59.
29344         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
29345         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
29346         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29347
29348 2007-12-06  Jim Meyering  <meyering@redhat.com>
29349
29350         Avoid a configure-time syntax error in gl_FUNC_ACL.
29351         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
29352         function in each branch, before testing the cache variable.
29353
29354 2007-12-04  Eric Blake  <ebb9@byu.net>
29355
29356         Make scripts executable.
29357         * build-aux/config.guess: Add execute permissions.
29358         * build-aux/config.sub: Likewise.
29359         * build-aux/gendocs.sh: Likewise.
29360
29361         Fix frexp on mingw.
29362         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
29363         cross-compiling.
29364         * doc/functions/frexp.texi (frexp): Document the bug.
29365
29366         Make cygwin fseeko check more reliable.
29367         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
29368         version numbers, rather than unrelated feature check.
29369         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
29370         * doc/functions/ftello.texi (ftello): Likewise.
29371         Reported by Bruno Haible.
29372
29373         * m4/strerror.m4: Bump version number.
29374
29375 2007-12-03  Bruno Haible  <bruno@clisp.org>
29376
29377         * doc/functions/mprotect.texi: Mention the mingw problem.
29378
29379 2007-12-03  Eric Blake  <ebb9@byu.net>
29380
29381         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
29382         REPLACE_STRERROR is initialized before this macro.
29383
29384 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
29385
29386         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
29387         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
29388         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
29389         put -lsec in even for programs other than 'ls'.  This fixes a problem
29390         for gettext reported by Bruno Haible in
29391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
29392         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
29393         Add support for Solaris 10.  This isn't efficient, but should get the
29394         job done for now.
29395
29396 2007-12-03  James Youngman  <jay@gnu.org>
29397
29398         * doc/regexprops-generic.texi: change "an close-group" to "a
29399         close-group" and "illegal" to "not allowed".
29400
29401 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29402
29403         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
29404         pr_byname.h. Needed for the rare case when the maintainer has done
29405         "make maintainer-clean" in the source directory and then attempts a
29406         build outside the source directory.
29407         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
29408         scripts_byname.h.
29409
29410 2007-12-02  Martin Lambers <marlam@marlam.de>
29411             Bruno Haible  <bruno@clisp.org>
29412
29413         * lib/getpagesize.h: Remove file.
29414         * lib/unistd.in.h: Include declaration of getpagesize here.
29415         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
29416         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
29417         HAVE_SYS_PARAM_H.
29418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
29419         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29420         * modules/getpagesize (Files): Remove lib/getpagesize.h.
29421         (Depends-on): Add unistd.
29422         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29423         (Include): Use <unistd.h> instead of getpagesize.h.
29424         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
29425         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29426         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
29427         gl_GETPAGESIZE invocation, already handled by module dependency.
29428         * lib/pagealign_alloc.c: Don't include getpagesize.h.
29429
29430 2007-12-02  Bruno Haible  <bruno@clisp.org>
29431
29432         * modules/strings-tests: New file.
29433         * tests/test-strings.c: New file.
29434
29435         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
29436         * lib/strings.in.h: New file.
29437         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
29438         * m4/strings_h.m4: New file.
29439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
29440         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
29441         * modules/strings: New file.
29442         * modules/string (Makefile.am): Update.
29443         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
29444         Reported by Karl Berry.
29445
29446 2007-12-01  Eric Blake  <ebb9@byu.net>
29447
29448         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
29449         accomodate fix in cygwin 1.5.25.
29450
29451 2007-12-01  Jim Meyering  <meyering@redhat.com>
29452
29453         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
29454         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
29455         that would inhibit utf8-optimization of a regexp containing line-
29456         or buffer-anchors, e.g., `^', `$'.
29457
29458 2007-11-30  Bruno Haible  <bruno@clisp.org>
29459
29460         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
29461         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
29462         glthread_recursive_lock_init.
29463         * lib/lock.c (glthread_recursive_lock_init)
29464         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
29465         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29466
29467 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29468
29469         New function qset_acl, like set_acl but with syscall semantics.
29470         * lib/acl.h (qset_acl): New decl.
29471         * lib/acl.c (qset_acl): New function.
29472         (set_acl): Use new function.  Use more-consistent diagnostics.
29473
29474 2007-11-28  Jim Meyering  <meyering@redhat.com>
29475
29476         * modules/physmem (License): Change from GPL to LGPLv2+.
29477
29478 2007-11-26  Bruno Haible  <bruno@clisp.org>
29479
29480         * lib/vasnprintf.c (decode_long_double): Don't abort if the
29481         'long double' type has excess precision.
29482         Reported by Jim Meyering in
29483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
29484
29485 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29486
29487         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
29488         Sync from <http://gnu.org/licenses>.
29489         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
29490         with license text from same location.
29491         * doc/maintain.texi, doc/standards.texi:  Sync from
29492         <http://savannah.gnu.org/projects/gnustandards>.
29493
29494 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
29495         and Jim Meyering  <meyering@redhat.com>
29496
29497         Adjust getdate' grammar to accept a slightly more regular language.
29498         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
29499         Before, the former was rejected.
29500         * lib/getdate.y (digits_to_date_time): New function, factored
29501         out of ...
29502         (number): ...here.  Just call digits_to_date_time.
29503         (hybrid): New non-terminal to handle an <unsigned number,
29504         signed relative offset> sequence consistently.
29505
29506 2007-11-18  Jim Meyering  <meyering@redhat.com>
29507
29508         Pull my changes from coreutils:
29509         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
29510         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
29511         use of $gnulib_tool_option_extras, so that it's separated from the
29512         preceding argument.
29513
29514         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
29515         * build-aux/bootstrap (cp_mark_as_generated): Create any required
29516         parent destination directories before copying a file into place.
29517
29518 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29519
29520         bootstrap: work also with 4-argument variant of AC_INIT
29521         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
29522
29523 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29524
29525         Port test-getaddrinfo to Solaris.
29526         Problem reported by Bruno Haible in
29527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
29528         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
29529         explanation of setting 'hints'.
29530         Don't reject an implementation merely because it returns EAI_SERVICE.
29531         (EAI_SERVICE): Define to 0 if not defined.
29532
29533 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29534
29535         The license of gnu-make and posix-shell is now "GPLed build tool".
29536         * modules/gnu-make (License): Likewise.
29537         * modules/posix-shell (License): Likewise.
29538
29539         New module posix-shell, for determining a POSIX shell
29540         or perhaps something that is close enough to a POSIX shell.
29541         * m4/posix-shell.m4: New file.
29542         * modules/posix-shell: New file.
29543
29544         * MODULES.html.sh: Mention new module.
29545
29546         New module gnu-make, for determining whether we're using GNU Make.
29547         * m4/gnu-make.m4: New file.
29548         * modules/gnu-make: New file.
29549         * MODULES.html.sh: Mention new module.
29550
29551 2007-11-14  Jim Meyering  <meyering@redhat.com>
29552
29553         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
29554         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
29555         use this macro to create a function _definition_.
29556         Remove useless "#undef ARGMATCH_DIE".
29557
29558 2007-11-14  Bruno Haible  <bruno@clisp.org>
29559
29560         * lib/config.charset: Update for OpenBSD 4.1.
29561         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
29562
29563 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
29564
29565         Document 64-bit #if problems in stdint.texi.
29566         * doc/headers/stdint.texi (stdint.h): Mention problems with
29567         64-bit-#if, and how to work around them.
29568
29569         Don't insist on 'long long int' support in the preprocessor.  It
29570         breaks too many things.  For example, PRIdMAX still uses a 'long
29571         long int' format with the latest Sun compiler, even though
29572         HAVE_LONG_LONG_INT isn't defined due to that compiler's
29573         preprocessor problem.  This causes the latest coreutils to dump
29574         core on Solaris 10 sparc with the Sun C compiler.
29575         Instead, fix the 2007-10-16 problem in a different way, by evaluating
29576         the troublesome expressions at configure-time, not at #if-time.
29577         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
29578         preprocessor.
29579         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
29580         compile-time C checks, done at 'configure'-time.
29581         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
29582         * modules/inttypes (Makefile): Substitute the new symbols that
29583         gl_INTTYPES_H now generates.
29584         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
29585
29586 2007-11-12  Bruno Haible  <bruno@clisp.org>
29587
29588         Tests for Unicode character classification functions.
29589
29590         * modules/unictype/bidicategory-byname-tests: New file.
29591         * modules/unictype/bidicategory-name-tests: New file.
29592         * modules/unictype/bidicategory-of-tests: New file.
29593         * modules/unictype/bidicategory-test-tests: New file.
29594         * modules/unictype/block-list-tests: New file.
29595         * modules/unictype/block-of-tests: New file.
29596         * modules/unictype/block-test-tests: New file.
29597         * modules/unictype/category-C-tests: New file.
29598         * modules/unictype/category-Cc-tests: New file.
29599         * modules/unictype/category-Cf-tests: New file.
29600         * modules/unictype/category-Cn-tests: New file.
29601         * modules/unictype/category-Co-tests: New file.
29602         * modules/unictype/category-Cs-tests: New file.
29603         * modules/unictype/category-L-tests: New file.
29604         * modules/unictype/category-Ll-tests: New file.
29605         * modules/unictype/category-Lm-tests: New file.
29606         * modules/unictype/category-Lo-tests: New file.
29607         * modules/unictype/category-Lt-tests: New file.
29608         * modules/unictype/category-Lu-tests: New file.
29609         * modules/unictype/category-M-tests: New file.
29610         * modules/unictype/category-Mc-tests: New file.
29611         * modules/unictype/category-Me-tests: New file.
29612         * modules/unictype/category-Mn-tests: New file.
29613         * modules/unictype/category-N-tests: New file.
29614         * modules/unictype/category-Nd-tests: New file.
29615         * modules/unictype/category-Nl-tests: New file.
29616         * modules/unictype/category-No-tests: New file.
29617         * modules/unictype/category-P-tests: New file.
29618         * modules/unictype/category-Pc-tests: New file.
29619         * modules/unictype/category-Pd-tests: New file.
29620         * modules/unictype/category-Pe-tests: New file.
29621         * modules/unictype/category-Pf-tests: New file.
29622         * modules/unictype/category-Pi-tests: New file.
29623         * modules/unictype/category-Po-tests: New file.
29624         * modules/unictype/category-Ps-tests: New file.
29625         * modules/unictype/category-S-tests: New file.
29626         * modules/unictype/category-Sc-tests: New file.
29627         * modules/unictype/category-Sk-tests: New file.
29628         * modules/unictype/category-Sm-tests: New file.
29629         * modules/unictype/category-So-tests: New file.
29630         * modules/unictype/category-Z-tests: New file.
29631         * modules/unictype/category-Zl-tests: New file.
29632         * modules/unictype/category-Zp-tests: New file.
29633         * modules/unictype/category-Zs-tests: New file.
29634         * modules/unictype/category-and-not-tests: New file.
29635         * modules/unictype/category-and-tests: New file.
29636         * modules/unictype/category-byname-tests: New file.
29637         * modules/unictype/category-name-tests: New file.
29638         * modules/unictype/category-none-tests: New file.
29639         * modules/unictype/category-of-tests: New file.
29640         * modules/unictype/category-or-tests: New file.
29641         * modules/unictype/category-test-withtable-tests: New file.
29642         * modules/unictype/combining-class-tests: New file.
29643         * modules/unictype/ctype-alnum-tests: New file.
29644         * modules/unictype/ctype-alpha-tests: New file.
29645         * modules/unictype/ctype-blank-tests: New file.
29646         * modules/unictype/ctype-cntrl-tests: New file.
29647         * modules/unictype/ctype-digit-tests: New file.
29648         * modules/unictype/ctype-graph-tests: New file.
29649         * modules/unictype/ctype-lower-tests: New file.
29650         * modules/unictype/ctype-print-tests: New file.
29651         * modules/unictype/ctype-punct-tests: New file.
29652         * modules/unictype/ctype-space-tests: New file.
29653         * modules/unictype/ctype-upper-tests: New file.
29654         * modules/unictype/ctype-xdigit-tests: New file.
29655         * modules/unictype/decimal-digit-tests: New file.
29656         * modules/unictype/digit-tests: New file.
29657         * modules/unictype/mirror-tests: New file.
29658         * modules/unictype/numeric-tests: New file.
29659         * modules/unictype/property-alphabetic-tests: New file.
29660         * modules/unictype/property-ascii-hex-digit-tests: New file.
29661         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29662         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29663         * modules/unictype/property-bidi-block-separator-tests: New file.
29664         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29665         * modules/unictype/property-bidi-common-separator-tests: New file.
29666         * modules/unictype/property-bidi-control-tests: New file.
29667         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29668         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29669         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29670         * modules/unictype/property-bidi-european-digit-tests: New file.
29671         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29672         * modules/unictype/property-bidi-left-to-right-tests: New file.
29673         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29674         * modules/unictype/property-bidi-other-neutral-tests: New file.
29675         * modules/unictype/property-bidi-pdf-tests: New file.
29676         * modules/unictype/property-bidi-segment-separator-tests: New file.
29677         * modules/unictype/property-bidi-whitespace-tests: New file.
29678         * modules/unictype/property-byname-tests: New file.
29679         * modules/unictype/property-combining-tests: New file.
29680         * modules/unictype/property-composite-tests: New file.
29681         * modules/unictype/property-currency-symbol-tests: New file.
29682         * modules/unictype/property-dash-tests: New file.
29683         * modules/unictype/property-decimal-digit-tests: New file.
29684         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29685         * modules/unictype/property-deprecated-tests: New file.
29686         * modules/unictype/property-diacritic-tests: New file.
29687         * modules/unictype/property-extender-tests: New file.
29688         * modules/unictype/property-format-control-tests: New file.
29689         * modules/unictype/property-grapheme-base-tests: New file.
29690         * modules/unictype/property-grapheme-extend-tests: New file.
29691         * modules/unictype/property-grapheme-link-tests: New file.
29692         * modules/unictype/property-hex-digit-tests: New file.
29693         * modules/unictype/property-hyphen-tests: New file.
29694         * modules/unictype/property-id-continue-tests: New file.
29695         * modules/unictype/property-id-start-tests: New file.
29696         * modules/unictype/property-ideographic-tests: New file.
29697         * modules/unictype/property-ids-binary-operator-tests: New file.
29698         * modules/unictype/property-ids-trinary-operator-tests: New file.
29699         * modules/unictype/property-ignorable-control-tests: New file.
29700         * modules/unictype/property-iso-control-tests: New file.
29701         * modules/unictype/property-join-control-tests: New file.
29702         * modules/unictype/property-left-of-pair-tests: New file.
29703         * modules/unictype/property-line-separator-tests: New file.
29704         * modules/unictype/property-logical-order-exception-tests: New file.
29705         * modules/unictype/property-lowercase-tests: New file.
29706         * modules/unictype/property-math-tests: New file.
29707         * modules/unictype/property-non-break-tests: New file.
29708         * modules/unictype/property-not-a-character-tests: New file.
29709         * modules/unictype/property-numeric-tests: New file.
29710         * modules/unictype/property-other-alphabetic-tests: New file.
29711         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29712         * modules/unictype/property-other-grapheme-extend-tests: New file.
29713         * modules/unictype/property-other-id-continue-tests: New file.
29714         * modules/unictype/property-other-id-start-tests: New file.
29715         * modules/unictype/property-other-lowercase-tests: New file.
29716         * modules/unictype/property-other-math-tests: New file.
29717         * modules/unictype/property-other-uppercase-tests: New file.
29718         * modules/unictype/property-paired-punctuation-tests: New file.
29719         * modules/unictype/property-paragraph-separator-tests: New file.
29720         * modules/unictype/property-pattern-syntax-tests: New file.
29721         * modules/unictype/property-pattern-white-space-tests: New file.
29722         * modules/unictype/property-private-use-tests: New file.
29723         * modules/unictype/property-punctuation-tests: New file.
29724         * modules/unictype/property-quotation-mark-tests: New file.
29725         * modules/unictype/property-radical-tests: New file.
29726         * modules/unictype/property-sentence-terminal-tests: New file.
29727         * modules/unictype/property-soft-dotted-tests: New file.
29728         * modules/unictype/property-space-tests: New file.
29729         * modules/unictype/property-terminal-punctuation-tests: New file.
29730         * modules/unictype/property-test-tests: New file.
29731         * modules/unictype/property-titlecase-tests: New file.
29732         * modules/unictype/property-unassigned-code-value-tests: New file.
29733         * modules/unictype/property-unified-ideograph-tests: New file.
29734         * modules/unictype/property-uppercase-tests: New file.
29735         * modules/unictype/property-variation-selector-tests: New file.
29736         * modules/unictype/property-white-space-tests: New file.
29737         * modules/unictype/property-xid-continue-tests: New file.
29738         * modules/unictype/property-xid-start-tests: New file.
29739         * modules/unictype/property-zero-width-tests: New file.
29740         * modules/unictype/scripts-tests: New file.
29741         * modules/unictype/syntax-c-ident-tests: New file.
29742         * modules/unictype/syntax-c-whitespace-tests: New file.
29743         * modules/unictype/syntax-java-ident-tests: New file.
29744         * modules/unictype/syntax-java-whitespace-tests: New file.
29745         * tests/unictype/test-bidi_byname.c: New file.
29746         * tests/unictype/test-bidi_name.c: New file.
29747         * tests/unictype/test-bidi_of.c: New file.
29748         * tests/unictype/test-bidi_test.c: New file.
29749         * tests/unictype/test-block_list.c: New file.
29750         * tests/unictype/test-block_of.c: New file.
29751         * tests/unictype/test-block_test.c: New file.
29752         * tests/unictype/test-categ_and.c: New file.
29753         * tests/unictype/test-categ_and_not.c: New file.
29754         * tests/unictype/test-categ_byname.c: New file.
29755         * tests/unictype/test-categ_name.c: New file.
29756         * tests/unictype/test-categ_none.c: New file.
29757         * tests/unictype/test-categ_of.c: New file.
29758         * tests/unictype/test-categ_or.c: New file.
29759         * tests/unictype/test-categ_test_withtable.c: New file.
29760         * tests/unictype/test-combining.c: New file.
29761         * tests/unictype/test-decdigit.c: New file.
29762         * tests/unictype/test-digit.c: New file.
29763         * tests/unictype/test-mirror.c: New file.
29764         * tests/unictype/test-numeric.c: New file.
29765         * tests/unictype/test-pr_byname.c: New file.
29766         * tests/unictype/test-pr_test.c: New file.
29767         * tests/unictype/test-predicate-part1.h: New file.
29768         * tests/unictype/test-predicate-part2.h: New file.
29769         * tests/unictype/test-scripts.c: New file.
29770         * tests/unictype/test-sy_c_ident.c: New file.
29771         * tests/unictype/test-sy_java_ident.c: New file.
29772
29773         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29774         for Unicode 5.0.0.
29775         * tests/unictype/test-categ_Cc.c: Likewise.
29776         * tests/unictype/test-categ_Cf.c: Likewise.
29777         * tests/unictype/test-categ_Cn.c: Likewise.
29778         * tests/unictype/test-categ_Co.c: Likewise.
29779         * tests/unictype/test-categ_Cs.c: Likewise.
29780         * tests/unictype/test-categ_L.c: Likewise.
29781         * tests/unictype/test-categ_Ll.c: Likewise.
29782         * tests/unictype/test-categ_Lm.c: Likewise.
29783         * tests/unictype/test-categ_Lo.c: Likewise.
29784         * tests/unictype/test-categ_Lt.c: Likewise.
29785         * tests/unictype/test-categ_Lu.c: Likewise.
29786         * tests/unictype/test-categ_M.c: Likewise.
29787         * tests/unictype/test-categ_Mc.c: Likewise.
29788         * tests/unictype/test-categ_Me.c: Likewise.
29789         * tests/unictype/test-categ_Mn.c: Likewise.
29790         * tests/unictype/test-categ_N.c: Likewise.
29791         * tests/unictype/test-categ_Nd.c: Likewise.
29792         * tests/unictype/test-categ_Nl.c: Likewise.
29793         * tests/unictype/test-categ_No.c: Likewise.
29794         * tests/unictype/test-categ_P.c: Likewise.
29795         * tests/unictype/test-categ_Pc.c: Likewise.
29796         * tests/unictype/test-categ_Pd.c: Likewise.
29797         * tests/unictype/test-categ_Pe.c: Likewise.
29798         * tests/unictype/test-categ_Pf.c: Likewise.
29799         * tests/unictype/test-categ_Pi.c: Likewise.
29800         * tests/unictype/test-categ_Po.c: Likewise.
29801         * tests/unictype/test-categ_Ps.c: Likewise.
29802         * tests/unictype/test-categ_S.c: Likewise.
29803         * tests/unictype/test-categ_Sc.c: Likewise.
29804         * tests/unictype/test-categ_Sk.c: Likewise.
29805         * tests/unictype/test-categ_Sm.c: Likewise.
29806         * tests/unictype/test-categ_So.c: Likewise.
29807         * tests/unictype/test-categ_Z.c: Likewise.
29808         * tests/unictype/test-categ_Zl.c: Likewise.
29809         * tests/unictype/test-categ_Zp.c: Likewise.
29810         * tests/unictype/test-categ_Zs.c: Likewise.
29811         * tests/unictype/test-ctype_alnum.c: Likewise.
29812         * tests/unictype/test-ctype_alpha.c: Likewise.
29813         * tests/unictype/test-ctype_blank.c: Likewise.
29814         * tests/unictype/test-ctype_cntrl.c: Likewise.
29815         * tests/unictype/test-ctype_digit.c: Likewise.
29816         * tests/unictype/test-ctype_graph.c: Likewise.
29817         * tests/unictype/test-ctype_lower.c: Likewise.
29818         * tests/unictype/test-ctype_print.c: Likewise.
29819         * tests/unictype/test-ctype_punct.c: Likewise.
29820         * tests/unictype/test-ctype_space.c: Likewise.
29821         * tests/unictype/test-ctype_upper.c: Likewise.
29822         * tests/unictype/test-ctype_xdigit.c: Likewise.
29823         * tests/unictype/test-decdigit.h: Likewise.
29824         * tests/unictype/test-digit.h: Likewise.
29825         * tests/unictype/test-numeric.h: Likewise.
29826         * tests/unictype/test-pr_alphabetic.c: Likewise.
29827         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29828         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29829         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29830         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29831         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29832         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29833         * tests/unictype/test-pr_bidi_control.c: Likewise.
29834         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29835         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29836         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29837         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29838         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29839         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29840         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29841         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29842         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29843         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29844         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29845         * tests/unictype/test-pr_combining.c: Likewise.
29846         * tests/unictype/test-pr_composite.c: Likewise.
29847         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29848         * tests/unictype/test-pr_dash.c: Likewise.
29849         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29850         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29851         * tests/unictype/test-pr_deprecated.c: Likewise.
29852         * tests/unictype/test-pr_diacritic.c: Likewise.
29853         * tests/unictype/test-pr_extender.c: Likewise.
29854         * tests/unictype/test-pr_format_control.c: Likewise.
29855         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29856         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29857         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29858         * tests/unictype/test-pr_hex_digit.c: Likewise.
29859         * tests/unictype/test-pr_hyphen.c: Likewise.
29860         * tests/unictype/test-pr_id_continue.c: Likewise.
29861         * tests/unictype/test-pr_id_start.c: Likewise.
29862         * tests/unictype/test-pr_ideographic.c: Likewise.
29863         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29864         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29865         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29866         * tests/unictype/test-pr_iso_control.c: Likewise.
29867         * tests/unictype/test-pr_join_control.c: Likewise.
29868         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29869         * tests/unictype/test-pr_line_separator.c: Likewise.
29870         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29871         * tests/unictype/test-pr_lowercase.c: Likewise.
29872         * tests/unictype/test-pr_math.c: Likewise.
29873         * tests/unictype/test-pr_non_break.c: Likewise.
29874         * tests/unictype/test-pr_not_a_character.c: Likewise.
29875         * tests/unictype/test-pr_numeric.c: Likewise.
29876         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29877         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29878         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29879         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29880         * tests/unictype/test-pr_other_id_start.c: Likewise.
29881         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29882         * tests/unictype/test-pr_other_math.c: Likewise.
29883         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29884         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29885         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29886         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29887         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29888         * tests/unictype/test-pr_private_use.c: Likewise.
29889         * tests/unictype/test-pr_punctuation.c: Likewise.
29890         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29891         * tests/unictype/test-pr_radical.c: Likewise.
29892         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29893         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29894         * tests/unictype/test-pr_space.c: Likewise.
29895         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29896         * tests/unictype/test-pr_titlecase.c: Likewise.
29897         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29898         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29899         * tests/unictype/test-pr_uppercase.c: Likewise.
29900         * tests/unictype/test-pr_variation_selector.c: Likewise.
29901         * tests/unictype/test-pr_white_space.c: Likewise.
29902         * tests/unictype/test-pr_xid_continue.c: Likewise.
29903         * tests/unictype/test-pr_xid_start.c: Likewise.
29904         * tests/unictype/test-pr_zero_width.c: Likewise.
29905         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29906         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29907
29908 2007-11-12  Bruno Haible  <bruno@clisp.org>
29909
29910         Unicode character classification functions.
29911         * lib/unictype.h: New file.
29912         * modules/unictype/base: New file.
29913         * modules/unictype/category-L: New file.
29914         * modules/unictype/category-Lu: New file.
29915         * modules/unictype/category-Ll: New file.
29916         * modules/unictype/category-Lt: New file.
29917         * modules/unictype/category-Lm: New file.
29918         * modules/unictype/category-Lo: New file.
29919         * modules/unictype/category-M: New file.
29920         * modules/unictype/category-Mn: New file.
29921         * modules/unictype/category-Mc: New file.
29922         * modules/unictype/category-Me: New file.
29923         * modules/unictype/category-N: New file.
29924         * modules/unictype/category-Nd: New file.
29925         * modules/unictype/category-Nl: New file.
29926         * modules/unictype/category-No: New file.
29927         * modules/unictype/category-P: New file.
29928         * modules/unictype/category-Pc: New file.
29929         * modules/unictype/category-Pd: New file.
29930         * modules/unictype/category-Ps: New file.
29931         * modules/unictype/category-Pe: New file.
29932         * modules/unictype/category-Pi: New file.
29933         * modules/unictype/category-Pf: New file.
29934         * modules/unictype/category-Po: New file.
29935         * modules/unictype/category-S: New file.
29936         * modules/unictype/category-Sm: New file.
29937         * modules/unictype/category-Sc: New file.
29938         * modules/unictype/category-Sk: New file.
29939         * modules/unictype/category-So: New file.
29940         * modules/unictype/category-Z: New file.
29941         * modules/unictype/category-Zs: New file.
29942         * modules/unictype/category-Zl: New file.
29943         * modules/unictype/category-Zp: New file.
29944         * modules/unictype/category-C: New file.
29945         * modules/unictype/category-Cc: New file.
29946         * modules/unictype/category-Cf: New file.
29947         * modules/unictype/category-Cs: New file.
29948         * modules/unictype/category-Co: New file.
29949         * modules/unictype/category-Cn: New file.
29950         * modules/unictype/category-or: New file.
29951         * modules/unictype/category-of: New file.
29952         * modules/unictype/category-test: New file.
29953         * modules/unictype/category-test-withtable: New file.
29954         * modules/unictype/category-byname: New file.
29955         * modules/unictype/category-none: New file.
29956         * modules/unictype/category-and: New file.
29957         * modules/unictype/category-and-not: New file.
29958         * modules/unictype/category-name: New file.
29959         * modules/unictype/combining-class: New file.
29960         * modules/unictype/category-all: New file.
29961         * modules/unictype/bidicategory-all: New file.
29962         * modules/unictype/bidicategory-byname: New file.
29963         * modules/unictype/bidicategory-name: New file.
29964         * modules/unictype/bidicategory-of: New file.
29965         * modules/unictype/bidicategory-test: New file.
29966         * modules/unictype/decimal-digit: New file.
29967         * modules/unictype/digit: New file.
29968         * modules/unictype/numeric: New file.
29969         * modules/unictype/mirror: New file.
29970         * modules/unictype/property-white-space: New file.
29971         * modules/unictype/property-alphabetic: New file.
29972         * modules/unictype/property-other-alphabetic: New file.
29973         * modules/unictype/property-not-a-character: New file.
29974         * modules/unictype/property-default-ignorable-code-point: New file.
29975         * modules/unictype/property-other-default-ignorable-code-point: New
29976         file.
29977         * modules/unictype/property-deprecated: New file.
29978         * modules/unictype/property-logical-order-exception: New file.
29979         * modules/unictype/property-variation-selector: New file.
29980         * modules/unictype/property-private-use: New file.
29981         * modules/unictype/property-unassigned-code-value: New file.
29982         * modules/unictype/property-uppercase: New file.
29983         * modules/unictype/property-other-uppercase: New file.
29984         * modules/unictype/property-lowercase: New file.
29985         * modules/unictype/property-other-lowercase: New file.
29986         * modules/unictype/property-titlecase: New file.
29987         * modules/unictype/property-soft-dotted: New file.
29988         * modules/unictype/property-id-start: New file.
29989         * modules/unictype/property-other-id-start: New file.
29990         * modules/unictype/property-id-continue: New file.
29991         * modules/unictype/property-other-id-continue: New file.
29992         * modules/unictype/property-xid-start: New file.
29993         * modules/unictype/property-xid-continue: New file.
29994         * modules/unictype/property-pattern-white-space: New file.
29995         * modules/unictype/property-pattern-syntax: New file.
29996         * modules/unictype/property-join-control: New file.
29997         * modules/unictype/property-grapheme-base: New file.
29998         * modules/unictype/property-grapheme-extend: New file.
29999         * modules/unictype/property-other-grapheme-extend: New file.
30000         * modules/unictype/property-grapheme-link: New file.
30001         * modules/unictype/property-bidi-control: New file.
30002         * modules/unictype/property-bidi-left-to-right: New file.
30003         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
30004         * modules/unictype/property-bidi-arabic-right-to-left: New file.
30005         * modules/unictype/property-bidi-european-digit: New file.
30006         * modules/unictype/property-bidi-eur-num-separator: New file.
30007         * modules/unictype/property-bidi-eur-num-terminator: New file.
30008         * modules/unictype/property-bidi-arabic-digit: New file.
30009         * modules/unictype/property-bidi-common-separator: New file.
30010         * modules/unictype/property-bidi-block-separator: New file.
30011         * modules/unictype/property-bidi-segment-separator: New file.
30012         * modules/unictype/property-bidi-whitespace: New file.
30013         * modules/unictype/property-bidi-non-spacing-mark: New file.
30014         * modules/unictype/property-bidi-boundary-neutral: New file.
30015         * modules/unictype/property-bidi-pdf: New file.
30016         * modules/unictype/property-bidi-embedding-or-override: New file.
30017         * modules/unictype/property-bidi-other-neutral: New file.
30018         * modules/unictype/property-hex-digit: New file.
30019         * modules/unictype/property-ascii-hex-digit: New file.
30020         * modules/unictype/property-ideographic: New file.
30021         * modules/unictype/property-unified-ideograph: New file.
30022         * modules/unictype/property-radical: New file.
30023         * modules/unictype/property-ids-binary-operator: New file.
30024         * modules/unictype/property-ids-trinary-operator: New file.
30025         * modules/unictype/property-zero-width: New file.
30026         * modules/unictype/property-space: New file.
30027         * modules/unictype/property-non-break: New file.
30028         * modules/unictype/property-iso-control: New file.
30029         * modules/unictype/property-format-control: New file.
30030         * modules/unictype/property-dash: New file.
30031         * modules/unictype/property-hyphen: New file.
30032         * modules/unictype/property-punctuation: New file.
30033         * modules/unictype/property-line-separator: New file.
30034         * modules/unictype/property-paragraph-separator: New file.
30035         * modules/unictype/property-quotation-mark: New file.
30036         * modules/unictype/property-sentence-terminal: New file.
30037         * modules/unictype/property-terminal-punctuation: New file.
30038         * modules/unictype/property-currency-symbol: New file.
30039         * modules/unictype/property-math: New file.
30040         * modules/unictype/property-other-math: New file.
30041         * modules/unictype/property-paired-punctuation: New file.
30042         * modules/unictype/property-left-of-pair: New file.
30043         * modules/unictype/property-combining: New file.
30044         * modules/unictype/property-composite: New file.
30045         * modules/unictype/property-decimal-digit: New file.
30046         * modules/unictype/property-numeric: New file.
30047         * modules/unictype/property-diacritic: New file.
30048         * modules/unictype/property-extender: New file.
30049         * modules/unictype/property-ignorable-control: New file.
30050         * modules/unictype/property-test: New file.
30051         * modules/unictype/property-byname: New file.
30052         * modules/unictype/property-all: New file.
30053         * modules/unictype/scripts: New file.
30054         * modules/unictype/scripts-all: New file.
30055         * modules/unictype/block-of: New file.
30056         * modules/unictype/block-test: New file.
30057         * modules/unictype/block-list: New file.
30058         * modules/unictype/block-all: New file.
30059         * modules/unictype/syntax-c-whitespace: New file.
30060         * modules/unictype/syntax-java-whitespace: New file.
30061         * modules/unictype/syntax-c-ident: New file.
30062         * modules/unictype/syntax-java-ident: New file.
30063         * modules/unictype/ctype-alnum: New file.
30064         * modules/unictype/ctype-alpha: New file.
30065         * modules/unictype/ctype-cntrl: New file.
30066         * modules/unictype/ctype-digit: New file.
30067         * modules/unictype/ctype-graph: New file.
30068         * modules/unictype/ctype-lower: New file.
30069         * modules/unictype/ctype-print: New file.
30070         * modules/unictype/ctype-punct: New file.
30071         * modules/unictype/ctype-space: New file.
30072         * modules/unictype/ctype-upper: New file.
30073         * modules/unictype/ctype-xdigit: New file.
30074         * modules/unictype/ctype-blank: New file.
30075         * lib/unictype/bidi_byname.c: New file.
30076         * lib/unictype/bidi_name.c: New file.
30077         * lib/unictype/bidi_of.c: New file.
30078         * lib/unictype/bidi_test.c: New file.
30079         * lib/unictype/bitmap.h: New file.
30080         * lib/unictype/block_test.c: New file.
30081         * lib/unictype/blocks.c: New file.
30082         * lib/unictype/categ_C.c: New file.
30083         * lib/unictype/categ_Cc.c: New file.
30084         * lib/unictype/categ_Cf.c: New file.
30085         * lib/unictype/categ_Cn.c: New file.
30086         * lib/unictype/categ_Co.c: New file.
30087         * lib/unictype/categ_Cs.c: New file.
30088         * lib/unictype/categ_L.c: New file.
30089         * lib/unictype/categ_Ll.c: New file.
30090         * lib/unictype/categ_Lm.c: New file.
30091         * lib/unictype/categ_Lo.c: New file.
30092         * lib/unictype/categ_Lt.c: New file.
30093         * lib/unictype/categ_Lu.c: New file.
30094         * lib/unictype/categ_M.c: New file.
30095         * lib/unictype/categ_Mc.c: New file.
30096         * lib/unictype/categ_Me.c: New file.
30097         * lib/unictype/categ_Mn.c: New file.
30098         * lib/unictype/categ_N.c: New file.
30099         * lib/unictype/categ_Nd.c: New file.
30100         * lib/unictype/categ_Nl.c: New file.
30101         * lib/unictype/categ_No.c: New file.
30102         * lib/unictype/categ_P.c: New file.
30103         * lib/unictype/categ_Pc.c: New file.
30104         * lib/unictype/categ_Pd.c: New file.
30105         * lib/unictype/categ_Pe.c: New file.
30106         * lib/unictype/categ_Pf.c: New file.
30107         * lib/unictype/categ_Pi.c: New file.
30108         * lib/unictype/categ_Po.c: New file.
30109         * lib/unictype/categ_Ps.c: New file.
30110         * lib/unictype/categ_S.c: New file.
30111         * lib/unictype/categ_Sc.c: New file.
30112         * lib/unictype/categ_Sk.c: New file.
30113         * lib/unictype/categ_Sm.c: New file.
30114         * lib/unictype/categ_So.c: New file.
30115         * lib/unictype/categ_Z.c: New file.
30116         * lib/unictype/categ_Zl.c: New file.
30117         * lib/unictype/categ_Zp.c: New file.
30118         * lib/unictype/categ_Zs.c: New file.
30119         * lib/unictype/categ_and.c: New file.
30120         * lib/unictype/categ_and_not.c: New file.
30121         * lib/unictype/categ_byname.c: New file.
30122         * lib/unictype/categ_name.c: New file.
30123         * lib/unictype/categ_none.c: New file.
30124         * lib/unictype/categ_of.c: New file.
30125         * lib/unictype/categ_or.c: New file.
30126         * lib/unictype/categ_test.c: New file.
30127         * lib/unictype/combining.c: New file.
30128         * lib/unictype/ctype_alnum.c: New file.
30129         * lib/unictype/ctype_alpha.c: New file.
30130         * lib/unictype/ctype_blank.c: New file.
30131         * lib/unictype/ctype_cntrl.c: New file.
30132         * lib/unictype/ctype_digit.c: New file.
30133         * lib/unictype/ctype_graph.c: New file.
30134         * lib/unictype/ctype_lower.c: New file.
30135         * lib/unictype/ctype_print.c: New file.
30136         * lib/unictype/ctype_punct.c: New file.
30137         * lib/unictype/ctype_space.c: New file.
30138         * lib/unictype/ctype_upper.c: New file.
30139         * lib/unictype/ctype_xdigit.c: New file.
30140         * lib/unictype/decdigit.c: New file.
30141         * lib/unictype/digit.c: New file.
30142         * lib/unictype/identsyntaxmap.h: New file.
30143         * lib/unictype/mirror.c: New file.
30144         * lib/unictype/numeric.c: New file.
30145         * lib/unictype/pr_alphabetic.c: New file.
30146         * lib/unictype/pr_ascii_hex_digit.c: New file.
30147         * lib/unictype/pr_bidi_arabic_digit.c: New file.
30148         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
30149         * lib/unictype/pr_bidi_block_separator.c: New file.
30150         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
30151         * lib/unictype/pr_bidi_common_separator.c: New file.
30152         * lib/unictype/pr_bidi_control.c: New file.
30153         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
30154         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
30155         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
30156         * lib/unictype/pr_bidi_european_digit.c: New file.
30157         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
30158         * lib/unictype/pr_bidi_left_to_right.c: New file.
30159         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
30160         * lib/unictype/pr_bidi_other_neutral.c: New file.
30161         * lib/unictype/pr_bidi_pdf.c: New file.
30162         * lib/unictype/pr_bidi_segment_separator.c: New file.
30163         * lib/unictype/pr_bidi_whitespace.c: New file.
30164         * lib/unictype/pr_byname.c: New file.
30165         * lib/unictype/pr_byname.gperf: New file.
30166         * lib/unictype/pr_combining.c: New file.
30167         * lib/unictype/pr_composite.c: New file.
30168         * lib/unictype/pr_currency_symbol.c: New file.
30169         * lib/unictype/pr_dash.c: New file.
30170         * lib/unictype/pr_decimal_digit.c: New file.
30171         * lib/unictype/pr_default_ignorable_code_point.c: New file.
30172         * lib/unictype/pr_deprecated.c: New file.
30173         * lib/unictype/pr_diacritic.c: New file.
30174         * lib/unictype/pr_extender.c: New file.
30175         * lib/unictype/pr_format_control.c: New file.
30176         * lib/unictype/pr_grapheme_base.c: New file.
30177         * lib/unictype/pr_grapheme_extend.c: New file.
30178         * lib/unictype/pr_grapheme_link.c: New file.
30179         * lib/unictype/pr_hex_digit.c: New file.
30180         * lib/unictype/pr_hyphen.c: New file.
30181         * lib/unictype/pr_id_continue.c: New file.
30182         * lib/unictype/pr_id_start.c: New file.
30183         * lib/unictype/pr_ideographic.c: New file.
30184         * lib/unictype/pr_ids_binary_operator.c: New file.
30185         * lib/unictype/pr_ids_trinary_operator.c: New file.
30186         * lib/unictype/pr_ignorable_control.c: New file.
30187         * lib/unictype/pr_iso_control.c: New file.
30188         * lib/unictype/pr_join_control.c: New file.
30189         * lib/unictype/pr_left_of_pair.c: New file.
30190         * lib/unictype/pr_line_separator.c: New file.
30191         * lib/unictype/pr_logical_order_exception.c: New file.
30192         * lib/unictype/pr_lowercase.c: New file.
30193         * lib/unictype/pr_math.c: New file.
30194         * lib/unictype/pr_non_break.c: New file.
30195         * lib/unictype/pr_not_a_character.c: New file.
30196         * lib/unictype/pr_numeric.c: New file.
30197         * lib/unictype/pr_other_alphabetic.c: New file.
30198         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
30199         * lib/unictype/pr_other_grapheme_extend.c: New file.
30200         * lib/unictype/pr_other_id_continue.c: New file.
30201         * lib/unictype/pr_other_id_start.c: New file.
30202         * lib/unictype/pr_other_lowercase.c: New file.
30203         * lib/unictype/pr_other_math.c: New file.
30204         * lib/unictype/pr_other_uppercase.c: New file.
30205         * lib/unictype/pr_paired_punctuation.c: New file.
30206         * lib/unictype/pr_paragraph_separator.c: New file.
30207         * lib/unictype/pr_pattern_syntax.c: New file.
30208         * lib/unictype/pr_pattern_white_space.c: New file.
30209         * lib/unictype/pr_private_use.c: New file.
30210         * lib/unictype/pr_punctuation.c: New file.
30211         * lib/unictype/pr_quotation_mark.c: New file.
30212         * lib/unictype/pr_radical.c: New file.
30213         * lib/unictype/pr_sentence_terminal.c: New file.
30214         * lib/unictype/pr_soft_dotted.c: New file.
30215         * lib/unictype/pr_space.c: New file.
30216         * lib/unictype/pr_terminal_punctuation.c: New file.
30217         * lib/unictype/pr_test.c: New file.
30218         * lib/unictype/pr_titlecase.c: New file.
30219         * lib/unictype/pr_unassigned_code_value.c: New file.
30220         * lib/unictype/pr_unified_ideograph.c: New file.
30221         * lib/unictype/pr_uppercase.c: New file.
30222         * lib/unictype/pr_variation_selector.c: New file.
30223         * lib/unictype/pr_white_space.c: New file.
30224         * lib/unictype/pr_xid_continue.c: New file.
30225         * lib/unictype/pr_xid_start.c: New file.
30226         * lib/unictype/pr_zero_width.c: New file.
30227         * lib/unictype/scripts.c: New file.
30228         * lib/unictype/sy_c_ident.c: New file.
30229         * lib/unictype/sy_c_whitespace.c: New file.
30230         * lib/unictype/sy_java_ident.c: New file.
30231         * lib/unictype/sy_java_whitespace.c: New file.
30232
30233         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
30234         Unicode 5.0.0.
30235         * lib/unictype/blocks.h: Likewise.
30236         * lib/unictype/categ_C.h: Likewise.
30237         * lib/unictype/categ_Cc.h: Likewise.
30238         * lib/unictype/categ_Cf.h: Likewise.
30239         * lib/unictype/categ_Cn.h: Likewise.
30240         * lib/unictype/categ_Co.h: Likewise.
30241         * lib/unictype/categ_Cs.h: Likewise.
30242         * lib/unictype/categ_L.h: Likewise.
30243         * lib/unictype/categ_Ll.h: Likewise.
30244         * lib/unictype/categ_Lm.h: Likewise.
30245         * lib/unictype/categ_Lo.h: Likewise.
30246         * lib/unictype/categ_Lt.h: Likewise.
30247         * lib/unictype/categ_Lu.h: Likewise.
30248         * lib/unictype/categ_M.h: Likewise.
30249         * lib/unictype/categ_Mc.h: Likewise.
30250         * lib/unictype/categ_Me.h: Likewise.
30251         * lib/unictype/categ_Mn.h: Likewise.
30252         * lib/unictype/categ_N.h: Likewise.
30253         * lib/unictype/categ_Nd.h: Likewise.
30254         * lib/unictype/categ_Nl.h: Likewise.
30255         * lib/unictype/categ_No.h: Likewise.
30256         * lib/unictype/categ_P.h: Likewise.
30257         * lib/unictype/categ_Pc.h: Likewise.
30258         * lib/unictype/categ_Pd.h: Likewise.
30259         * lib/unictype/categ_Pe.h: Likewise.
30260         * lib/unictype/categ_Pf.h: Likewise.
30261         * lib/unictype/categ_Pi.h: Likewise.
30262         * lib/unictype/categ_Po.h: Likewise.
30263         * lib/unictype/categ_Ps.h: Likewise.
30264         * lib/unictype/categ_S.h: Likewise.
30265         * lib/unictype/categ_Sc.h: Likewise.
30266         * lib/unictype/categ_Sk.h: Likewise.
30267         * lib/unictype/categ_Sm.h: Likewise.
30268         * lib/unictype/categ_So.h: Likewise.
30269         * lib/unictype/categ_Z.h: Likewise.
30270         * lib/unictype/categ_Zl.h: Likewise.
30271         * lib/unictype/categ_Zp.h: Likewise.
30272         * lib/unictype/categ_Zs.h: Likewise.
30273         * lib/unictype/categ_of.h: Likewise.
30274         * lib/unictype/combining.h: Likewise.
30275         * lib/unictype/ctype_alnum.h: Likewise.
30276         * lib/unictype/ctype_alpha.h: Likewise.
30277         * lib/unictype/ctype_blank.h: Likewise.
30278         * lib/unictype/ctype_cntrl.h: Likewise.
30279         * lib/unictype/ctype_digit.h: Likewise.
30280         * lib/unictype/ctype_graph.h: Likewise.
30281         * lib/unictype/ctype_lower.h: Likewise.
30282         * lib/unictype/ctype_print.h: Likewise.
30283         * lib/unictype/ctype_punct.h: Likewise.
30284         * lib/unictype/ctype_space.h: Likewise.
30285         * lib/unictype/ctype_upper.h: Likewise.
30286         * lib/unictype/ctype_xdigit.h: Likewise.
30287         * lib/unictype/decdigit.h: Likewise.
30288         * lib/unictype/digit.h: Likewise.
30289         * lib/unictype/mirror.h: Likewise.
30290         * lib/unictype/numeric.h: Likewise.
30291         * lib/unictype/pr_alphabetic.h: Likewise.
30292         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
30293         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
30294         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
30295         * lib/unictype/pr_bidi_block_separator.h: Likewise.
30296         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
30297         * lib/unictype/pr_bidi_common_separator.h: Likewise.
30298         * lib/unictype/pr_bidi_control.h: Likewise.
30299         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
30300         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
30301         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
30302         * lib/unictype/pr_bidi_european_digit.h: Likewise.
30303         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
30304         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
30305         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
30306         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
30307         * lib/unictype/pr_bidi_pdf.h: Likewise.
30308         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
30309         * lib/unictype/pr_bidi_whitespace.h: Likewise.
30310         * lib/unictype/pr_combining.h: Likewise.
30311         * lib/unictype/pr_composite.h: Likewise.
30312         * lib/unictype/pr_currency_symbol.h: Likewise.
30313         * lib/unictype/pr_dash.h: Likewise.
30314         * lib/unictype/pr_decimal_digit.h: Likewise.
30315         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
30316         * lib/unictype/pr_deprecated.h: Likewise.
30317         * lib/unictype/pr_diacritic.h: Likewise.
30318         * lib/unictype/pr_extender.h: Likewise.
30319         * lib/unictype/pr_format_control.h: Likewise.
30320         * lib/unictype/pr_grapheme_base.h: Likewise.
30321         * lib/unictype/pr_grapheme_extend.h: Likewise.
30322         * lib/unictype/pr_grapheme_link.h: Likewise.
30323         * lib/unictype/pr_hex_digit.h: Likewise.
30324         * lib/unictype/pr_hyphen.h: Likewise.
30325         * lib/unictype/pr_id_continue.h: Likewise.
30326         * lib/unictype/pr_id_start.h: Likewise.
30327         * lib/unictype/pr_ideographic.h: Likewise.
30328         * lib/unictype/pr_ids_binary_operator.h: Likewise.
30329         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
30330         * lib/unictype/pr_ignorable_control.h: Likewise.
30331         * lib/unictype/pr_iso_control.h: Likewise.
30332         * lib/unictype/pr_join_control.h: Likewise.
30333         * lib/unictype/pr_left_of_pair.h: Likewise.
30334         * lib/unictype/pr_line_separator.h: Likewise.
30335         * lib/unictype/pr_logical_order_exception.h: Likewise.
30336         * lib/unictype/pr_lowercase.h: Likewise.
30337         * lib/unictype/pr_math.h: Likewise.
30338         * lib/unictype/pr_non_break.h: Likewise.
30339         * lib/unictype/pr_not_a_character.h: Likewise.
30340         * lib/unictype/pr_numeric.h: Likewise.
30341         * lib/unictype/pr_other_alphabetic.h: Likewise.
30342         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
30343         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
30344         * lib/unictype/pr_other_id_continue.h: Likewise.
30345         * lib/unictype/pr_other_id_start.h: Likewise.
30346         * lib/unictype/pr_other_lowercase.h: Likewise.
30347         * lib/unictype/pr_other_math.h: Likewise.
30348         * lib/unictype/pr_other_uppercase.h: Likewise.
30349         * lib/unictype/pr_paired_punctuation.h: Likewise.
30350         * lib/unictype/pr_paragraph_separator.h: Likewise.
30351         * lib/unictype/pr_pattern_syntax.h: Likewise.
30352         * lib/unictype/pr_pattern_white_space.h: Likewise.
30353         * lib/unictype/pr_private_use.h: Likewise.
30354         * lib/unictype/pr_punctuation.h: Likewise.
30355         * lib/unictype/pr_quotation_mark.h: Likewise.
30356         * lib/unictype/pr_radical.h: Likewise.
30357         * lib/unictype/pr_sentence_terminal.h: Likewise.
30358         * lib/unictype/pr_soft_dotted.h: Likewise.
30359         * lib/unictype/pr_space.h: Likewise.
30360         * lib/unictype/pr_terminal_punctuation.h: Likewise.
30361         * lib/unictype/pr_titlecase.h: Likewise.
30362         * lib/unictype/pr_unassigned_code_value.h: Likewise.
30363         * lib/unictype/pr_unified_ideograph.h: Likewise.
30364         * lib/unictype/pr_uppercase.h: Likewise.
30365         * lib/unictype/pr_variation_selector.h: Likewise.
30366         * lib/unictype/pr_white_space.h: Likewise.
30367         * lib/unictype/pr_xid_continue.h: Likewise.
30368         * lib/unictype/pr_xid_start.h: Likewise.
30369         * lib/unictype/pr_zero_width.h: Likewise.
30370         * lib/unictype/scripts.h: Likewise.
30371         * lib/unictype/scripts_byname.gperf: Likewise.
30372         * lib/unictype/sy_c_ident.h: Likewise.
30373         * lib/unictype/sy_c_whitespace.h: Likewise.
30374         * lib/unictype/sy_java_ident.h: Likewise.
30375         * lib/unictype/sy_java_whitespace.h: Likewise.
30376
30377         * lib/unictype/Makefile: New file.
30378         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
30379         glibc.
30380         * lib/unictype/3level.h: New file, copied from glibc.
30381         * lib/unictype/3levelbit.h: New file.
30382
30383 2007-11-11  Bruno Haible  <bruno@clisp.org>
30384
30385         * modules/gperf: New file.
30386         * modules/iconv_open (Depends-on): Add it.
30387         (Makefile.am): Remove the GPERF definition.
30388
30389 2007-11-11  Bruno Haible  <bruno@clisp.org>
30390
30391         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
30392         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
30393
30394 2007-11-11  Bruno Haible  <bruno@clisp.org>
30395
30396         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
30397         (usage): Remove function.
30398
30399 2007-11-11  Bruno Haible  <bruno@clisp.org>
30400
30401         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
30402         gl_FUNC_CEILF_LIBS.
30403         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
30404         gl_FUNC_CEIL_LIBS.
30405         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
30406         gl_FUNC_CEILL_LIBS.
30407         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
30408         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
30409         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
30410
30411 2007-11-11  Bruno Haible  <bruno@clisp.org>
30412
30413         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
30414         roundf were declared but do not exist on functions.
30415         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
30416         roundl were declared but do not exist on functions.
30417         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
30418         HAVE_FLOORL_AND_CEILL, respectively.
30419         Needed for Sun C on Solaris 10.
30420
30421 2007-11-11  Bruno Haible  <bruno@clisp.org>
30422
30423         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
30424         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
30425         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
30426         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
30427         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
30428         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
30429         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
30430         HAVE_DECL_ROUNDF.
30431         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
30432         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
30433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
30434         of HAVE_DECL_ROUND*.
30435         * modules/math (Makefile.am): Update.
30436
30437 2007-11-10  Bruno Haible  <bruno@clisp.org>
30438
30439         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
30440         ptrdiff_t as m4/intl.m4.
30441
30442 2007-11-10  Jim Meyering  <meyering@redhat.com>
30443
30444         Avoid link failure for the argmatch test.
30445         * tests/test-argmatch.c (usage): Define function to avoid a link
30446         failure: argmatch_die requires a usage function.
30447
30448 2007-11-09  Bruno Haible  <bruno@clisp.org>
30449
30450         * doc/functions/snprintf.texi: Mention BeOS deficiency.
30451         * doc/functions/vsnprintf.texi: Likewise.
30452         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
30453         with a size argument < 2.
30454
30455 2007-11-09  Bruno Haible  <bruno@clisp.org>
30456
30457         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
30458         buffer. Fixes an inefficiency introduced on 2007-11-03.
30459
30460 2007-11-09  Bruno Haible  <bruno@clisp.org>
30461
30462         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
30463         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
30464
30465 2007-11-08  Jim Meyering  <meyering@redhat.com>
30466
30467         Change cache variable name prefix "jm_" to "gl_" everywhere.
30468         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
30469         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
30470         * m4/uptime.m4: s/gl_/jm_/
30471
30472 2007-11-07  Bruno Haible  <bruno@clisp.org>
30473
30474         Update to GNU gettext 0.17.
30475         * m4/intl.m4: Update to GNU gettext 0.17.
30476         * m4/po.m4: Likewise.
30477         * modules/gettext (Files): Remove m4/ulonglong.m4.
30478         (configure.ac): Require gettext infrastructure from version 0.17.
30479
30480 2007-11-06  Bruno Haible  <bruno@clisp.org>
30481
30482         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
30483         symbolic values are not defined in a public header.
30484         * lib/freadable.c (freadable) [QNX]: Likewise.
30485         * lib/freadahead.c (freadahead) [QNX]: Likewise.
30486         * lib/freading.c (freading) [QNX]: Likewise.
30487         * lib/fseterr.c (fseterr) [QNX]: Likewise.
30488         * lib/fwritable.c (fwritable) [QNX]: Likewise.
30489         * lib/fwriting.c (fwriting) [QNX]: Likewise.
30490         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
30491         Reported by Alain Magloire.
30492
30493         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
30494
30495 2007-11-05  Bruno Haible  <bruno@clisp.org>
30496
30497         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
30498         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
30499         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
30500         Reported by Eric Blake.
30501
30502 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30503             Bruno Haible  <bruno@clisp.org>
30504
30505         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
30506         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
30507         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
30508         (malloc): Undefine also before including <stdlib.h>.
30509         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
30510         Needed on OSF/1 4.0.
30511
30512 2007-11-05  Jim Meyering  <meyering@redhat.com>
30513
30514         git-version-gen: sync from coreutils.
30515         * build-aux/git-version-gen: Add comments.
30516         Change the first '-' to '.' in the snapshot version string,
30517         e.g., 6.9-377-08144 -> 6.9.377-08144
30518         Remove first parameter.
30519         Don't declare a version "-dirty" merely because a time
30520         stamp has changed.
30521
30522 2007-11-04  Bruno Haible  <bruno@clisp.org>
30523
30524         * lib/lock.h: Protect all macro definitions containing an 'if'
30525         statement through a "do { ... } while (0)".
30526         * lib/tls.h: Likewise.
30527
30528 2007-11-04  Bruno Haible  <bruno@clisp.org>
30529
30530         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
30531
30532 2007-11-04  Bruno Haible  <bruno@clisp.org>
30533
30534         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
30535         * modules/fprintf-posix (Depends-on): Add nocrash.
30536         * modules/snprintf-posix (Depends-on): Likewise.
30537         * modules/sprintf-posix (Depends-on): Likewise.
30538         * modules/vasnprintf-posix (Depends-on): Likewise.
30539         * modules/vasprintf-posix (Depends-on): Likewise.
30540         * modules/vfprintf-posix (Depends-on): Likewise.
30541         * modules/vsnprintf-posix (Depends-on): Likewise.
30542         * modules/vsprintf-posix (Depends-on): Likewise.
30543         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30544         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30545         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30546         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30547         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30548         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30549         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30550
30551 2007-11-04  Bruno Haible  <bruno@clisp.org>
30552
30553         * modules/nocrash: New file.
30554         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
30555         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
30556
30557 2007-11-04  Bruno Haible  <bruno@clisp.org>
30558
30559         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
30560         precision handling.
30561         * tests/test-vasprintf-posix.c (test_function): Likewise.
30562         * tests/test-snprintf-posix.h (test_function): Likewise.
30563         * tests/test-sprintf-posix.h (test_function): Likewise.
30564
30565         Fix *printf behaviour for large precisions on mingw and BeOS.
30566         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
30567         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
30568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
30569         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30571         gl_PRINTF_PRECISION and test its result. Invoke
30572         gl_PREREQ_VASNPRINTF_PRECISION.
30573         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30577         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30579         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30580         * doc/functions/fprintf.texi: Update.
30581         * doc/functions/printf.texi: Update.
30582         * doc/functions/snprintf.texi: Update.
30583         * doc/functions/sprintf.texi: Update.
30584         * doc/functions/vfprintf.texi: Update.
30585         * doc/functions/vprintf.texi: Update.
30586         * doc/functions/vsnprintf.texi: Update.
30587         * doc/functions/vsprintf.texi: Update.
30588
30589 2007-11-04  Bruno Haible  <bruno@clisp.org>
30590
30591         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
30592
30593 2007-11-04  Bruno Haible  <bruno@clisp.org>
30594
30595         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
30596         Reported by Sylvain Beucler <beuc@gnu.org>.
30597
30598 2007-11-03  Bruno Haible  <bruno@clisp.org>
30599
30600         * tests/test-fprintf-posix2.sh: New file.
30601         * tests/test-fprintf-posix2.c: New file.
30602         * modules/fprintf-posix-tests (Files): Add them.
30603         (TESTS): Add test-fprintf-posix2.sh.
30604         (configure.ac): Check for getrlimit and setrlimit.
30605         (check_PROGRAMS): Add test-fprintf-posix2.
30606
30607         * tests/test-printf-posix2.sh: New file.
30608         * tests/test-printf-posix2.c: New file.
30609         * modules/printf-posix-tests (Files): Add them.
30610         (TESTS): Add test-printf-posix2.sh.
30611         (configure.ac): Check for getrlimit and setrlimit.
30612         (check_PROGRAMS): Add test-printf-posix2.
30613
30614         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
30615         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
30616         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
30617         (decode_double): New function, copied from decode_long_double.
30618         (scale10_round_decimal_decoded): New function, extracted from
30619         scale10_round_decimal_long_double.
30620         (scale10_round_decimal_long_double): Use it.
30621         (scale10_round_decimal_double): New function.
30622         (floorlog10): New function.
30623         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30625         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30627         gl_PRINTF_ENOMEM and test its result. Invoke
30628         gl_PREREQ_VASNPRINTF_ENOMEM.
30629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30630         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30633         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30636         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
30637         * modules/snprintf-posix (Depends-on): Likewise.
30638         * modules/sprintf-posix (Depends-on): Likewise.
30639         * modules/vasnprintf-posix (Depends-on): Likewise.
30640         * modules/vasprintf-posix (Depends-on): Likewise.
30641         * modules/vfprintf-posix (Depends-on): Likewise.
30642         * modules/vsnprintf-posix (Depends-on): Likewise.
30643         * modules/vsprintf-posix (Depends-on): Likewise.
30644         * doc/functions/fprintf.texi: Update.
30645         * doc/functions/printf.texi: Update.
30646         * doc/functions/snprintf.texi: Update.
30647         * doc/functions/sprintf.texi: Update.
30648         * doc/functions/vfprintf.texi: Update.
30649         * doc/functions/vprintf.texi: Update.
30650         * doc/functions/vsnprintf.texi: Update.
30651         * doc/functions/vsprintf.texi: Update.
30652
30653 2007-11-03  Bruno Haible  <bruno@clisp.org>
30654
30655         * modules/frexp-nolibm-tests: New file.
30656
30657         * modules/frexp-nolibm: New file.
30658         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30659
30660 2007-11-03  Bruno Haible  <bruno@clisp.org>
30661
30662         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30663         value is C99 compliant.
30664         Needed for OSF/1 5.1.
30665
30666 2007-11-03  Bruno Haible  <bruno@clisp.org>
30667
30668         Fix out-of-memory handling of vasnprintf.
30669         * lib/printf-parse.c: Include <errno.h>.
30670         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30671         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30672         is already set.
30673
30674 2007-11-02  Eric Blake  <ebb9@byu.net>
30675
30676         Fix tests on cygwin.
30677         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30678
30679 2007-11-01  Bruno Haible  <bruno@clisp.org>
30680
30681         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30682         warning.
30683         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30684         needed for POSIX compatibility.
30685
30686 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30687
30688         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30689         for compatibility with GNU.
30690
30691 2007-11-01  Bruno Haible  <bruno@clisp.org>
30692
30693         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30694         (putenv): Renamed from rpl_putenv. Change argument type from
30695         'const char *' to 'char *'.
30696         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30697         of defining putenv in config.h, just set REPLACE_PUTENV.
30698         * modules/putenv (Depends-on): Add stdlib.
30699         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30700         (Include): Use <stdlib.h>.
30701         * lib/stdlib.in.h (putenv): New declaration.
30702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30703         REPLACE_PUTENV.
30704         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30705         REPLACE_PUTENV.
30706         Needed for MacOS X 10.5.0.
30707         Reported by Peter O'Gorman <peter@pogma.com>.
30708
30709 2007-11-01  Jim Meyering  <meyering@redhat.com>
30710
30711         Treat an empty date string exactly like "0".
30712         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30713         if the remaining date string (to be parsed) is empty, use "0".
30714         Reported by Mischa Molhoek and discussed in this thread:
30715         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30716
30717 2007-10-31  Bruno Haible  <bruno@clisp.org>
30718
30719         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30720         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30721         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30722         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30723         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30724         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30725
30726 2007-10-31  Bruno Haible  <bruno@clisp.org>
30727
30728         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30729         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30730         (AC_TYPE_LONG_LONG_INT): Use it.
30731         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30732         it as well.
30733         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30734         to m4/longlong.m4.
30735         * modules/stdint (Files): Remove m4/ulonglong.m4.
30736         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30737         m4/ulonglong.m4.
30738         * modules/strtoumax (Files): Likewise.
30739
30740 2007-10-30  Bruno Haible  <bruno@clisp.org>
30741
30742         * modules/xvasprintf-posix: New file.
30743         Suggested by Eric Blake.
30744
30745 2007-10-30  Bruno Haible  <bruno@clisp.org>
30746
30747         * modules/xprintf-posix-tests: New file.
30748         * tests/test-xprintf-posix.sh: New file.
30749         * tests/test-xprintf-posix.c: New file.
30750         * tests/test-xfprintf-posix.c: New file.
30751
30752         * modules/xprintf-posix: New file.
30753
30754 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30755
30756         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30757         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30758         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30759
30760 2007-10-29  Bruno Haible  <bruno@clisp.org>
30761
30762         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30763         contain the special marker '_cv_'.
30764         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30765         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30766         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30767         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30768         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30769         Reported by Ralf Wildenhues.
30770
30771 2007-10-29  Bruno Haible  <bruno@clisp.org>
30772
30773         * gnulib-tool (func_import): When --lgpl is not specified, set
30774         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30775         GPLv3.
30776         Reported by Simon Josefsson.
30777
30778 2007-10-28  Bruno Haible  <bruno@clisp.org>
30779
30780         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30781         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30782         HAVE_DECL_ISFINITE.
30783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30784         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30785         HAVE_DECL_ISFINITE.
30786
30787 2007-10-28  Bruno Haible  <bruno@clisp.org>
30788
30789         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30790         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30791
30792 2007-10-28  Bruno Haible  <bruno@clisp.org>
30793
30794         Fix link errors with Sun C 5.0 on Solaris 10.
30795         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30796         function is declared but not present in the compiler's libm.
30797         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30798         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30799         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30800         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30801         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30802         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30803         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30805         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30806         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30807         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30808         HAVE_DECL_FLOORL.
30809
30810 2007-10-28  Bruno Haible  <bruno@clisp.org>
30811
30812         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30813         gl_FUNC_FLOORL. Cache the result.
30814         (gl_FUNC_FLOORL): Use it.
30815         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30816         gl_FUNC_CEILL. Cache the result.
30817         (gl_FUNC_CEILL): Use it.
30818
30819         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30820         gl_FUNC_FLOOR. Cache the result.
30821         (gl_FUNC_FLOOR): Use it.
30822         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30823         gl_FUNC_CEIL. Cache the result.
30824         (gl_FUNC_CEIL): Use it.
30825
30826         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30827         gl_FUNC_FLOORF. Cache the result.
30828         (gl_FUNC_FLOORF): Use it.
30829         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30830         gl_FUNC_CEILF. Cache the result.
30831         (gl_FUNC_CEILF): Use it.
30832
30833 2007-10-28  Bruno Haible  <bruno@clisp.org>
30834
30835         * gnulib-tool: Allow specifying the LGPL version number through
30836         --lgpl=2 or --lgpl=3.
30837         (func_usage): Document --lgpl with argument.
30838         Handle --lgpl=... arguments.
30839         (func_import): Recognize also gl_LGPL calls with an argument. When
30840         --lgpl=2 is used and the module's license is just LGPL, report an
30841         error. Set sed_transform_lib_file according to the lgpl variable. In
30842         the generated files, use --lgpl or gl_LGPL invocations with argument,
30843         if necessary.
30844         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30845         an LGPv2+ license.
30846         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30847         gl_LGPL macro.
30848
30849 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30850             Bruno Haible  <bruno@clisp.org>
30851
30852         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30853         (u16_uctomb_aux): Likewise.
30854         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30855         !HAVE_INLINE.
30856         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30857
30858 2007-10-28  Bruno Haible  <bruno@clisp.org>
30859
30860         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30861         Invoke AM_GETTEXT_OPTION if it exists.
30862         * modules/vasprintf: Likewise.
30863         * modules/verror: Likewise.
30864         * modules/xprintf: Likewise.
30865         * modules/xvasprintf: Likewise.
30866
30867 2007-10-27  Ben Pfaff  <blp@gnu.org>
30868
30869         * lib/math.in.h: Define isfinite macro and prototypes for
30870         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30871         implementations.
30872         * m4/math_h.m4: New substitutions for isfinite module.
30873         * lib/isfinite.c: New file.
30874         * m4/isfinite.m4: New file.
30875         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30876         * modules/isfinite: New file.
30877         * modules/isfinite-tests: New file.
30878         * tests/tests-isfinite.c: New file.
30879         * doc/functions/isfinite.texi: Mention isfinite module.
30880         * MODULES.html.sh: Mention new module.
30881
30882 2007-10-27  Ben Pfaff  <blp@gnu.org>
30883
30884         Ralf Wildenhues reported that Tru64 4.0D declares the round
30885         functions but does not have definitions.
30886         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30887         cannot be found in any library, set the output variable to
30888         "missing" instead of "".
30889         * m4/round.m4: Also use our substitute if we cannot find round in
30890         any library, even if it is declared.
30891         * m4/roundf.m4: Likewise for roundf.
30892         * m4/roundl.m4: Likewise for roundl.
30893         * lib/math.in.h: Undefine roundf, round, roundl before defining
30894         their replacements, to allow for hypothetical systems where these
30895         may be defined as macros but not available in libraries.
30896
30897 2007-10-27  Bruno Haible  <bruno@clisp.org>
30898
30899         * doc/gnulib.texi: Invoke @firstparagraphindent.
30900         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30901         changes in gnulib.
30902         (Source changes): New section.
30903
30904 2007-10-26  Bruno Haible  <bruno@clisp.org>
30905
30906         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30907         borrowed from autoconf.
30908
30909 2007-10-26  Bruno Haible  <bruno@clisp.org>
30910
30911         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30912         strerror returned the empty string. Needed on HP-UX 11.00.
30913
30914 2007-10-24  Micah Cowan  <micah@cowan.name>
30915
30916         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30917         * build-aux/bootstrap: Remove support for now-unnecessary option,
30918         --cvs-user, and envvars CVS_USER, CVS_RSH.
30919
30920 2007-10-24  Jim Meyering  <meyering@redhat.com>
30921
30922         Avoid diagnostics from sha1sum when there is no cached checksum.
30923         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30924         if the po.s1 file hasn't been created yet.
30925
30926         * build-aux/bootstrap: Sync from coreutils:
30927         2007-10-24  Jim Meyering  <meyering@redhat.com>
30928         Get gnulib from the git repository, not from an obsolete cvs one.
30929         * build-aux/bootstrap: Suggestion from Micah Cowan.
30930         2007-10-04  Jim Meyering  <jim@meyering.net>
30931         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30932         (update_po_files): Work also when there are no .po files in po/.
30933
30934 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30935
30936         * README: Append ".git" to git and cg examples.
30937         Problem reported by Benoit Sigoure.
30938
30939 2007-10-23  Micah Cowan  <micah@cowan.name>
30940
30941         * users.txt: Add wget.
30942
30943 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30944
30945         Fix linking of some unistdio tests on FreeBSD.
30946         * modules/unistdio/u16-vsnprintf-tests
30947         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30948         * modules/unistdio/u16-vsprintf-tests
30949         (test_u16_vsnprintf1_LDADD): Likewise.
30950         * modules/unistdio/u32-vsnprintf-tests
30951         (test_u32_vsnprintf1_LDADD): Likewise.
30952         * modules/unistdio/u32-vsprintf-tests
30953         (test_u32_vsprintf1_LDADD): Likewise.
30954         * modules/unistdio/u8-vsnprintf-tests
30955         (test_u8_vsnprintf1_LDADD): Likewise.
30956         * modules/unistdio/u8-vsprintf-tests
30957         (test_u8_vsprintf1_LDADD): Likewise.
30958         * modules/unistdio/ulc-vsnprintf-tests
30959         (test_ulc_vsnprintf1_LDADD): Likewise.
30960         * modules/unistdio/ulc-vsprintf-tests
30961         (test_ulc_vsprintf1_LDADD): Likewise.
30962
30963         Fix linking of some uniconv tests on FreeBSD.
30964         * modules/uniconv/u16-conv-from-enc-tests
30965         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30966         * modules/uniconv/u16-conv-to-enc-tests
30967         (test_u16_conv_to_enc_LDADD): Likewise.
30968         * modules/uniconv/u16-strconv-from-enc-tests
30969         (test_u16_strconv_from_enc_LDADD): Likewise.
30970         * modules/uniconv/u16-strconv-to-enc-tests
30971         (test_u16_strconv_to_enc_LDADD): Likewise.
30972         * modules/uniconv/u32-conv-from-enc-tests
30973         (test_u32_conv_from_enc_LDADD): Likewise.
30974         * modules/uniconv/u32-conv-to-enc-tests
30975         (test_u32_conv_to_enc_LDADD): Likewise.
30976         * modules/uniconv/u32-strconv-from-enc-tests
30977         (test_u32_strconv_from_enc_LDADD): Likewise.
30978         * modules/uniconv/u32-strconv-to-enc-tests
30979         (test_u32_strconv_to_enc_LDADD): Likewise.
30980         * modules/uniconv/u8-conv-from-enc-tests
30981         (test_u8_conv_from_enc_LDADD): Likewise.
30982         * modules/uniconv/u8-conv-to-enc-tests
30983         (test_u8_conv_to_enc_LDADD): Likewise.
30984         * modules/uniconv/u8-strconv-from-enc-tests
30985         (test_u8_strconv_from_enc_LDADD): Likewise.
30986         * modules/uniconv/u8-strconv-to-enc-tests
30987         (test_u8_strconv_to_enc_LDADD): Likewise.
30988
30989 2007-10-22  Bruno Haible  <bruno@clisp.org>
30990
30991         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30992         size.
30993
30994 2007-10-22  Eric Blake  <ebb9@byu.net>
30995
30996         Tweak x*printf documentation.
30997         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30998         variable name and comments.
30999         Suggested by Bruno Haible.
31000
31001 2007-10-22  Bruno Haible  <bruno@clisp.org>
31002
31003         * lib/acl.c (copy_acl): Fix file name in comment.
31004
31005 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
31006
31007         Fix Tru64 problem with stdbool.h.
31008         * lib/stdbool.in.h (false, true):
31009         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
31010         Don't declare as an enum in this situation; it runs afoul of Tru64.
31011         Problem reported by Steven M. Schweda in
31012         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
31013
31014 2007-10-22  Eric Blake  <ebb9@byu.net>
31015
31016         Also wrap vf?printf.
31017         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
31018         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
31019         (xvprintf, xvfprintf): New functions.
31020
31021 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31022
31023         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
31024         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
31025
31026         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
31027         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
31028
31029 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
31030
31031         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
31032         by Bruno Haible.
31033
31034 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31035
31036         * lib/getloadavg.c
31037         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
31038         Undef `sys' after including sys/table.h, for Tru64 4.0D.
31039
31040         * tests/test-i-ring.c: Work for C89.
31041
31042 2007-10-22  Bruno Haible  <bruno@clisp.org>
31043
31044         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
31045         -1u, in preprocessor expression, so that we don't test for the bug
31046         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
31047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
31048
31049 2007-10-22  Eric Blake  <ebb9@byu.net>
31050
31051         * tests/test-yesno.sh: Silence stderr during test.
31052
31053 2007-10-22  Simon Josefsson  <simon@josefsson.org>
31054
31055         * modules/crypto/gc-camellia: New file.
31056
31057         * m4/gc-camellia.m4: New file.
31058
31059         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
31060
31061         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
31062
31063 2007-10-22  Simon Josefsson  <simon@josefsson.org>
31064
31065         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
31066         --help to stdout.  Reported by sms@antinode.org (Steven
31067         M. Schweda).
31068
31069 2007-10-22  Simon Josefsson  <simon@josefsson.org>
31070
31071         * users.txt: Fix link to libksba.
31072
31073 2007-10-21  Ben Pfaff  <blp@gnu.org>
31074
31075         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
31076         round.c roundf implementation that depends on floorf and ceilf to
31077         be tested unconditionally.
31078
31079 2007-10-21  Ben Pfaff  <blp@gnu.org>
31080
31081         * m4/check-libm-func.m4: Removed.
31082         * m4/check-math-lib.m4: New file.
31083         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
31084         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
31085         definition and lack of AC_LIBOBJ([roundf]).
31086         * m4/roundl.m4: Ditto, and similarly for roundl.
31087         * modules/round: Reference new m4 file.
31088         * modules/roundf: Ditto.
31089         * modules/roundl: Ditto.
31090         * tests/test-round2.c (main): Use ROUND instead of round.
31091         Bug report from Bruno Haible.
31092
31093 2007-10-21  Bruno Haible  <bruno@clisp.org>
31094
31095         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
31096         context.
31097
31098 2007-10-21  Bruno Haible  <bruno@clisp.org>
31099
31100         * tests/test-wcwidth.c (main): Allow negative result for some control
31101         characters.
31102
31103         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
31104         Needed on OSF/1 5.1.
31105
31106 2007-10-21  Bruno Haible  <bruno@clisp.org>
31107
31108         * tests/test-floorf1.c: Include isnanf.h.
31109         (main): Use isnanf() instead of isnan().
31110         * tests/test-ceilf1.c: Include isnanf.h.
31111         (main): Use isnanf() instead of isnan().
31112         * tests/test-truncf1.c: Include isnanf.h.
31113         (main): Use isnanf() instead of isnan().
31114         * tests/test-roundf1.c: Include isnanf.h.
31115         (main): Use isnanf() instead of isnan().
31116
31117 2007-10-21  Eric Blake  <ebb9@byu.net>
31118
31119         * users.txt: Update URL for m4.
31120
31121 2007-10-21  Bruno Haible  <bruno@clisp.org>
31122
31123         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
31124
31125 2007-10-21  Bruno Haible  <bruno@clisp.org>
31126
31127         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
31128         Git's management files if the CVS files are not present.
31129
31130 2007-10-20  Bruno Haible  <bruno@clisp.org>
31131
31132         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
31133         gcc-3.4.x.
31134
31135 2007-10-20  Ben Pfaff  <blp@gnu.org>
31136
31137         * lib/math.in.h: Declare round, roundf, roundl if we are providing
31138         implementations.
31139         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
31140         * lib/round.c: New file.
31141         * lib/roundf.c: New file.
31142         * lib/roundl.c: New file.
31143         * m4/round.m4: New file.
31144         * m4/roundf.m4: New file.
31145         * m4/roundl.m4: New file.
31146         * m4/check-libm-func-m4: New file.
31147         * modules/math: Replace round, roundf, roundl related @VARS@ in
31148         math.in.h.
31149         * modules/round: New file.
31150         * modules/round-tests: New file.
31151         * modules/roundf: New file.
31152         * modules/roundf-tests: New file.
31153         * modules/roundl: New file.
31154         * modules/roundl-tests: New file.
31155         * tests/test-round1.c: New file.
31156         * tests/test-round2.c: New file.
31157         * tests/test-roundf1.c: New file.
31158         * tests/test-roundf2.c: New file.
31159         * tests/test-roundl.c: New file.
31160         * doc/functions/round.texi: Mention round module.
31161         * doc/functions/roundf.texi: Mention roundf module.
31162         * doc/functions/roundl.texi: Mention roundl module.
31163         * MODULES.html.sh: Mention new modules.
31164         Thanks to Bruno Haible for suggestions.
31165
31166 2007-10-20  Jim Meyering  <meyering@redhat.com>
31167
31168         * lib/xprintf.c: Include <config.h> unconditionally.
31169
31170         Change xprintf's license to GPL.
31171         * modules/xprintf (License): s/LGPL/GPL/, since this module
31172         depends on modules (exit and exitfail) which are GPL.
31173         Suggestion from Bruno Haible.
31174
31175         xprintf fixes.
31176         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
31177         Use a clearer diagnostic.
31178         Patch from Bruno Haible.
31179
31180 2007-10-20  Bruno Haible  <bruno@clisp.org>
31181
31182         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
31183         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
31184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31185
31186 2007-10-20  Bruno Haible  <bruno@clisp.org>
31187
31188         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
31189         precision in the comparison result > x - 1 or similar.
31190         * tests/test-ceilf2.c (correct_result_p): Likewise.
31191         * tests/test-truncf2.c (correct_result_p): Likewise.
31192         * tests/test-trunc2.c (correct_result_p): Likewise.
31193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31194
31195 2007-10-20  Bruno Haible  <bruno@clisp.org>
31196
31197         * modules/ceil: New file.
31198         * m4/ceil.m4: New file.
31199         * doc/functions/ceil.texi: Mention the 'ceil' module.
31200
31201 2007-10-20  Bruno Haible  <bruno@clisp.org>
31202
31203         * modules/floor: New file.
31204         * m4/floor.m4: New file.
31205         * doc/functions/floor.texi: Mention the 'floor' module.
31206
31207 2007-10-20  Bruno Haible  <bruno@clisp.org>
31208
31209         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
31210         of %a.
31211         * modules/floorf-tests (Depends-on): Likewise.
31212         * modules/truncf-tests (Depends-on): Likewise.
31213         * modules/trunc-tests (Depends-on): Likewise.
31214         Reported by Ben Pfaff.
31215
31216 2007-10-19  Jim Meyering  <meyering@redhat.com>
31217
31218         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
31219         Don't bother testing specific errno values.  Just test ferror.
31220
31221         New module: xprintf
31222         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
31223
31224 2007-10-19  Bruno Haible  <bruno@clisp.org>
31225
31226         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
31227         syntax.
31228         * modules/javaexec (Makefile.am): Likewise.
31229         * modules/relocatable-prog (Makefile.am): Likewise.
31230         Suggested by Jim Meyering.
31231
31232 2007-10-18  Bruno Haible  <bruno@clisp.org>
31233
31234         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
31235         Reported by Jim Meyering.
31236
31237 2007-10-18  Eric Blake  <ebb9@byu.net>
31238
31239         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
31240
31241 2007-10-18  Bruno Haible  <bruno@clisp.org>
31242
31243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
31244         the format string into writable memory. Needed in Fortify conditions.
31245
31246 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
31247             Bruno Haible  <bruno@clisp.org>
31248
31249         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
31250         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
31251         * modules/trim (Depends-on): Add mbchar.
31252         (configure.ac): Add gl_FUNC_MBRTOWC.
31253         (Makefile.am): Augment lib_SOURCES.
31254
31255 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
31256
31257         Modify glob.c to use fstatat and dirfd, to simplify it.
31258         Suggested by Eric Blake.
31259         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
31260         Don't include <stdbool.h>; not used.
31261         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
31262         (link_exists_p): Simplify implementation, since we can now assume
31263         dirfd and fstatat.
31264         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
31265
31266 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31267
31268         * gnulib-tool (func_get_dependencies): Fix sed script to
31269         match only tests.
31270
31271 2007-10-17  Bruno Haible  <bruno@clisp.org>
31272
31273         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
31274         allow locale names without encoding suffix.
31275         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31276         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31277
31278 2007-10-16  Bruno Haible  <bruno@clisp.org>
31279
31280         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
31281         * lib/getgroups.c (getgroups): Likewise.
31282         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
31283
31284 2007-10-16  Bruno Haible  <bruno@clisp.org>
31285
31286         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
31287         * modules/malloc-posix (License): Likewise.
31288         * modules/realloc-posix (License): Likewise.
31289         * modules/calloc-posix (License): Likewise.
31290         * modules/intprops (License): Change from GPL to LGPL, with
31291         Paul Eggert's approval.
31292
31293 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31294
31295         Merge glibc changes into lib/glob.c.
31296
31297         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
31298         2007-10-15 04:59:03 UTC.  Here are the changes:
31299
31300         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
31301
31302         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
31303
31304         * lib/glob.c: Add some branch prediction throughout.
31305
31306         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
31307
31308         [BZ #5103]
31309         * lib/glob.c (glob): Recognize patterns starting \/.
31310
31311         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
31312
31313         [BZ #3996]
31314         * lib/glob.c (attribute_hidden): Define if not defined.
31315         (glob): Unescape dirname, filename or username when needed and not
31316         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
31317         is NULL.  Handle unescaped [ in pattern without closing ].
31318         Don't pass GLOB_CHECK down to recursive glob for directories.
31319         (__glob_pattern_type): New function.
31320         (__glob_pattern_p): Implement using __glob_pattern_type.
31321         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
31322         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
31323         Remove unreachable code.
31324
31325         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
31326
31327         * lib/glob.c (glob_in_dir): Add some comments and asserts to
31328         explain why there are no leaks.
31329
31330         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
31331
31332         [BZ #3253]
31333         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
31334         time, rather allocate increasingly bigger arrays of pointers, if
31335         possible with alloca, if too large with malloc.
31336
31337 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31338
31339         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
31340         Problem reported by H.Merijn Brand in
31341         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
31342         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
31343         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
31344
31345 2007-10-15  Bruno Haible  <bruno@clisp.org>
31346
31347         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
31348         with explicit rpl_ prefix.
31349         * lib/fopen.c (fopen): Likewise.
31350         * lib/freopen.c (freopen): Likewise.
31351         * lib/iconv.c (iconv): Likewise.
31352         * lib/iconv_close.c (iconv_close): Likewise.
31353
31354 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31355
31356         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
31357
31358 2007-10-15  Bruno Haible  <bruno@clisp.org>
31359
31360         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
31361         <stddef.h> instead of <stdlib.h> since we only need NULL.
31362         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31363
31364 2007-10-15  Bruno Haible  <bruno@clisp.org>
31365
31366         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
31367         Replace paragraph talking about LIBOBJS.
31368         Reported by Colin Watson <cjwatson@debian.org>.
31369
31370 2007-10-15  Bruno Haible  <bruno@clisp.org>
31371
31372         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
31373         <stdlib.h> before using NULL.
31374
31375 2007-10-15  Simon Josefsson  <simon@josefsson.org>
31376
31377         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
31378         Reported by Albert Chin <china@thewrittenword.com>.
31379
31380 2007-10-14  Bruno Haible  <bruno@clisp.org>
31381
31382         * modules/iconv_open-utf-tests: New file.
31383         * tests/test-iconv-utf.c: New file.
31384
31385         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
31386         * modules/iconv_open-utf: New file.
31387         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
31388         (iconv, iconv_close): New declarations.
31389         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
31390         be defined.
31391         (iconv_open): Add special handling of conversion between UTF-8 and
31392         UTF-{16,32}{BE,LE}.
31393         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
31394         * lib/iconv_close.c: New file.
31395         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
31396         gl_FUNC_ICONV_OPEN.
31397         (gl_FUNC_ICONV_OPEN): Use it.
31398         (gl_FUNC_ICONV_OPEN_UTF): New macro.
31399         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
31400         and REPLACE_ICONV_UTF.
31401         * modules/iconv_open (Depends-on): Add c-strcase.
31402         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
31403         ICONV_CONST.
31404         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
31405
31406 2007-10-13  Albert Chin  <china@thewrittenword.com>
31407             Bruno Haible  <bruno@clisp.org>
31408
31409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
31410         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
31411
31412 2007-10-13  Bruno Haible  <bruno@clisp.org>
31413
31414         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
31415         defined, use the ISO C99 inline semantics.
31416         * lib/argp.h (ARGP_EI): Likewise.
31417
31418 2007-10-13  Bruno Haible  <bruno@clisp.org>
31419
31420         Handle 'inline' change in gcc 4.3.0.
31421         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
31422         argp_fmtstream_write, argp_fmtstream_set_lmargin,
31423         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
31424         argp_fmtstream_point): Disable 'extern' declaration if the function
31425         definition is going to be provided inline.
31426         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
31427         semantics, not the ISO C99 inline semantics.
31428         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
31429         'extern' declaration if the function definition is going to be provided
31430         inline.
31431         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
31432         the GNU C inline semantics, not the ISO C99 inline semantics. With
31433         GCC 4.2, avoid a warning.
31434
31435 2007-10-13  Bruno Haible  <bruno@clisp.org>
31436
31437         * lib/freading.h (freading): Enable the use of __freading for
31438         glibc >= 2.7.
31439         * lib/freading.c (freading): Likewise.
31440
31441 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31442
31443         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
31444         "warning: C99 inline functions are not supported; using GNU89".
31445
31446 2007-10-12  Bruno Haible  <bruno@clisp.org>
31447
31448         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
31449         of 2.
31450         * tests/test-ceilf2.c: New file.
31451         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
31452
31453         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
31454         * modules/ceilf-tests: Update.
31455
31456 2007-10-12  Bruno Haible  <bruno@clisp.org>
31457
31458         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
31459         of 2.
31460         * tests/test-floorf2.c: New file.
31461         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
31462
31463         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
31464         * modules/floorf-tests: Update.
31465
31466 2007-10-12  Bruno Haible  <bruno@clisp.org>
31467
31468         * tests/test-trunc2.c: New file.
31469         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
31470
31471         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
31472         * modules/trunc-tests: Update.
31473
31474 2007-10-12  Bruno Haible  <bruno@clisp.org>
31475
31476         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
31477         of 2.
31478         * tests/test-truncf2.c: New file.
31479         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
31480
31481         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
31482         * modules/truncf-tests: Update.
31483
31484 2007-10-11  Eric Blake  <ebb9@byu.net>
31485
31486         Don't claim strerror is broken on Interix.
31487         * doc/functions/strerror.texi (strerror): Known broken systems are
31488         now Solaris 8, and not Interix.
31489         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
31490         Interix on cross-compile.
31491         Reported by Martin Koeppe in
31492         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
31493
31494 2007-10-11  Bruno Haible  <bruno@clisp.org>
31495
31496         * modules/i-ring-tests: New file.
31497         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
31498         instead of assert.
31499
31500 2007-10-11  Bruno Haible  <bruno@clisp.org>
31501
31502         * modules/filenamecat-tests: New file.
31503         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
31504         * lib/filenamecat.c: Remove test code.
31505
31506 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31507
31508         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
31509
31510         * lib/strerror.c: Include <string.h> always, to test interface,
31511         and to remove the need for the dummy.
31512         Include intprops.h to compute width instead of doing it ourselves
31513         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
31514         (strerror): Define it to return NULL if there's no system strerror.
31515         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
31516         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
31517         ancient pre-strerror Unix systems well any more.  Saying "unknown
31518         system error" is enough.
31519         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
31520         simpler strerror.c implementation.
31521         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
31522         Simplify the tests to reflect the simpler strerror implementation.
31523         * modules/strerror (Depends-on): Add intprops.
31524
31525 2007-10-09  Eric Blake  <ebb9@byu.net>
31526
31527         Silence test-fpending.
31528         * modules/fpending-tests (Files): Add wrapper script.
31529         * tests/test-fpending.sh: New file.
31530
31531 2007-10-09  Bruno Haible  <bruno@clisp.org>
31532
31533         * MODULES.html.sh (func_module): Don't create a hyperlink for
31534         function names like 'printf_frexp'.
31535         (Misc): Add crc, memxor.
31536         (Characteristics of floating types): New section.
31537         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
31538         isnanf-nolibm, signbit, trunc, truncf, truncl.
31539         (Enhancements for ISO C 99 functions): New subsection Input/output.
31540         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
31541         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
31542         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
31543         (Compatibility checks for POSIX:2001 functions): Add clock-time.
31544         (Enhancements for POSIX:2001 functions): Add chdir-long.
31545         (File system functions): Add areadlink, chdir-safer, read-file.
31546         Remove cycle-check.
31547         (File system as inode set): New section.
31548         (Date and time): Add gethrxtime.
31549         (Multithreading): Add openmp.
31550         (Internationalization functions): Add localename.
31551         (Unicode string functions): Add unistr/u*-mbsnlen.
31552         (Support for maintaining and releasing projects): Add git-version-gen.
31553         (Lone files): Remove directories.
31554
31555 2007-10-08  Ben Pfaff  <blp@gnu.org>
31556
31557         * lib/xmalloca.h: Fix typo in comment.
31558
31559 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31560
31561         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
31562         when avoiding problems with integer overflow.  Use a portable test
31563         instead.
31564
31565 2007-10-08  Simon Josefsson  <simon@josefsson.org>
31566
31567         * modules/dummy (License): Change to LGPLv2+.
31568         * modules/float (License): Likewise
31569         * modules/realloc (License): Likewise
31570         * modules/stdlib (License): Likewise
31571
31572 2007-10-07  Bruno Haible  <bruno@clisp.org>
31573
31574         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
31575         * floor.c (TWO_MANT_DIG): Likewise.
31576         * ceil.c (TWO_MANT_DIG): Likewise.
31577         Reported by Ben Pfaff.
31578
31579 2007-10-07  Bruno Haible  <bruno@clisp.org>
31580
31581         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
31582         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
31583         * lib/frexp.c (FUNC): Likewise.
31584         * lib/printf-frexp.h (printf_frexp): Likewise.
31585         * lib/printf-frexpl.h (printf_frexpl): Likewise.
31586         * lib/printf-frexp.c (FUNC): Likewise.
31587         Suggested by Jim Meyering.
31588
31589 2007-10-07  Jim Meyering  <meyering@redhat.com>
31590
31591         Make xnanosleep's integer overflow test more robust.
31592         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
31593         so that gcc-4.3.0 doesn't optimize away this test for overflow.
31594
31595 2007-10-07  Bruno Haible  <bruno@clisp.org>
31596
31597         * NEWS: Mention the license change.
31598
31599         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
31600         abbreviations in the modules files.
31601
31602         Change copyright notice from GPLv2+ to GPLv3+.
31603         * README: Change copyright notice.
31604         * MODULES.html.sh: Likewise.
31605         * build-aux/bootstrap.conf: Likewise.
31606         * build-aux/config.libpath: Likewise.
31607         * build-aux/csharpcomp.sh.in: Likewise.
31608         * build-aux/csharpexec.sh.in: Likewise.
31609         * build-aux/install-reloc: Likewise.
31610         * build-aux/javacomp.sh.in: Likewise.
31611         * build-aux/javaexec.sh.in: Likewise.
31612         * build-aux/ldd.sh.in: Likewise.
31613         * build-aux/reloc-ldflags: Likewise.
31614         * build-aux/relocatable.sh.in: Likewise.
31615         * build-aux/x-to-1.in: Likewise.
31616         * check-module: Likewise.
31617         * config/srclistvars.sh: Likewise.
31618         * gnulib-tool: Likewise.
31619         * lib/acl-internal.h: Likewise.
31620         * lib/acl.c: Likewise.
31621         * lib/acl.h: Likewise.
31622         * lib/acl_entries.c: Likewise.
31623         * lib/areadlink-with-size.c: Likewise.
31624         * lib/areadlink.c: Likewise.
31625         * lib/areadlink.h: Likewise.
31626         * lib/argmatch.c: Likewise.
31627         * lib/argmatch.h: Likewise.
31628         * lib/argp-ba.c: Likewise.
31629         * lib/argp-eexst.c: Likewise.
31630         * lib/argp-fmtstream.c: Likewise.
31631         * lib/argp-fmtstream.h: Likewise.
31632         * lib/argp-fs-xinl.c: Likewise.
31633         * lib/argp-help.c: Likewise.
31634         * lib/argp-namefrob.h: Likewise.
31635         * lib/argp-parse.c: Likewise.
31636         * lib/argp-pin.c: Likewise.
31637         * lib/argp-pv.c: Likewise.
31638         * lib/argp-pvh.c: Likewise.
31639         * lib/argp-xinl.c: Likewise.
31640         * lib/argp.h: Likewise.
31641         * lib/at-func.c: Likewise.
31642         * lib/atanl.c: Likewise.
31643         * lib/backupfile.c: Likewise.
31644         * lib/backupfile.h: Likewise.
31645         * lib/basename.c: Likewise.
31646         * lib/binary-io.h: Likewise.
31647         * lib/byteswap.in.h: Likewise.
31648         * lib/c-stack.c: Likewise.
31649         * lib/c-stack.h: Likewise.
31650         * lib/c-strcasestr.c: Likewise.
31651         * lib/c-strcasestr.h: Likewise.
31652         * lib/c-strstr.c: Likewise.
31653         * lib/c-strstr.h: Likewise.
31654         * lib/c-strtod.c: Likewise.
31655         * lib/calloc.c: Likewise.
31656         * lib/canon-host.c: Likewise.
31657         * lib/canon-host.h: Likewise.
31658         * lib/canonicalize-lgpl.c: Likewise.
31659         * lib/canonicalize.c: Likewise.
31660         * lib/canonicalize.h: Likewise.
31661         * lib/ceil.c: Likewise.
31662         * lib/ceilf.c: Likewise.
31663         * lib/ceill.c: Likewise.
31664         * lib/chdir-long.c: Likewise.
31665         * lib/chdir-long.h: Likewise.
31666         * lib/chdir-safer.c: Likewise.
31667         * lib/chdir-safer.h: Likewise.
31668         * lib/chown.c: Likewise.
31669         * lib/classpath.c: Likewise.
31670         * lib/classpath.h: Likewise.
31671         * lib/clean-temp.c: Likewise.
31672         * lib/clean-temp.h: Likewise.
31673         * lib/cloexec.c: Likewise.
31674         * lib/close-stream.c: Likewise.
31675         * lib/closein.c: Likewise.
31676         * lib/closein.h: Likewise.
31677         * lib/closeout.c: Likewise.
31678         * lib/closeout.h: Likewise.
31679         * lib/concat-filename.c: Likewise.
31680         * lib/copy-file.c: Likewise.
31681         * lib/copy-file.h: Likewise.
31682         * lib/count-one-bits.h: Likewise.
31683         * lib/crc.c: Likewise.
31684         * lib/crc.h: Likewise.
31685         * lib/creat-safer.c: Likewise.
31686         * lib/csharpcomp.c: Likewise.
31687         * lib/csharpcomp.h: Likewise.
31688         * lib/csharpexec.c: Likewise.
31689         * lib/csharpexec.h: Likewise.
31690         * lib/cycle-check.c: Likewise.
31691         * lib/cycle-check.h: Likewise.
31692         * lib/diacrit.c: Likewise.
31693         * lib/diacrit.h: Likewise.
31694         * lib/diffseq.h: Likewise.
31695         * lib/dirchownmod.c: Likewise.
31696         * lib/dirent.in.h: Likewise.
31697         * lib/dirfd.c: Likewise.
31698         * lib/dirfd.h: Likewise.
31699         * lib/dirname.c: Likewise.
31700         * lib/dirname.h: Likewise.
31701         * lib/dummy.c: Likewise.
31702         * lib/dup-safer.c: Likewise.
31703         * lib/dup2.c: Likewise.
31704         * lib/eealloc.h: Likewise.
31705         * lib/error.c: Likewise.
31706         * lib/error.h: Likewise.
31707         * lib/euidaccess.c: Likewise.
31708         * lib/exclude.c: Likewise.
31709         * lib/exclude.h: Likewise.
31710         * lib/execute.c: Likewise.
31711         * lib/execute.h: Likewise.
31712         * lib/exitfail.c: Likewise.
31713         * lib/exitfail.h: Likewise.
31714         * lib/expl.c: Likewise.
31715         * lib/fatal-signal.c: Likewise.
31716         * lib/fatal-signal.h: Likewise.
31717         * lib/fbufmode.c: Likewise.
31718         * lib/fbufmode.h: Likewise.
31719         * lib/fchdir.c: Likewise.
31720         * lib/fchmodat.c: Likewise.
31721         * lib/fchownat.c: Likewise.
31722         * lib/fcntl--.h: Likewise.
31723         * lib/fcntl-safer.h: Likewise.
31724         * lib/fcntl.in.h: Likewise.
31725         * lib/fd-safer.c: Likewise.
31726         * lib/fflush.c: Likewise.
31727         * lib/file-has-acl.c: Likewise.
31728         * lib/file-set.c: Likewise.
31729         * lib/file-type.c: Likewise.
31730         * lib/file-type.h: Likewise.
31731         * lib/fileblocks.c: Likewise.
31732         * lib/filemode.c: Likewise.
31733         * lib/filemode.h: Likewise.
31734         * lib/filename.h: Likewise.
31735         * lib/filenamecat.c: Likewise.
31736         * lib/filenamecat.h: Likewise.
31737         * lib/findprog.c: Likewise.
31738         * lib/findprog.h: Likewise.
31739         * lib/float.in.h: Likewise.
31740         * lib/floor.c: Likewise.
31741         * lib/floorf.c: Likewise.
31742         * lib/floorl.c: Likewise.
31743         * lib/fopen-safer.c: Likewise.
31744         * lib/fopen.c: Likewise.
31745         * lib/fpending.c: Likewise.
31746         * lib/fpending.h: Likewise.
31747         * lib/fprintf.c: Likewise.
31748         * lib/fprintftime.h: Likewise.
31749         * lib/fpucw.h: Likewise.
31750         * lib/fpurge.c: Likewise.
31751         * lib/fpurge.h: Likewise.
31752         * lib/freadable.c: Likewise.
31753         * lib/freadable.h: Likewise.
31754         * lib/freadahead.c: Likewise.
31755         * lib/freadahead.h: Likewise.
31756         * lib/freading.c: Likewise.
31757         * lib/freading.h: Likewise.
31758         * lib/free.c: Likewise.
31759         * lib/freopen.c: Likewise.
31760         * lib/frexp.c: Likewise.
31761         * lib/frexpl.c: Likewise.
31762         * lib/fseek.c: Likewise.
31763         * lib/fseterr.c: Likewise.
31764         * lib/fseterr.h: Likewise.
31765         * lib/fstatat.c: Likewise.
31766         * lib/fstrcmp.c: Likewise.
31767         * lib/fstrcmp.h: Likewise.
31768         * lib/fsusage.c: Likewise.
31769         * lib/fsusage.h: Likewise.
31770         * lib/ftell.c: Likewise.
31771         * lib/ftello.c: Likewise.
31772         * lib/fts-cycle.c: Likewise.
31773         * lib/fts.c: Likewise.
31774         * lib/fts_.h: Likewise.
31775         * lib/full-read.c: Likewise.
31776         * lib/full-read.h: Likewise.
31777         * lib/full-write.c: Likewise.
31778         * lib/full-write.h: Likewise.
31779         * lib/fwritable.c: Likewise.
31780         * lib/fwritable.h: Likewise.
31781         * lib/fwriteerror.c: Likewise.
31782         * lib/fwriteerror.h: Likewise.
31783         * lib/fwriting.c: Likewise.
31784         * lib/fwriting.h: Likewise.
31785         * lib/gcd.c: Likewise.
31786         * lib/gcd.h: Likewise.
31787         * lib/getcwd.c: Likewise.
31788         * lib/getdate.h: Likewise.
31789         * lib/getdate.y: Likewise.
31790         * lib/getdomainname.c: Likewise.
31791         * lib/getdomainname.h: Likewise.
31792         * lib/getgroups.c: Likewise.
31793         * lib/gethostname.c: Likewise.
31794         * lib/gethrxtime.c: Likewise.
31795         * lib/gethrxtime.h: Likewise.
31796         * lib/getloadavg.c: Likewise.
31797         * lib/getndelim2.c: Likewise.
31798         * lib/getndelim2.h: Likewise.
31799         * lib/getnline.c: Likewise.
31800         * lib/getnline.h: Likewise.
31801         * lib/getopt.c: Likewise.
31802         * lib/getopt.in.h: Likewise.
31803         * lib/getopt1.c: Likewise.
31804         * lib/getopt_int.h: Likewise.
31805         * lib/getpagesize.h: Likewise.
31806         * lib/getsubopt.c: Likewise.
31807         * lib/gettime.c: Likewise.
31808         * lib/getugroups.c: Likewise.
31809         * lib/getugroups.h: Likewise.
31810         * lib/getusershell.c: Likewise.
31811         * lib/gl_anyavltree_list1.h: Likewise.
31812         * lib/gl_anyavltree_list2.h: Likewise.
31813         * lib/gl_anyhash_list1.h: Likewise.
31814         * lib/gl_anyhash_list2.h: Likewise.
31815         * lib/gl_anylinked_list1.h: Likewise.
31816         * lib/gl_anylinked_list2.h: Likewise.
31817         * lib/gl_anyrbtree_list1.h: Likewise.
31818         * lib/gl_anyrbtree_list2.h: Likewise.
31819         * lib/gl_anytree_list1.h: Likewise.
31820         * lib/gl_anytree_list2.h: Likewise.
31821         * lib/gl_anytree_oset.h: Likewise.
31822         * lib/gl_anytreehash_list1.h: Likewise.
31823         * lib/gl_anytreehash_list2.h: Likewise.
31824         * lib/gl_array_list.c: Likewise.
31825         * lib/gl_array_list.h: Likewise.
31826         * lib/gl_array_oset.c: Likewise.
31827         * lib/gl_array_oset.h: Likewise.
31828         * lib/gl_avltree_list.c: Likewise.
31829         * lib/gl_avltree_list.h: Likewise.
31830         * lib/gl_avltree_oset.c: Likewise.
31831         * lib/gl_avltree_oset.h: Likewise.
31832         * lib/gl_avltreehash_list.c: Likewise.
31833         * lib/gl_avltreehash_list.h: Likewise.
31834         * lib/gl_carray_list.c: Likewise.
31835         * lib/gl_carray_list.h: Likewise.
31836         * lib/gl_linked_list.c: Likewise.
31837         * lib/gl_linked_list.h: Likewise.
31838         * lib/gl_linkedhash_list.c: Likewise.
31839         * lib/gl_linkedhash_list.h: Likewise.
31840         * lib/gl_list.c: Likewise.
31841         * lib/gl_list.h: Likewise.
31842         * lib/gl_oset.c: Likewise.
31843         * lib/gl_oset.h: Likewise.
31844         * lib/gl_rbtree_list.c: Likewise.
31845         * lib/gl_rbtree_list.h: Likewise.
31846         * lib/gl_rbtree_oset.c: Likewise.
31847         * lib/gl_rbtree_oset.h: Likewise.
31848         * lib/gl_rbtreehash_list.c: Likewise.
31849         * lib/gl_rbtreehash_list.h: Likewise.
31850         * lib/gl_sublist.c: Likewise.
31851         * lib/gl_sublist.h: Likewise.
31852         * lib/group-member.c: Likewise.
31853         * lib/group-member.h: Likewise.
31854         * lib/hard-locale.c: Likewise.
31855         * lib/hard-locale.h: Likewise.
31856         * lib/hash-pjw.c: Likewise.
31857         * lib/hash-pjw.h: Likewise.
31858         * lib/hash-triple.c: Likewise.
31859         * lib/hash.c: Likewise.
31860         * lib/hash.h: Likewise.
31861         * lib/human.c: Likewise.
31862         * lib/human.h: Likewise.
31863         * lib/i-ring.c: Likewise.
31864         * lib/i-ring.h: Likewise.
31865         * lib/idcache.c: Likewise.
31866         * lib/imaxabs.c: Likewise.
31867         * lib/imaxdiv.c: Likewise.
31868         * lib/inet_pton.c: Likewise.
31869         * lib/inet_pton.h: Likewise.
31870         * lib/intprops.h: Likewise.
31871         * lib/inttostr.c: Likewise.
31872         * lib/inttostr.h: Likewise.
31873         * lib/inttypes.in.h: Likewise.
31874         * lib/isapipe.c: Likewise.
31875         * lib/isdir.c: Likewise.
31876         * lib/isnan.c: Likewise.
31877         * lib/isnan.h: Likewise.
31878         * lib/isnanf.c: Likewise.
31879         * lib/isnanf.h: Likewise.
31880         * lib/isnanl-nolibm.h: Likewise.
31881         * lib/isnanl.c: Likewise.
31882         * lib/isnanl.h: Likewise.
31883         * lib/javacomp.c: Likewise.
31884         * lib/javacomp.h: Likewise.
31885         * lib/javaexec.c: Likewise.
31886         * lib/javaexec.h: Likewise.
31887         * lib/javaversion.c: Likewise.
31888         * lib/javaversion.h: Likewise.
31889         * lib/javaversion.java: Likewise.
31890         * lib/lbrkprop.h: Likewise.
31891         * lib/lchmod.h: Likewise.
31892         * lib/lchown.c: Likewise.
31893         * lib/ldexpl.c: Likewise.
31894         * lib/linebreak.c: Likewise.
31895         * lib/linebreak.h: Likewise.
31896         * lib/linebuffer.c: Likewise.
31897         * lib/linebuffer.h: Likewise.
31898         * lib/locale.in.h: Likewise.
31899         * lib/logl.c: Likewise.
31900         * lib/long-options.c: Likewise.
31901         * lib/long-options.h: Likewise.
31902         * lib/lstat.c: Likewise.
31903         * lib/lstat.h: Likewise.
31904         * lib/math.in.h: Likewise.
31905         * lib/mbchar.c: Likewise.
31906         * lib/mbchar.h: Likewise.
31907         * lib/mbfile.h: Likewise.
31908         * lib/mbiter.h: Likewise.
31909         * lib/mbscasecmp.c: Likewise.
31910         * lib/mbscasestr.c: Likewise.
31911         * lib/mbschr.c: Likewise.
31912         * lib/mbscspn.c: Likewise.
31913         * lib/mbslen.c: Likewise.
31914         * lib/mbsncasecmp.c: Likewise.
31915         * lib/mbsnlen.c: Likewise.
31916         * lib/mbspbrk.c: Likewise.
31917         * lib/mbspcasecmp.c: Likewise.
31918         * lib/mbsrchr.c: Likewise.
31919         * lib/mbssep.c: Likewise.
31920         * lib/mbsspn.c: Likewise.
31921         * lib/mbsstr.c: Likewise.
31922         * lib/mbstok_r.c: Likewise.
31923         * lib/mbswidth.c: Likewise.
31924         * lib/mbswidth.h: Likewise.
31925         * lib/mbuiter.h: Likewise.
31926         * lib/memcasecmp.c: Likewise.
31927         * lib/memcasecmp.h: Likewise.
31928         * lib/memchr.c: Likewise.
31929         * lib/memcmp.c: Likewise.
31930         * lib/memcoll.c: Likewise.
31931         * lib/memcoll.h: Likewise.
31932         * lib/memcpy.c: Likewise.
31933         * lib/memrchr.c: Likewise.
31934         * lib/mkancesdirs.c: Likewise.
31935         * lib/mkdir-p.c: Likewise.
31936         * lib/mkdir-p.h: Likewise.
31937         * lib/mkdir.c: Likewise.
31938         * lib/mkdirat.c: Likewise.
31939         * lib/mkdtemp.c: Likewise.
31940         * lib/mkstemp-safer.c: Likewise.
31941         * lib/mkstemp.c: Likewise.
31942         * lib/modechange.c: Likewise.
31943         * lib/modechange.h: Likewise.
31944         * lib/mountlist.c: Likewise.
31945         * lib/mountlist.h: Likewise.
31946         * lib/mpsort.c: Likewise.
31947         * lib/nanosleep.c: Likewise.
31948         * lib/obstack.c: Likewise.
31949         * lib/obstack.h: Likewise.
31950         * lib/open-safer.c: Likewise.
31951         * lib/open.c: Likewise.
31952         * lib/openat-die.c: Likewise.
31953         * lib/openat-priv.h: Likewise.
31954         * lib/openat-proc.c: Likewise.
31955         * lib/openat.c: Likewise.
31956         * lib/openat.h: Likewise.
31957         * lib/pagealign_alloc.c: Likewise.
31958         * lib/pagealign_alloc.h: Likewise.
31959         * lib/physmem.c: Likewise.
31960         * lib/physmem.h: Likewise.
31961         * lib/pipe-safer.c: Likewise.
31962         * lib/pipe.c: Likewise.
31963         * lib/pipe.h: Likewise.
31964         * lib/posixtm.c: Likewise.
31965         * lib/posixtm.h: Likewise.
31966         * lib/posixver.c: Likewise.
31967         * lib/printf-frexp.c: Likewise.
31968         * lib/printf-frexp.h: Likewise.
31969         * lib/printf-frexpl.c: Likewise.
31970         * lib/printf-frexpl.h: Likewise.
31971         * lib/printf.c: Likewise.
31972         * lib/progname.c: Likewise.
31973         * lib/progname.h: Likewise.
31974         * lib/progreloc.c: Likewise.
31975         * lib/putenv.c: Likewise.
31976         * lib/quote.c: Likewise.
31977         * lib/quote.h: Likewise.
31978         * lib/quotearg.c: Likewise.
31979         * lib/quotearg.h: Likewise.
31980         * lib/raise.c: Likewise.
31981         * lib/readline.c: Likewise.
31982         * lib/readline.h: Likewise.
31983         * lib/readlink.c: Likewise.
31984         * lib/readtokens.c: Likewise.
31985         * lib/readtokens.h: Likewise.
31986         * lib/readtokens0.c: Likewise.
31987         * lib/readtokens0.h: Likewise.
31988         * lib/readutmp.c: Likewise.
31989         * lib/readutmp.h: Likewise.
31990         * lib/realloc.c: Likewise.
31991         * lib/relocwrapper.c: Likewise.
31992         * lib/rename-dest-slash.c: Likewise.
31993         * lib/rename.c: Likewise.
31994         * lib/rmdir.c: Likewise.
31995         * lib/rpmatch.c: Likewise.
31996         * lib/safe-read.c: Likewise.
31997         * lib/safe-read.h: Likewise.
31998         * lib/safe-write.c: Likewise.
31999         * lib/safe-write.h: Likewise.
32000         * lib/same-inode.h: Likewise.
32001         * lib/same.c: Likewise.
32002         * lib/same.h: Likewise.
32003         * lib/save-cwd.c: Likewise.
32004         * lib/save-cwd.h: Likewise.
32005         * lib/savedir.c: Likewise.
32006         * lib/savedir.h: Likewise.
32007         * lib/savewd.c: Likewise.
32008         * lib/savewd.h: Likewise.
32009         * lib/search.in.h: Likewise.
32010         * lib/setenv.c: Likewise.
32011         * lib/setenv.h: Likewise.
32012         * lib/settime.c: Likewise.
32013         * lib/sh-quote.c: Likewise.
32014         * lib/sh-quote.h: Likewise.
32015         * lib/sig2str.c: Likewise.
32016         * lib/sig2str.h: Likewise.
32017         * lib/signal.in.h: Likewise.
32018         * lib/signbitd.c: Likewise.
32019         * lib/signbitf.c: Likewise.
32020         * lib/signbitl.c: Likewise.
32021         * lib/sigprocmask.c: Likewise.
32022         * lib/sincosl.c: Likewise.
32023         * lib/sleep.c: Likewise.
32024         * lib/sprintf.c: Likewise.
32025         * lib/sqrtl.c: Likewise.
32026         * lib/stat-time.h: Likewise.
32027         * lib/stdio--.h: Likewise.
32028         * lib/stdio-safer.h: Likewise.
32029         * lib/stdlib--.h: Likewise.
32030         * lib/stdlib-safer.h: Likewise.
32031         * lib/stdlib.in.h: Likewise.
32032         * lib/stpcpy.c: Likewise.
32033         * lib/stpncpy.c: Likewise.
32034         * lib/strchrnul.c: Likewise.
32035         * lib/strcspn.c: Likewise.
32036         * lib/strerror.c: Likewise.
32037         * lib/strftime.c: Likewise.
32038         * lib/strftime.h: Likewise.
32039         * lib/striconveh.c: Likewise.
32040         * lib/striconveh.h: Likewise.
32041         * lib/striconveha.c: Likewise.
32042         * lib/striconveha.h: Likewise.
32043         * lib/stripslash.c: Likewise.
32044         * lib/strnlen1.c: Likewise.
32045         * lib/strnlen1.h: Likewise.
32046         * lib/strtod.c: Likewise.
32047         * lib/strtoimax.c: Likewise.
32048         * lib/strtok_r.c: Likewise.
32049         * lib/strtol.c: Likewise.
32050         * lib/strtoll.c: Likewise.
32051         * lib/strtoul.c: Likewise.
32052         * lib/strtoull.c: Likewise.
32053         * lib/sysexits.in.h: Likewise.
32054         * lib/tempname.c: Likewise.
32055         * lib/tempname.h: Likewise.
32056         * lib/timespec.h: Likewise.
32057         * lib/tls.c: Likewise.
32058         * lib/tls.h: Likewise.
32059         * lib/tmpdir.c: Likewise.
32060         * lib/tmpdir.h: Likewise.
32061         * lib/tmpfile-safer.c: Likewise.
32062         * lib/tmpfile.c: Likewise.
32063         * lib/trigl.c: Likewise.
32064         * lib/trigl.h: Likewise.
32065         * lib/trim.c: Likewise.
32066         * lib/trim.h: Likewise.
32067         * lib/trunc.c: Likewise.
32068         * lib/truncf.c: Likewise.
32069         * lib/truncl.c: Likewise.
32070         * lib/tsearch.c: Likewise.
32071         * lib/unicodeio.c: Likewise.
32072         * lib/unicodeio.h: Likewise.
32073         * lib/unistd--.h: Likewise.
32074         * lib/unistd-safer.h: Likewise.
32075         * lib/unistdio/ulc-fprintf.c: Likewise.
32076         * lib/unistdio/ulc-vfprintf.c: Likewise.
32077         * lib/unlinkdir.c: Likewise.
32078         * lib/unlinkdir.h: Likewise.
32079         * lib/unlocked-io.h: Likewise.
32080         * lib/unsetenv.c: Likewise.
32081         * lib/userspec.c: Likewise.
32082         * lib/utime.c: Likewise.
32083         * lib/utimecmp.c: Likewise.
32084         * lib/utimecmp.h: Likewise.
32085         * lib/utimens.c: Likewise.
32086         * lib/verify.h: Likewise.
32087         * lib/verror.c: Likewise.
32088         * lib/verror.h: Likewise.
32089         * lib/version-etc-fsf.c: Likewise.
32090         * lib/version-etc.c: Likewise.
32091         * lib/version-etc.h: Likewise.
32092         * lib/vfprintf.c: Likewise.
32093         * lib/vprintf.c: Likewise.
32094         * lib/vsprintf.c: Likewise.
32095         * lib/w32spawn.h: Likewise.
32096         * lib/wait-process.c: Likewise.
32097         * lib/wait-process.h: Likewise.
32098         * lib/wcwidth.c: Likewise.
32099         * lib/write-any-file.c: Likewise.
32100         * lib/xalloc-die.c: Likewise.
32101         * lib/xalloc.h: Likewise.
32102         * lib/xasprintf.c: Likewise.
32103         * lib/xgetcwd.c: Likewise.
32104         * lib/xgetcwd.h: Likewise.
32105         * lib/xgetdomainname.c: Likewise.
32106         * lib/xgetdomainname.h: Likewise.
32107         * lib/xgethostname.c: Likewise.
32108         * lib/xmalloc.c: Likewise.
32109         * lib/xmalloca.c: Likewise.
32110         * lib/xmalloca.h: Likewise.
32111         * lib/xmemcoll.c: Likewise.
32112         * lib/xnanosleep.c: Likewise.
32113         * lib/xreadlink.c: Likewise.
32114         * lib/xreadlink.h: Likewise.
32115         * lib/xsetenv.c: Likewise.
32116         * lib/xsetenv.h: Likewise.
32117         * lib/xstriconv.c: Likewise.
32118         * lib/xstriconv.h: Likewise.
32119         * lib/xstrndup.c: Likewise.
32120         * lib/xstrndup.h: Likewise.
32121         * lib/xstrtod.c: Likewise.
32122         * lib/xstrtod.h: Likewise.
32123         * lib/xstrtol-error.c: Likewise.
32124         * lib/xstrtol.c: Likewise.
32125         * lib/xstrtol.h: Likewise.
32126         * lib/xtime.h: Likewise.
32127         * lib/xvasprintf.c: Likewise.
32128         * lib/xvasprintf.h: Likewise.
32129         * lib/yesno.c: Likewise.
32130         * lib/yesno.h: Likewise.
32131         * posix-modules: Likewise.
32132         * tests/test-alloca-opt.c: Likewise.
32133         * tests/test-arcfour.c: Likewise.
32134         * tests/test-arctwo.c: Likewise.
32135         * tests/test-argmatch.c: Likewise.
32136         * tests/test-argp-2.sh: Likewise.
32137         * tests/test-argp.c: Likewise.
32138         * tests/test-arpa_inet.c: Likewise.
32139         * tests/test-array_list.c: Likewise.
32140         * tests/test-array_oset.c: Likewise.
32141         * tests/test-atexit.c: Likewise.
32142         * tests/test-avltree_list.c: Likewise.
32143         * tests/test-avltree_oset.c: Likewise.
32144         * tests/test-avltreehash_list.c: Likewise.
32145         * tests/test-base64.c: Likewise.
32146         * tests/test-binary-io.c: Likewise.
32147         * tests/test-byteswap.c: Likewise.
32148         * tests/test-c-ctype.c: Likewise.
32149         * tests/test-c-strcasecmp.c: Likewise.
32150         * tests/test-c-strcasestr.c: Likewise.
32151         * tests/test-c-strncasecmp.c: Likewise.
32152         * tests/test-c-strstr.c: Likewise.
32153         * tests/test-canonicalize-lgpl.c: Likewise.
32154         * tests/test-canonicalize.c: Likewise.
32155         * tests/test-carray_list.c: Likewise.
32156         * tests/test-ceilf.c: Likewise.
32157         * tests/test-ceill.c: Likewise.
32158         * tests/test-count-one-bits.c: Likewise.
32159         * tests/test-crc.c: Likewise.
32160         * tests/test-dirname.c: Likewise.
32161         * tests/test-fbufmode.c: Likewise.
32162         * tests/test-fcntl.c: Likewise.
32163         * tests/test-fflush.c: Likewise.
32164         * tests/test-floorf.c: Likewise.
32165         * tests/test-floorl.c: Likewise.
32166         * tests/test-fopen.c: Likewise.
32167         * tests/test-fprintf-posix.c: Likewise.
32168         * tests/test-fprintf-posix.h: Likewise.
32169         * tests/test-fpurge.c: Likewise.
32170         * tests/test-freadable.c: Likewise.
32171         * tests/test-freadahead.c: Likewise.
32172         * tests/test-freading.c: Likewise.
32173         * tests/test-freopen.c: Likewise.
32174         * tests/test-frexp.c: Likewise.
32175         * tests/test-frexpl.c: Likewise.
32176         * tests/test-fseek.c: Likewise.
32177         * tests/test-fseeko.c: Likewise.
32178         * tests/test-fseterr.c: Likewise.
32179         * tests/test-fstrcmp.c: Likewise.
32180         * tests/test-ftell.c: Likewise.
32181         * tests/test-ftello.c: Likewise.
32182         * tests/test-fwritable.c: Likewise.
32183         * tests/test-fwriting.c: Likewise.
32184         * tests/test-getaddrinfo.c: Likewise.
32185         * tests/test-getpass.c: Likewise.
32186         * tests/test-gettimeofday.c: Likewise.
32187         * tests/test-hmac-md5.c: Likewise.
32188         * tests/test-hmac-sha1.c: Likewise.
32189         * tests/test-iconv.c: Likewise.
32190         * tests/test-iconvme.c: Likewise.
32191         * tests/test-inttypes.c: Likewise.
32192         * tests/test-isnan.c: Likewise.
32193         * tests/test-isnanf.c: Likewise.
32194         * tests/test-isnanl-nolibm.c: Likewise.
32195         * tests/test-isnanl.c: Likewise.
32196         * tests/test-isnanl.h: Likewise.
32197         * tests/test-ldexpl.c: Likewise.
32198         * tests/test-linked_list.c: Likewise.
32199         * tests/test-linkedhash_list.c: Likewise.
32200         * tests/test-locale.c: Likewise.
32201         * tests/test-localename.c: Likewise.
32202         * tests/test-lock.c: Likewise.
32203         * tests/test-lseek.c: Likewise.
32204         * tests/test-malloca.c: Likewise.
32205         * tests/test-math.c: Likewise.
32206         * tests/test-mbscasecmp.c: Likewise.
32207         * tests/test-mbscasestr1.c: Likewise.
32208         * tests/test-mbscasestr2.c: Likewise.
32209         * tests/test-mbscasestr3.c: Likewise.
32210         * tests/test-mbscasestr4.c: Likewise.
32211         * tests/test-mbschr.c: Likewise.
32212         * tests/test-mbscspn.c: Likewise.
32213         * tests/test-mbsncasecmp.c: Likewise.
32214         * tests/test-mbspbrk.c: Likewise.
32215         * tests/test-mbspcasecmp.c: Likewise.
32216         * tests/test-mbsrchr.c: Likewise.
32217         * tests/test-mbsspn.c: Likewise.
32218         * tests/test-mbsstr1.c: Likewise.
32219         * tests/test-mbsstr2.c: Likewise.
32220         * tests/test-mbsstr3.c: Likewise.
32221         * tests/test-md5.c: Likewise.
32222         * tests/test-memmem.c: Likewise.
32223         * tests/test-netinet_in.c: Likewise.
32224         * tests/test-open.c: Likewise.
32225         * tests/test-printf-frexp.c: Likewise.
32226         * tests/test-printf-frexpl.c: Likewise.
32227         * tests/test-printf-posix.c: Likewise.
32228         * tests/test-printf-posix.h: Likewise.
32229         * tests/test-rbtree_list.c: Likewise.
32230         * tests/test-rbtree_oset.c: Likewise.
32231         * tests/test-rbtreehash_list.c: Likewise.
32232         * tests/test-read-file.c: Likewise.
32233         * tests/test-rijndael.c: Likewise.
32234         * tests/test-search.c: Likewise.
32235         * tests/test-signbit.c: Likewise.
32236         * tests/test-sleep.c: Likewise.
32237         * tests/test-snprintf-posix.c: Likewise.
32238         * tests/test-snprintf-posix.h: Likewise.
32239         * tests/test-snprintf.c: Likewise.
32240         * tests/test-sprintf-posix.c: Likewise.
32241         * tests/test-sprintf-posix.h: Likewise.
32242         * tests/test-stat-time.c: Likewise.
32243         * tests/test-stdbool.c: Likewise.
32244         * tests/test-stdint.c: Likewise.
32245         * tests/test-stdio.c: Likewise.
32246         * tests/test-stdlib.c: Likewise.
32247         * tests/test-stpncpy.c: Likewise.
32248         * tests/test-strcasestr.c: Likewise.
32249         * tests/test-striconv.c: Likewise.
32250         * tests/test-striconveh.c: Likewise.
32251         * tests/test-striconveha.c: Likewise.
32252         * tests/test-string.c: Likewise.
32253         * tests/test-sys_select.c: Likewise.
32254         * tests/test-sys_socket.c: Likewise.
32255         * tests/test-sys_stat.c: Likewise.
32256         * tests/test-sys_time.c: Likewise.
32257         * tests/test-sysexits.c: Likewise.
32258         * tests/test-time.c: Likewise.
32259         * tests/test-tls.c: Likewise.
32260         * tests/test-trunc.c: Likewise.
32261         * tests/test-truncf.c: Likewise.
32262         * tests/test-truncl.c: Likewise.
32263         * tests/test-unistd.c: Likewise.
32264         * tests/test-vasnprintf-posix.c: Likewise.
32265         * tests/test-vasnprintf-posix2.c: Likewise.
32266         * tests/test-vasnprintf.c: Likewise.
32267         * tests/test-vasprintf-posix.c: Likewise.
32268         * tests/test-vasprintf.c: Likewise.
32269         * tests/test-verify.c: Likewise.
32270         * tests/test-vfprintf-posix.c: Likewise.
32271         * tests/test-vprintf-posix.c: Likewise.
32272         * tests/test-vsnprintf-posix.c: Likewise.
32273         * tests/test-vsnprintf.c: Likewise.
32274         * tests/test-vsprintf-posix.c: Likewise.
32275         * tests/test-wchar.c: Likewise.
32276         * tests/test-wctype.c: Likewise.
32277         * tests/test-wcwidth.c: Likewise.
32278         * tests/test-xstrtol.c: Likewise.
32279         * tests/test-xvasprintf.c: Likewise.
32280         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32281         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32282         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32283         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32284         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32285         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32286         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32287         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32288         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32289         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32290         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32291         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32292         * tests/uniname/test-uninames.c: Likewise.
32293         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32294         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
32295         * tests/unistdio/test-u16-printf1.h: Likewise.
32296         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32297         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32298         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32299         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32300         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32301         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32302         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32303         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
32304         * tests/unistdio/test-u32-printf1.h: Likewise.
32305         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32306         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32307         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32308         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32309         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32310         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32311         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32312         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
32313         * tests/unistdio/test-u8-printf1.h: Likewise.
32314         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32315         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32316         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32317         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32318         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32319         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32320         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32321         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
32322         * tests/unistdio/test-ulc-printf1.h: Likewise.
32323         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32324         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32325         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32326         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32327         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32328         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32329         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32330         * tests/uniwidth/test-u16-width.c: Likewise.
32331         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32332         * tests/uniwidth/test-u32-width.c: Likewise.
32333         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32334         * tests/uniwidth/test-u8-width.c: Likewise.
32335         * tests/uniwidth/test-uc_width.c: Likewise.
32336         * config/srclist-update: Likewise.
32337         (fixlicense): Update to GPLv3+.
32338
32339         Change copyright notice from LGPLv2.1+ to LGPLv3+.
32340         * tests/test-tsearch.c: Change copyright notice.
32341
32342         Change copyright notice from LGPLv2.0+ to LGPLv3+.
32343         * lib/c-strcaseeq.h: Change copyright notice.
32344         * lib/streq.h: Likewise.
32345         * lib/uniconv.h: Likewise.
32346         * lib/uniconv/u-conv-from-enc.h: Likewise.
32347         * lib/uniconv/u-conv-to-enc.h: Likewise.
32348         * lib/uniconv/u-strconv-from-enc.h: Likewise.
32349         * lib/uniconv/u-strconv-to-enc.h: Likewise.
32350         * lib/uniconv/u16-conv-from-enc.c: Likewise.
32351         * lib/uniconv/u16-conv-to-enc.c: Likewise.
32352         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
32353         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
32354         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
32355         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
32356         * lib/uniconv/u32-conv-from-enc.c: Likewise.
32357         * lib/uniconv/u32-conv-to-enc.c: Likewise.
32358         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
32359         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
32360         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
32361         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
32362         * lib/uniconv/u8-conv-from-enc.c: Likewise.
32363         * lib/uniconv/u8-conv-to-enc.c: Likewise.
32364         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
32365         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
32366         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
32367         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
32368         * lib/uniname.h: Likewise.
32369         * lib/uniname/uniname.c: Likewise.
32370         * lib/unistdio.h: Likewise.
32371         * lib/unistdio/u-asnprintf.h: Likewise.
32372         * lib/unistdio/u-asprintf.h: Likewise.
32373         * lib/unistdio/u-printf-args.c: Likewise.
32374         * lib/unistdio/u-printf-args.h: Likewise.
32375         * lib/unistdio/u-printf-parse.h: Likewise.
32376         * lib/unistdio/u-snprintf.h: Likewise.
32377         * lib/unistdio/u-sprintf.h: Likewise.
32378         * lib/unistdio/u-vasprintf.h: Likewise.
32379         * lib/unistdio/u-vsnprintf.h: Likewise.
32380         * lib/unistdio/u-vsprintf.h: Likewise.
32381         * lib/unistdio/u16-asnprintf.c: Likewise.
32382         * lib/unistdio/u16-asprintf.c: Likewise.
32383         * lib/unistdio/u16-printf-parse.c: Likewise.
32384         * lib/unistdio/u16-snprintf.c: Likewise.
32385         * lib/unistdio/u16-sprintf.c: Likewise.
32386         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
32387         * lib/unistdio/u16-u16-asprintf.c: Likewise.
32388         * lib/unistdio/u16-u16-snprintf.c: Likewise.
32389         * lib/unistdio/u16-u16-sprintf.c: Likewise.
32390         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
32391         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
32392         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
32393         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
32394         * lib/unistdio/u16-vasnprintf.c: Likewise.
32395         * lib/unistdio/u16-vasprintf.c: Likewise.
32396         * lib/unistdio/u16-vsnprintf.c: Likewise.
32397         * lib/unistdio/u16-vsprintf.c: Likewise.
32398         * lib/unistdio/u32-asnprintf.c: Likewise.
32399         * lib/unistdio/u32-asprintf.c: Likewise.
32400         * lib/unistdio/u32-printf-parse.c: Likewise.
32401         * lib/unistdio/u32-snprintf.c: Likewise.
32402         * lib/unistdio/u32-sprintf.c: Likewise.
32403         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
32404         * lib/unistdio/u32-u32-asprintf.c: Likewise.
32405         * lib/unistdio/u32-u32-snprintf.c: Likewise.
32406         * lib/unistdio/u32-u32-sprintf.c: Likewise.
32407         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
32408         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
32409         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
32410         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
32411         * lib/unistdio/u32-vasnprintf.c: Likewise.
32412         * lib/unistdio/u32-vasprintf.c: Likewise.
32413         * lib/unistdio/u32-vsnprintf.c: Likewise.
32414         * lib/unistdio/u32-vsprintf.c: Likewise.
32415         * lib/unistdio/u8-asnprintf.c: Likewise.
32416         * lib/unistdio/u8-asprintf.c: Likewise.
32417         * lib/unistdio/u8-printf-parse.c: Likewise.
32418         * lib/unistdio/u8-snprintf.c: Likewise.
32419         * lib/unistdio/u8-sprintf.c: Likewise.
32420         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
32421         * lib/unistdio/u8-u8-asprintf.c: Likewise.
32422         * lib/unistdio/u8-u8-snprintf.c: Likewise.
32423         * lib/unistdio/u8-u8-sprintf.c: Likewise.
32424         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
32425         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
32426         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
32427         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
32428         * lib/unistdio/u8-vasnprintf.c: Likewise.
32429         * lib/unistdio/u8-vasprintf.c: Likewise.
32430         * lib/unistdio/u8-vsnprintf.c: Likewise.
32431         * lib/unistdio/u8-vsprintf.c: Likewise.
32432         * lib/unistdio/ulc-asnprintf.c: Likewise.
32433         * lib/unistdio/ulc-asprintf.c: Likewise.
32434         * lib/unistdio/ulc-printf-parse.c: Likewise.
32435         * lib/unistdio/ulc-snprintf.c: Likewise.
32436         * lib/unistdio/ulc-sprintf.c: Likewise.
32437         * lib/unistdio/ulc-vasnprintf.c: Likewise.
32438         * lib/unistdio/ulc-vasprintf.c: Likewise.
32439         * lib/unistdio/ulc-vsnprintf.c: Likewise.
32440         * lib/unistdio/ulc-vsprintf.c: Likewise.
32441         * lib/unistr.h: Likewise.
32442         * lib/unistr/u-cpy-alloc.h: Likewise.
32443         * lib/unistr/u-cpy.h: Likewise.
32444         * lib/unistr/u-endswith.h: Likewise.
32445         * lib/unistr/u-move.h: Likewise.
32446         * lib/unistr/u-set.h: Likewise.
32447         * lib/unistr/u-startswith.h: Likewise.
32448         * lib/unistr/u-stpcpy.h: Likewise.
32449         * lib/unistr/u-stpncpy.h: Likewise.
32450         * lib/unistr/u-strcat.h: Likewise.
32451         * lib/unistr/u-strcpy.h: Likewise.
32452         * lib/unistr/u-strcspn.h: Likewise.
32453         * lib/unistr/u-strdup.h: Likewise.
32454         * lib/unistr/u-strlen.h: Likewise.
32455         * lib/unistr/u-strncat.h: Likewise.
32456         * lib/unistr/u-strncpy.h: Likewise.
32457         * lib/unistr/u-strnlen.h: Likewise.
32458         * lib/unistr/u-strpbrk.h: Likewise.
32459         * lib/unistr/u-strspn.h: Likewise.
32460         * lib/unistr/u-strstr.h: Likewise.
32461         * lib/unistr/u-strtok.h: Likewise.
32462         * lib/unistr/u16-check.c: Likewise.
32463         * lib/unistr/u16-chr.c: Likewise.
32464         * lib/unistr/u16-cmp.c: Likewise.
32465         * lib/unistr/u16-cpy-alloc.c: Likewise.
32466         * lib/unistr/u16-cpy.c: Likewise.
32467         * lib/unistr/u16-endswith.c: Likewise.
32468         * lib/unistr/u16-mblen.c: Likewise.
32469         * lib/unistr/u16-mbsnlen.c: Likewise.
32470         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32471         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32472         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32473         * lib/unistr/u16-mbtouc.c: Likewise.
32474         * lib/unistr/u16-mbtoucr.c: Likewise.
32475         * lib/unistr/u16-move.c: Likewise.
32476         * lib/unistr/u16-next.c: Likewise.
32477         * lib/unistr/u16-prev.c: Likewise.
32478         * lib/unistr/u16-set.c: Likewise.
32479         * lib/unistr/u16-startswith.c: Likewise.
32480         * lib/unistr/u16-stpcpy.c: Likewise.
32481         * lib/unistr/u16-stpncpy.c: Likewise.
32482         * lib/unistr/u16-strcat.c: Likewise.
32483         * lib/unistr/u16-strchr.c: Likewise.
32484         * lib/unistr/u16-strcmp.c: Likewise.
32485         * lib/unistr/u16-strcpy.c: Likewise.
32486         * lib/unistr/u16-strcspn.c: Likewise.
32487         * lib/unistr/u16-strdup.c: Likewise.
32488         * lib/unistr/u16-strlen.c: Likewise.
32489         * lib/unistr/u16-strmblen.c: Likewise.
32490         * lib/unistr/u16-strmbtouc.c: Likewise.
32491         * lib/unistr/u16-strncat.c: Likewise.
32492         * lib/unistr/u16-strncmp.c: Likewise.
32493         * lib/unistr/u16-strncpy.c: Likewise.
32494         * lib/unistr/u16-strnlen.c: Likewise.
32495         * lib/unistr/u16-strpbrk.c: Likewise.
32496         * lib/unistr/u16-strrchr.c: Likewise.
32497         * lib/unistr/u16-strspn.c: Likewise.
32498         * lib/unistr/u16-strstr.c: Likewise.
32499         * lib/unistr/u16-strtok.c: Likewise.
32500         * lib/unistr/u16-to-u32.c: Likewise.
32501         * lib/unistr/u16-to-u8.c: Likewise.
32502         * lib/unistr/u16-uctomb-aux.c: Likewise.
32503         * lib/unistr/u16-uctomb.c: Likewise.
32504         * lib/unistr/u32-check.c: Likewise.
32505         * lib/unistr/u32-chr.c: Likewise.
32506         * lib/unistr/u32-cmp.c: Likewise.
32507         * lib/unistr/u32-cpy-alloc.c: Likewise.
32508         * lib/unistr/u32-cpy.c: Likewise.
32509         * lib/unistr/u32-endswith.c: Likewise.
32510         * lib/unistr/u32-mblen.c: Likewise.
32511         * lib/unistr/u32-mbsnlen.c: Likewise.
32512         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32513         * lib/unistr/u32-mbtouc.c: Likewise.
32514         * lib/unistr/u32-mbtoucr.c: Likewise.
32515         * lib/unistr/u32-move.c: Likewise.
32516         * lib/unistr/u32-next.c: Likewise.
32517         * lib/unistr/u32-prev.c: Likewise.
32518         * lib/unistr/u32-set.c: Likewise.
32519         * lib/unistr/u32-startswith.c: Likewise.
32520         * lib/unistr/u32-stpcpy.c: Likewise.
32521         * lib/unistr/u32-stpncpy.c: Likewise.
32522         * lib/unistr/u32-strcat.c: Likewise.
32523         * lib/unistr/u32-strchr.c: Likewise.
32524         * lib/unistr/u32-strcmp.c: Likewise.
32525         * lib/unistr/u32-strcpy.c: Likewise.
32526         * lib/unistr/u32-strcspn.c: Likewise.
32527         * lib/unistr/u32-strdup.c: Likewise.
32528         * lib/unistr/u32-strlen.c: Likewise.
32529         * lib/unistr/u32-strmblen.c: Likewise.
32530         * lib/unistr/u32-strmbtouc.c: Likewise.
32531         * lib/unistr/u32-strncat.c: Likewise.
32532         * lib/unistr/u32-strncmp.c: Likewise.
32533         * lib/unistr/u32-strncpy.c: Likewise.
32534         * lib/unistr/u32-strnlen.c: Likewise.
32535         * lib/unistr/u32-strpbrk.c: Likewise.
32536         * lib/unistr/u32-strrchr.c: Likewise.
32537         * lib/unistr/u32-strspn.c: Likewise.
32538         * lib/unistr/u32-strstr.c: Likewise.
32539         * lib/unistr/u32-strtok.c: Likewise.
32540         * lib/unistr/u32-to-u16.c: Likewise.
32541         * lib/unistr/u32-to-u8.c: Likewise.
32542         * lib/unistr/u32-uctomb.c: Likewise.
32543         * lib/unistr/u8-check.c: Likewise.
32544         * lib/unistr/u8-chr.c: Likewise.
32545         * lib/unistr/u8-cmp.c: Likewise.
32546         * lib/unistr/u8-cpy-alloc.c: Likewise.
32547         * lib/unistr/u8-cpy.c: Likewise.
32548         * lib/unistr/u8-endswith.c: Likewise.
32549         * lib/unistr/u8-mblen.c: Likewise.
32550         * lib/unistr/u8-mbsnlen.c: Likewise.
32551         * lib/unistr/u8-mbtouc-aux.c: Likewise.
32552         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32553         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32554         * lib/unistr/u8-mbtouc.c: Likewise.
32555         * lib/unistr/u8-mbtoucr.c: Likewise.
32556         * lib/unistr/u8-move.c: Likewise.
32557         * lib/unistr/u8-next.c: Likewise.
32558         * lib/unistr/u8-prev.c: Likewise.
32559         * lib/unistr/u8-set.c: Likewise.
32560         * lib/unistr/u8-startswith.c: Likewise.
32561         * lib/unistr/u8-stpcpy.c: Likewise.
32562         * lib/unistr/u8-stpncpy.c: Likewise.
32563         * lib/unistr/u8-strcat.c: Likewise.
32564         * lib/unistr/u8-strchr.c: Likewise.
32565         * lib/unistr/u8-strcmp.c: Likewise.
32566         * lib/unistr/u8-strcpy.c: Likewise.
32567         * lib/unistr/u8-strcspn.c: Likewise.
32568         * lib/unistr/u8-strdup.c: Likewise.
32569         * lib/unistr/u8-strlen.c: Likewise.
32570         * lib/unistr/u8-strmblen.c: Likewise.
32571         * lib/unistr/u8-strmbtouc.c: Likewise.
32572         * lib/unistr/u8-strncat.c: Likewise.
32573         * lib/unistr/u8-strncmp.c: Likewise.
32574         * lib/unistr/u8-strncpy.c: Likewise.
32575         * lib/unistr/u8-strnlen.c: Likewise.
32576         * lib/unistr/u8-strpbrk.c: Likewise.
32577         * lib/unistr/u8-strrchr.c: Likewise.
32578         * lib/unistr/u8-strspn.c: Likewise.
32579         * lib/unistr/u8-strstr.c: Likewise.
32580         * lib/unistr/u8-strtok.c: Likewise.
32581         * lib/unistr/u8-to-u16.c: Likewise.
32582         * lib/unistr/u8-to-u32.c: Likewise.
32583         * lib/unistr/u8-uctomb-aux.c: Likewise.
32584         * lib/unistr/u8-uctomb.c: Likewise.
32585         * lib/unitypes.h: Likewise.
32586         * lib/uniwidth.h: Likewise.
32587         * lib/uniwidth/cjk.h: Likewise.
32588         * lib/uniwidth/u16-strwidth.c: Likewise.
32589         * lib/uniwidth/u16-width.c: Likewise.
32590         * lib/uniwidth/u32-strwidth.c: Likewise.
32591         * lib/uniwidth/u32-width.c: Likewise.
32592         * lib/uniwidth/u8-strwidth.c: Likewise.
32593         * lib/uniwidth/u8-width.c: Likewise.
32594         * lib/uniwidth/width.c: Likewise.
32595
32596 2007-10-07  Bruno Haible  <bruno@clisp.org>
32597
32598         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
32599         The file is still under LGPL (see modules/inttypes).
32600
32601 2007-10-06  Bruno Haible  <bruno@clisp.org>
32602
32603         * modules/trunc (Dependencies): Add 'extensions'.
32604         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
32605         Reported by Ben Pfaff <blp@gnu.org>.
32606
32607 2007-10-06  Bruno Haible  <bruno@clisp.org>
32608
32609         * modules/freopen-tests: New file.
32610         * tests/test-freopen.c: New file.
32611
32612         * modules/fopen-tests: New file.
32613         * tests/test-fopen.c: New file.
32614
32615         * modules/fopen: New file.
32616         * lib/fopen.c: New file.
32617         * m4/fopen.m4: New file.
32618         * modules/freopen: New file.
32619         * lib/freopen.c: New file.
32620         * m4/freopen.m4: New file.
32621         * lib/stdio.in.h (fopen, freopen): New declarations.
32622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32623         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32624         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32625         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32626         * doc/functions/fopen.texi: Mention the 'fopen' module.
32627         * doc/functions/freopen.texi: Mention the 'freopen' module.
32628
32629 2007-10-06  Bruno Haible  <bruno@clisp.org>
32630
32631         * modules/open-tests: New file.
32632         * tests/test-open.c: New file.
32633
32634         * modules/open: New file.
32635         * lib/open.c: New file.
32636         * m4/open.m4: New file.
32637         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32638         lib/open.c does.
32639         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32640         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32641         macros.
32642         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32643         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32644         REPLACE_OPEN.
32645         * doc/functions/open.texi: Mention the 'open' module.
32646
32647 2007-10-04  Bruno Haible  <bruno@clisp.org>
32648
32649         * modules/ceill-tests: New file.
32650         * tests/test-ceill.c: New file.
32651
32652         * modules/ceill: New file.
32653         * lib/ceill.c: Replace entire file.
32654         * m4/ceill.m4: New file.
32655         * lib/math.in.h (ceill): Replace declaration.
32656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32657         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32658         * doc/functions/ceill.texi: Mention the 'ceill' module.
32659         * modules/mathl (Files): Remove lib/ceill.c.
32660         (Depends-on): Add ceill.
32661
32662 2007-10-04  Bruno Haible  <bruno@clisp.org>
32663
32664         * modules/ceilf-tests: New file.
32665         * tests/test-ceilf.c: New file.
32666
32667         * modules/ceilf: New file.
32668         * lib/ceil.c: New file.
32669         * lib/ceilf.c: New file.
32670         * m4/ceilf.m4: New file.
32671         * lib/math.in.h (ceilf): New declaration.
32672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32673         HAVE_DECL_CEILF.
32674         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32675         HAVE_DECL_CEILF.
32676         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32677
32678 2007-10-04  Bruno Haible  <bruno@clisp.org>
32679
32680         * modules/floorl-tests: New file.
32681         * tests/test-floorl.c: New file.
32682
32683         * modules/floorl: New file.
32684         * lib/floorl.c: Replace entire file.
32685         * m4/floorl.m4: New file.
32686         * lib/math.in.h (floorl): Replace declaration.
32687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32688         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32689         * doc/functions/floorl.texi: Mention the 'floorl' module.
32690         * modules/mathl (Files): Remove lib/floorl.c.
32691         (Depends-on): Add floorl.
32692
32693 2007-10-04  Bruno Haible  <bruno@clisp.org>
32694
32695         * modules/floorf-tests: New file.
32696         * tests/test-floorf.c: New file.
32697
32698         * modules/floorf: New file.
32699         * lib/floor.c: New file.
32700         * lib/floorf.c: New file.
32701         * m4/floorf.m4: New file.
32702         * lib/math.in.h (floorf): New declaration.
32703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32704         HAVE_DECL_FLOORF.
32705         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32706         HAVE_DECL_FLOORF.
32707         * doc/functions/floorf.texi: Mention the 'floorf' module.
32708
32709 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32710             Bruno Haible  <bruno@clisp.org>
32711
32712         Advertise for the Git server instead of the CVS server.
32713         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32714         repository instead of the CVS one.
32715         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32716         about all VCS systems generically.
32717         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32718
32719 2007-10-04  Bruno Haible  <bruno@clisp.org>
32720
32721         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32722         means.
32723         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32724
32725 2007-10-04  Bruno Haible  <bruno@clisp.org>
32726
32727         * modules/truncl-tests: New file.
32728         * tests/test-truncl.c: New file.
32729
32730         * modules/truncl: New file.
32731         * lib/truncl.c: New file.
32732         * m4/truncl.m4: New file.
32733         * lib/math.in.h (truncl): New declaration.
32734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32735         HAVE_DECL_TRUNCL.
32736         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32737         HAVE_DECL_TRUNCL.
32738         * doc/functions/truncl.texi: Mention the 'truncl' module.
32739
32740 2007-10-04  Bruno Haible  <bruno@clisp.org>
32741
32742         * modules/truncf-tests: New file.
32743         * tests/test-truncf.c: New file.
32744
32745         * modules/truncf: New file.
32746         * lib/trunc.c: Make paramerizable through USE_* macros.
32747         * lib/truncf.c: New file.
32748         * m4/truncf.m4: New file.
32749         * lib/math.in.h (truncf): New declaration.
32750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32751         HAVE_DECL_TRUNCF.
32752         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32753         HAVE_DECL_TRUNCF.
32754         * doc/functions/truncf.texi: Mention the 'truncf' module.
32755
32756 2007-10-03  Bruno Haible  <bruno@clisp.org>
32757
32758         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32759         augmentation also for tests modules.
32760         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32761         * modules/atexit-tests (Makefile.am): Likewise.
32762         * modules/binary-io-tests (Makefile.am): Likewise.
32763         * modules/c-strcase-tests (Makefile.am): Likewise.
32764         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32765         * modules/canonicalize-tests (Makefile.am): Likewise.
32766         * modules/closein-tests (Makefile.am): Likewise.
32767         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32768         * modules/freadahead-tests (Makefile.am): Likewise.
32769         * modules/fseek-tests (Makefile.am): Likewise.
32770         * modules/fseeko-tests (Makefile.am): Likewise.
32771         * modules/ftell-tests (Makefile.am): Likewise.
32772         * modules/ftello-tests (Makefile.am): Likewise.
32773         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32774         * modules/isnanl-tests (Makefile.am): Likewise.
32775         * modules/lseek-tests (Makefile.am): Likewise.
32776         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32777         * modules/mbscasestr-tests (Makefile.am): Likewise.
32778         * modules/mbschr-tests (Makefile.am): Likewise.
32779         * modules/mbscspn-tests (Makefile.am): Likewise.
32780         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32781         * modules/mbspbrk-tests (Makefile.am): Likewise.
32782         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32783         * modules/mbsrchr-tests (Makefile.am): Likewise.
32784         * modules/mbsspn-tests (Makefile.am): Likewise.
32785         * modules/mbsstr-tests (Makefile.am): Likewise.
32786         * modules/printf-posix-tests (Makefile.am): Likewise.
32787         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32788         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32789         * modules/tsearch-tests (Makefile.am): Likewise.
32790         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32791         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32792         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32793         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32794         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32795         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32796         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32797         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32798         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32799         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32800         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32801         * modules/xstrtol-tests (Makefile.am): Likewise.
32802         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32803         * modules/yesno-tests (Makefile.am): Likewise.
32804
32805 2007-10-03  Bruno Haible  <bruno@clisp.org>
32806
32807         * modules/trunc-tests: New file.
32808         * tests/test-trunc.c: New file.
32809
32810         * modules/trunc: New file.
32811         * lib/trunc.c: New file.
32812         * m4/trunc.m4: New file.
32813         * lib/math.in.h (trunc): New declaration.
32814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32815         HAVE_DECL_TRUNC.
32816         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32817         HAVE_DECL_TRUNC.
32818         * doc/functions/trunc.texi: Mention the 'trunc' module.
32819
32820 2007-10-03  Bruno Haible  <bruno@clisp.org>
32821
32822         * tests/test-fpending.c: New file, mostly copied
32823         from coreutils/lib/t-fpending.c.
32824         * modules/fpending-tests: New file.
32825
32826 2007-10-03  Bruno Haible  <bruno@clisp.org>
32827
32828         Port the stdio extensions to QNX (untested).
32829         * lib/fseterr.c (fseterr): Add support for QNX.
32830         * lib/fbufmode.c (fbufmode): Likewise.
32831         * lib/freadable.c (freadable): Likewise.
32832         * lib/fwritable.c (fwritable): Likewise.
32833         * lib/freading.c (freading): Likewise.
32834         * lib/fwriting.c (fwriting): Likewise.
32835         * lib/freadahead.c (freadahed): Likewise.
32836         * lib/fpurge.c (fpurge): Likewise.
32837         * lib/fseeko.c (rpl_fseeko): Likewise.
32838
32839 2007-10-03  Bruno Haible  <bruno@clisp.org>
32840             Jim Meyering  <jim@meyering.net>
32841             Eric Blake  <ebb9@byu.net>
32842
32843         * doc/relocatable.texi: Use @command instead of @program.
32844
32845 2007-10-02  Jim Meyering  <jim@meyering.net>
32846
32847         Perform one more "_.h" -> ".in.h" substitution.
32848         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32849         instead of unistd_.h here, too.
32850
32851 2007-10-01  Bruno Haible  <bruno@clisp.org>
32852
32853         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32854         Needed for the alloca-opt module.
32855
32856 2007-09-30  Bruno Haible  <bruno@clisp.org>
32857
32858         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32859         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32860         alloca_.h.
32861         * lib/argz.in.h: Renamed from lib/argz_.h.
32862         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32863         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32864         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32865         byteswap_.h.
32866         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32867         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32868         dirent_.h.
32869         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32870         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32871         fcntl_.h.
32872         * lib/float.in.h: Renamed from lib/float_.h.
32873         * modules/float (Files, Makefile.am): Use float.in.h instead of
32874         float_.h.
32875         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32876         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32877         fnmatch_.h.
32878         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32879         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32880         getopt_.h.
32881         * lib/glob.in.h: Renamed from lib/glob_.h.
32882         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32883         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32884         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32885         iconv_.h.
32886         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32887         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32888         inttypes_.h.
32889         * lib/locale.in.h: Renamed from lib/locale_.h.
32890         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32891         locale_.h.
32892         * lib/math.in.h: Renamed from lib/math_.h.
32893         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32894         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32895         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32896         of netinet_in_.h. Add dependency.
32897         * lib/poll.in.h: Renamed from lib/poll_.h.
32898         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32899         * lib/search.in.h: Renamed from lib/search_.h.
32900         * modules/search (Files, Makefile.am): Use search.in.h instead of
32901         search_.h.
32902         * lib/signal.in.h: Renamed from lib/signal_.h.
32903         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32904         _signal.h.
32905         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32906         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32907         stdbool_.h.
32908         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32909         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32910         stdint_.h.
32911         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32912         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32913         stdio_.h.
32914         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32915         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32916         stdlib_.h.
32917         * lib/string.in.h: Renamed from lib/string_.h.
32918         * modules/string (Files, Makefile.am): Use string.in.h instead of
32919         string_.h.
32920         * doc/gnulib-tool.texi (Initial import): Update.
32921         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32922         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32923         of sys_select_.h. Add dependency.
32924         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32925         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32926         of sys_socket_.h.
32927         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32928         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32929         sys_stat_.h.
32930         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32931         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32932         sys_time_.h.
32933         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32934         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32935         sysexits_.h.
32936         * lib/time.in.h: Renamed from lib/time_.h.
32937         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32938         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32939         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32940         unistd_.h.
32941         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32942         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32943         wchar_.h.
32944         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32945         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32946         wctype_.h.
32947         * build-aux/bootstrap (slurp): Update.
32948         * lib/.cppi-disable: Update.
32949
32950 2007-09-30  Bruno Haible  <bruno@clisp.org>
32951
32952         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32953         Needed on BeOS.
32954
32955 2007-09-30  Bruno Haible  <bruno@clisp.org>
32956
32957         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32958
32959 2007-09-29  Bruno Haible  <bruno@clisp.org>
32960
32961         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32962
32963 2007-09-29  Bruno Haible  <bruno@clisp.org>
32964
32965         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32966         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32967         * build-aux/install-reloc: Compile also areadlink.c.
32968         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32969
32970 2007-09-29  Bruno Haible  <bruno@clisp.org>
32971
32972         * gnulib-tool (func_emit_initmacro_done): Indentation.
32973
32974 2007-09-29  Bruno Haible  <bruno@clisp.org>
32975
32976         * README: Add CVS checkout update instructions.
32977         Info from Bob Proulx <bob@proulx.com>.
32978
32979 2007-09-28  Eric Blake  <ebb9@byu.net>
32980
32981         Provide move-if-change.
32982         * build-aux/move-if-change: New file, based on best practice
32983         rather than any canonical upstream location.
32984
32985 2007-09-28  Jim Meyering  <jim@meyering.net>
32986
32987         Fix canonicalize loop-detection corner case.
32988         Do not attempt to stat the symlink values stored via seen_triple.
32989         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32990         on linux-2.6.18, (but not 2.6.22).
32991         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32992         triple_compare.  The former compares dev,ino,filename, while the latter
32993         would actually stat dirname(filename) when dev and ino were equal.
32994         * lib/hash-triple.c: Install <string.h>.
32995         (STREQ): Define.
32996         (triple_compare_ino_str): New function.
32997         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32998
32999 2007-09-28  Eric Blake  <ebb9@byu.net>
33000
33001         Enforce that AC_REPLACE_FUNCS files exist.
33002         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
33003         override check for typos.
33004
33005         Fix test-closein on Solaris 10.
33006         * tests/test-closein.c (main): Don't assume stdin can be inherited
33007         closed on all systems.
33008         * tests/test-closein.sh: Likewise.
33009         Reported by Piotr Tarnowski.
33010
33011 2007-09-28  Jim Meyering  <jim@meyering.net>
33012
33013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
33014
33015 2007-09-27  Jim Meyering  <jim@meyering.net>
33016
33017         canonicalize: Avoid a false-positive cycle failure.
33018         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
33019         Sort.  Remove cycle-check.
33020         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
33021         not cycle-check.h.
33022         (seen_triple): New function.
33023         (canonicalize_filename_mode): Use it instead of cycle-check.
33024         * tests/test-canonicalize.c: Add a test for this bug.
33025         * tests/test-canonicalize.sh: Set up and run the test.
33026
33027         New module, file-set, from coreutils.
33028         * modules/file-set: Define it.
33029         * lib/file-set.c, lib/file-set.h: Implement.
33030
33031         New module, hash-triple, from coreutils.
33032         * modules/hash-triple: Define it.
33033         * lib/hash-triple.c, lib/hash-triple.h: Implement.
33034
33035 2007-09-25  Eric Blake  <ebb9@byu.net>
33036
33037         Fix strerror on Interix.
33038         * lib/string_.h (strerror): Declare replacement.
33039         * doc/functions/strerror.texi (strerror): Document the Interix
33040         shortcoming.
33041         * modules/string (Makefile.am): Support new hooks.
33042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
33043         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
33044         gl_FUNC_STRERROR_SEPARATE.
33045         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
33046         * lib/strerror.c (rpl_strerror): Provide replacement.
33047         * modules/strerror (Depends-on): Add string.
33048         (configure.ac): Detect use of module.
33049         * tests/test-strerror.c: New file.
33050         * modules/strerror-tests: New test module.
33051         * modules/argp (Depends-on): Add strerror.
33052         * modules/error (Depends-on): Likewise.
33053         Reported by Martin Koeppe.
33054
33055 2007-09-24  Bruno Haible  <bruno@clisp.org>
33056
33057         * README: Update git instructions.
33058
33059 2007-09-24  Eric Blake  <ebb9@byu.net>
33060
33061         Revert fpending breakage from 2007-09-08.
33062         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
33063         __fpending.c.
33064
33065 2007-09-24  Jim Meyering  <jim@meyering.net>
33066
33067         filenamecat.c: Add a test.
33068         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
33069         showing how the function works when DIR is the empty string.
33070
33071 2007-09-21  Simon Josefsson  <simon@josefsson.org>
33072
33073         * tests/test-canonicalize.sh: Turn on executable bit.
33074
33075 2007-09-19  Eric Blake  <ebb9@byu.net>
33076
33077         * README: Update CVS instructions.
33078
33079 2007-09-18  Bruno Haible  <bruno@clisp.org>
33080
33081         * modules/areadlink: New file.
33082         * lib/areadlink.h (areadlink): New declaration.
33083         * lib/areadlink.c: New file, based on lib/xreadlink.c.
33084
33085 2007-09-17  Jim Meyering  <jim@meyering.net>
33086
33087         * lib/savewd.c (ESTALE) [!defined]: Define.
33088         Reported to be required on Interix by Martin Koeppe.
33089
33090 2007-09-17  Bruno Haible  <bruno@clisp.org>
33091
33092         * gnulib-tool (func_version): Use $version.
33093
33094 2007-09-16  Bruno Haible  <bruno@clisp.org>
33095
33096         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
33097         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
33098         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
33099         Reported by Greg Schafer <gschafer@zip.com.au>.
33100
33101 2007-09-15  Bruno Haible  <bruno@clisp.org>
33102
33103         * gnulib-tool (sed): Try a little harder to make bash understand the
33104         alias.
33105         Reported by Bruce Korb <bruce.korb@gmail.com>.
33106
33107 2007-09-13  Eric Blake  <ebb9@byu.net>
33108
33109         * ChangeLog: Remove conflict markers.
33110
33111 2007-09-13  Simon Josefsson  <simon@josefsson.org>
33112
33113         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
33114         Reported by Bruno Haible <bruno@clisp.org>.
33115
33116 2007-09-12  Bruno Haible  <bruno@clisp.org>
33117
33118         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
33119         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
33120         is not defined.
33121
33122 2007-09-12  Eric Blake  <ebb9@byu.net>
33123
33124         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
33125         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
33126         Autoconf definition.
33127         * modules/euidaccess (Depends-on): Add extensions, for
33128         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
33129         * modules/fnmatch (Depends-on): Likewise.
33130         * modules/getaddrinfo (Depends-on): Likewise.
33131         * modules/getdelim (Depends-on): Likewise.
33132         * modules/getline (Depends-on): Likewise.
33133         * modules/getsubopt (Depends-on): Likewise.
33134         * modules/gettext (Depends-on): Likewise.
33135         * modules/group-member (Depends-on): Likewise.
33136         * modules/mbchar (Depends-on): Likewise.
33137         * modules/memmem (Depends-on): Likewise.
33138         * modules/mempcpy (Depends-on): Likewise.
33139         * modules/memrchr (Depends-on): Likewise.
33140         * modules/pagealign_alloc (Depends-on): Likewise.
33141         * modules/readutmp (Depends-on): Likewise.
33142         * modules/stpcpy (Depends-on): Likewise.
33143         * modules/stpncpy (Depends-on): Likewise.
33144         * modules/strchrnul (Depends-on): Likewise.
33145         * modules/strndup (Depends-on): Likewise.
33146         * modules/strsep (Depends-on): Likewise.
33147         * modules/strverscmp (Depends-on): Likewise.
33148         * modules/vasprintf (Depends-on): Likewise.
33149         * modules/wcwidth (Depends-on): Likewise.
33150         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
33151         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
33152         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
33153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
33154         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33155         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33156         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
33157         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
33158         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
33159         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
33160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33161         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
33162         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
33163         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
33164         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
33165         * m4/readutmp.m4 (gl_READUTMP): Likewise.
33166         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33167         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
33168         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33169         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
33170         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33171         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
33172         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
33173         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
33174         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
33175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
33176         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
33177         so that lock.m4 can be used in gettext without extensions module.
33178
33179 2007-09-11  Bruno Haible  <bruno@clisp.org>
33180
33181         * m4/isc-posix.m4: Remove file.
33182         Suggested by Eric Blake.
33183
33184 2007-09-11  Eric Blake  <ebb9@byu.net>
33185
33186         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
33187
33188 2007-09-10  Bruno Haible  <bruno@clisp.org>
33189
33190         * posix-modules: Fix typo in error message.
33191         Reported by Matt <mkraai@beckman.com>.
33192
33193 2007-09-09  Bruno Haible  <bruno@clisp.org>
33194
33195         * doc/functions/getdelim.texi: Update list of platforms lacking the
33196         function.
33197         * doc/functions/getline.texi: Likewise.
33198
33199 2007-09-09  Jim Meyering  <jim@meyering.net>
33200
33201         * lib/hash.c (hash_initialize): Detect calloc failure.
33202         Reported by Bruno Haible.
33203
33204 2007-09-09  Bruno Haible  <bruno@clisp.org>
33205
33206         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
33207         malloc or realloc fails.
33208
33209 2007-09-09  Bruno Haible  <bruno@clisp.org>
33210
33211         * modules/getcwd (Depends-on): Add malloc-posix.
33212         * modules/glob (Depends-on): Likewise.
33213         * modules/putenv (Depends-on): Likewise.
33214         * modules/strdup (Depends-on): Likewise.
33215         * modules/getdelim (Depends-on): Add realloc-posix.
33216         * modules/read-file (Depends-on): Likewise.
33217
33218 2007-09-09  Bruno Haible  <bruno@clisp.org>
33219
33220         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
33221         (gl_FUNC_MALLOC_POSIX): Require it.
33222         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
33223         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
33224         * modules/realloc (Files): Add m4/malloc.m4.
33225         * modules/calloc (Files): Likewise.
33226
33227 2007-09-09  Bruno Haible  <bruno@clisp.org>
33228
33229         * modules/malloc-posix: New file.
33230         * modules/malloc (Depends-on): Add malloc-posix.
33231         * lib/malloc.c: Include errno.h.
33232         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
33233         and a POSIX-compatible malloc into a single function. Set ENOMEM
33234         when returning NULL.
33235         * m4/malloc.m4: New file.
33236         * doc/functions/malloc.texi: Mention the malloc-posix module.
33237         * lib/stdlib_.h (malloc): New declaration.
33238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33239         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
33240         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
33241         and HAVE_MALLOC_POSIX.
33242
33243 2007-09-09  Bruno Haible  <bruno@clisp.org>
33244
33245         * modules/realloc-posix: New file.
33246         * modules/realloc (Depends-on): Add realloc-posix.
33247         * lib/realloc.c: Include errno.h.
33248         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
33249         and a POSIX-compatible realloc into a single function. Set ENOMEM
33250         when returning NULL.
33251         * m4/realloc.m4: New file.
33252         * doc/functions/realloc.texi: Mention the realloc-posix module.
33253         * lib/stdlib_.h (realloc): New declaration.
33254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33255         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
33256         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
33257         and HAVE_REALLOC_POSIX.
33258
33259 2007-09-09  Bruno Haible  <bruno@clisp.org>
33260
33261         * modules/calloc-posix: New file.
33262         * modules/calloc (Depends-on): Add calloc-posix.
33263         * lib/calloc.c: Include errno.h.
33264         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
33265         and a POSIX-compatible calloc into a single function. Set ENOMEM
33266         when returning NULL.
33267         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
33268         * doc/functions/calloc.texi: Mention the calloc-posix module.
33269         * lib/stdlib_.h (calloc): New declaration.
33270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33271         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
33272         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
33273         and HAVE_CALLOC_POSIX.
33274
33275 2007-09-09  Bruno Haible  <bruno@clisp.org>
33276
33277         Allow for modules to show an arbitrary notice.
33278         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
33279         * gnulib-tool: New option --extract-notice.
33280         (func_usage): Document it.
33281         (sed_extract_prog): Update.
33282         (func_get_notice): New function.
33283         (func_modules_notice): New function.
33284         (func_import, func_create_testdir): Invoke it.
33285         Suggested by Jim Meyering.
33286
33287 2007-09-09  Bruno Haible  <bruno@clisp.org>
33288
33289         * gnulib-tool: New options --verbose, --quiet.
33290         (func_usage): Document them.
33291         (verbose): New variable.
33292         (func_execute_command): New function.
33293         (func_import): Don't show the module list and the file list if
33294         $verbose < 0.
33295         (func_create_testdir): Likewise. Use func_execute_command.
33296         (func_create_megatestdir): Use func_execute_command.
33297
33298 2007-09-08  Bruno Haible  <bruno@clisp.org>
33299
33300         * gnulib-tool (func_import): Prefer rsync over wget when available,
33301         for fetching the PO files.
33302
33303 2007-09-08  Bruno Haible  <bruno@clisp.org>
33304
33305         * posix-modules: New file. Portions copied from gnulib-tool.
33306         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
33307
33308 2007-09-08  Jim Meyering  <jim@meyering.net>
33309
33310         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
33311         * lib/fpending.h: Rename from __fpending.h.
33312         * lib/fpending.c: Rename from __fpending.c.
33313         Include "fpending.h", not "__fpending.h".
33314         * lib/__fpending.h, lib/__fpending.c: Remove files.
33315         * modules/fpending (Files): Reflect new file names.
33316         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
33317
33318 2007-09-08  Bruno Haible  <bruno@clisp.org>
33319
33320         * m4/inttypes-h.m4: Remove stub file.
33321
33322 2007-09-07  Simon Josefsson  <simon@josefsson.org>
33323
33324         * doc/headers/stdint.texi: Discuss #include_next issue.
33325
33326 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
33327
33328         * build-aux/bootstrap: Remove obsolete comment about wget --help.
33329
33330 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33331
33332         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
33333         in variable name.
33334
33335 2007-09-03  Jim Meyering  <jim@meyering.net>
33336
33337         New module: git-version-gen.
33338         * modules/git-version-gen: New file.
33339
33340         Import changes from coreutils for bootstrap script.
33341
33342         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
33343
33344         bootstrap: uses rsync to download the .po files
33345         * build-aux/bootstrap (po_download_command_format): New global.
33346         (download_po_files): Use rsync.
33347         (update_po_files): Don't remove .po files after download,
33348         so future rsync runs can take advantage of the copies.
33349
33350         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
33351
33352         Solve the unnecessary-.po-file-regeneration problem once and for all.
33353         * build-aux/bootstrap (download_po_files): New function, renamed from
33354         get_translations.  Now, downloads, but doesn't update LINGUAS.
33355         (update_po_files): New function.
33356
33357         bootstrap: Ignore more.
33358         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
33359         uniwidth to e.g., lib/.gitignore.
33360         (slurp): Handle the sys_stat_.h -> sys mapping, too.
33361
33362         * build-aux/bootstrap: New setting: vc_ignore.
33363         (insert_sorted_if_absent): Create $file if absent.
33364         Adapt to new, possibly empty, list: $vc_ignore.
33365
33366         bootstrap: generate more ignorable names
33367         * build-aux/bootstrap (slurp): When generating ignorable names,
33368         also map .sin to .sed, .gperf to .c, and .y to .c.
33369
33370 2007-09-03  Jim Meyering  <jim@meyering.net>
33371
33372         * build-aux/git-version-gen: New file, from coreutils.  For details, see
33373         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
33374
33375 2007-09-02  Bruno Haible  <bruno@clisp.org>
33376
33377         Fix mis-recognition of 'mcs' on QNX 6.
33378         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
33379         output contains the string "Mono".
33380         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
33381         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
33382
33383 2007-09-01  Bruno Haible  <bruno@clisp.org>
33384
33385         Fix collision between uniwidth/* and linebreak modules.
33386         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
33387         u32_width): Remove declarations.
33388         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
33389         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
33390         streq3, streq2, streq1, streq0): Remove functions.
33391         (STREQ): Remove macro.
33392         (is_cjk_encoding): Remove function.
33393         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
33394         (uc_width, u8_width, u16_width, u32_width): Remove functions.
33395         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
33396         * NEWS: Document the change.
33397
33398 2007-09-01  Bruno Haible  <bruno@clisp.org>
33399
33400         * lib/streq.h: Add double-inclusion guard.
33401
33402 2007-09-01  Karl Berry  <karl@gnu.org>
33403
33404         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
33405
33406 2007-08-28  Jim Meyering  <jim@meyering.net>
33407
33408         Rename mreadlink_with_size to areadlink_with_size.
33409         * NEWS: Document the change.
33410         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
33411         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
33412         * lib/mreadlink.h: Rename this to...
33413         * lib/areadlink.h: ...this.
33414         * modules/mreadlink-with-size: Rename this to...
33415         * modules/areadlink-with-size: ...this.
33416         * lib/canonicalize.c: Reflect the renaming.
33417         * modules/canonicalize: Likewise.
33418
33419 2007-08-26  Bruno Haible  <bruno@clisp.org>
33420
33421         * gnulib-tool (func_import): When deciding which files to remove,
33422         consider also dangling symbolic links.
33423         Reported by Eric Blake.
33424
33425 2007-08-26  Bruno Haible  <bruno@clisp.org>
33426
33427         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
33428
33429 2007-08-23  Simon Josefsson  <simon@josefsson.org>
33430
33431         * lib/readline.c: Don't include getline.h, the prototype is now
33432         found in stdio.h.
33433
33434 2007-08-23  Jim Meyering  <jim@meyering.net>
33435
33436         Getdelim touchup.
33437         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
33438         around the funlockfile call, since funlockfile never sets errno.
33439         Don't set errno upon failed realloc.
33440
33441 2007-08-22  Eric Blake  <ebb9@byu.net>
33442
33443         Getline touchups.
33444         * lib/getdelim.c (getdelim): Revert regression that required *n to
33445         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
33446         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
33447         getdelim, rather than whether implementation is missing.
33448         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
33449         * lib/stdio_.h (getline): Also declare if replacement is
33450         required.
33451         * doc/functions/getdelim.texi: New file.
33452         * doc/functions/getline.texi: Likewise.
33453         * doc/gnulib.texi (Function Substitutes): Add new files.
33454         Reported by Bruno Haible.
33455
33456 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
33457
33458         * users.txt: Add Guile.
33459
33460 2007-08-22  Eric Blake  <ebb9@byu.net>
33461
33462         * tests/test-getdelim.c (main): Use remove, not unlink.
33463         * tests/test-getline.c (main): Likewise.
33464
33465         Move getline and getdelim into stdio.h, per POSIX 200x.
33466         * modules/getline (Files): Remove getline.h.
33467         (Depends-on): Add stdio.
33468         (configure.ac): Add module indicator.
33469         * modules/getdelim (Files): Remove getdelim.h.
33470         (Depends-on): Add stdio.
33471         (configure.ac): Add module indicator.
33472         * modules/stdio (Makefile.am): Work with new indicators.
33473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33474         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
33475         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33476         * lib/getdelim.h: Delete.
33477         * lib/getline.h: Delete.
33478         * lib/stdio_.h (getdelim, getline): Declare.
33479         * modules/getdelim-tests: New module.
33480         * modules/getline-tests: Likewise.
33481         * tests/test-getdelim.c: New file.
33482         * tests/test-getline.c: Likewise.
33483         * NEWS: Document the change.
33484         * lib/getline.c: Update choice of header.
33485         * lib/csharpcomp.c: Likewise.
33486         * lib/getpass.c: Likewise.
33487         * lib/javacomp.c: Likewise.
33488         * lib/javaversion.c: Likewise.
33489         * lib/yesno.c: Likewise.
33490         * lib/getdelim.c: Likewise.
33491         (getdelim): Set errno on failure, and avoid memory leak.
33492
33493 2007-08-19  Bruno Haible  <bruno@clisp.org>
33494
33495         * modules/closein (Depends-on): Add freadahead.
33496         * lib/closein.c: Include freadahead.h.
33497         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
33498         is zero.
33499
33500 2007-08-19  Bruno Haible  <bruno@clisp.org>
33501
33502         * modules/freadahead-tests: New file.
33503         * tests/test-freadahead.sh: New file.
33504         * tests/test-freadahead.c: New file.
33505
33506         * modules/freadahead: New file.
33507         * lib/freadahead.h: New file.
33508         * lib/freadahead.c: New file.
33509         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
33510         fbufmode, fpurge, freadable, fwritable.
33511
33512 2007-08-19  Eric Blake  <ebb9@byu.net>
33513
33514         Test yesno in combination with closein.
33515         * lib/yesno.c (yesno): Document use of stdin.
33516         * modules/yesno-tests (Files): New module.
33517         * tests/test-yesno.c (main): New file.
33518         * tests/test-yesno.sh: Likewise.
33519
33520 2007-08-19  Bruno Haible  <bruno@clisp.org>
33521
33522         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
33523         * lib/fseeko.c (rpl_fseeko): Likewise.
33524         * lib/fseterr.c (fseterr): Likewise.
33525
33526 2007-08-19  Bruno Haible  <bruno@clisp.org>
33527
33528         * tests/test-lseek.c (main): Disable a test for BeOS.
33529         * doc/functions/lseek.texi: Document the BeOS bug.
33530
33531 2007-08-19  Bruno Haible  <bruno@clisp.org>
33532             Eric Blake  <ebb9@byu.net>
33533
33534         * lib/lseek.c: Include <sys/stat.h>.
33535         (rpl_lseek): Add workaround code also for Unix platforms.
33536         Needed for BeOS.
33537         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
33538         * doc/functions/lseek.texi: Document BeOS definiency.
33539
33540 2007-08-18  Bruno Haible  <bruno@clisp.org>
33541
33542         * modules/fstrcmp-tests: New file.
33543         * tests/test-fstrcmp.c: New file.
33544
33545 2007-08-18  Bruno Haible  <bruno@clisp.org>
33546
33547         * modules/fstrcmp: New file, from GNU gettext with modifications.
33548         * lib/fstrcmp.h: New file, from GNU gettext.
33549         * lib/fstrcmp.c: New file, from GNU gettext.
33550         * MODULES.html.sh (String handling): Add fstrcmp.
33551
33552 2007-08-18  Bruno Haible  <bruno@clisp.org>
33553
33554         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
33555         'bool'.
33556         (diag, compareseq): Remove const from the ctxt argument.
33557         (USE_HEURISTIC): Undefine at the end.
33558
33559 2007-08-18  Jim Meyering  <jim@meyering.net>
33560
33561         New file: lib/idcache.h
33562         * NEWS: Mention the addition.
33563         * modules/idcache (Files): Add lib/idcache.h
33564         * lib/idcache.c: Include "idcache.h".
33565         Don't include <sys/types.h>.
33566         Add a FIXME comment.
33567         Move file-scoped "static" declarations to the top.
33568         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
33569
33570 2007-08-17  Bruno Haible  <bruno@clisp.org>
33571         and Paul Eggert  <eggert@cs.ucla.edu>
33572
33573         * MODULES.html.sh: Add diffseq.
33574         * modules/diffseq: New file.
33575         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
33576         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
33577
33578 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33579
33580         Import changes from coreutils for bootstrap script.
33581
33582         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
33583
33584         * build-aux/bootstrap (slurp): Work even in environments where
33585         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
33586         current code does not slurp files whose names start with ".", and
33587         this looks like it might be a troublesome area.
33588
33589         2007-07-11  Jim Meyering  <jim@meyering.net>
33590
33591         If there's a GPL vN copyright comment, require that N == 3.
33592
33593         2007-07-08  Jim Meyering  <jim@meyering.net>
33594
33595         Run the coreutils-specific code only if tests/Makefile.am.in exists.
33596         * build-aux/bootstrap (mam_template): Move definition out of loop.
33597
33598         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
33599
33600         * build-aux/bootstrap (symlink_to_dir): Rename function from
33601         symlink_to_gnulib.  Add a directory parameter.  Update all
33602         callers.
33603         (cp_mark_as_generated): Also check for -- and link to -- files in
33604         gl/.
33605
33606         2007-07-08  Jim Meyering  <jim@meyering.net>
33607
33608         Adapt to deeper hierarchy in gnulib.
33609         * build-aux/bootstrap (symlink_to_dir): If the destination
33610         directory doesn't exist, create it. This is required at least for
33611         "lib/uniwidth/cjk.h".
33612
33613         2007-05-15  Jim Meyering  <jim@meyering.net>
33614
33615         * build-aux/bootstrap: Now that generated Makefile.am files
33616         are no longer under version control, they must be created at
33617         bootstrap time.
33618
33619 2007-08-14  Ben Pfaff  <blp@gnu.org>
33620
33621         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33622
33623 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33624
33625         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33626         given the changes below.
33627         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33628         even on hosts that have padding bits beyond the supported 64.
33629
33630 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33631
33632         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33633         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33634         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33635         depends on it.
33636         (xstrtol_error): Remove.
33637         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33638         but with a different signature.
33639         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33640         * lib/xstrtol-error.c: Include exitfail.h.
33641         (xstrtol_fatal): New function, with a different signature from the
33642         old xstrtol_error, so that the caller need not worry about passing
33643         in an exit status, or about storage management of the option argument.
33644         (xstrtol_error): Now a static function.  Redo signature to
33645         implement xstrtol_fatal.  Output the correct number of hyphens in
33646         front of the option so that the caller need not worry about
33647         storage management.
33648         (N_): New macro.
33649         (_): Remove; not used now.
33650         * modules/xstrtol: Depend on getopt.
33651         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33652         of old STRTOL_FATAL_ERROR macro.
33653         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33654         of test program.
33655         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33656         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33657
33658 2007-08-08  Eric Blake  <ebb9@byu.net>
33659
33660         * lib/xstrtol-error.c: Add missing include.
33661
33662         Move xstrtol messages into gnulib domain, when --pobase is used.
33663         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33664         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33665         * modules/xstrtol (Files): Distribute new file.
33666         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33667         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33668         * tests/test-xstrtol.c: ...into new file.
33669         * tests/test-xstrtoul.c: Also test xstrtoul.
33670         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33671         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33672         * tests/test-xstrtol.sh: Drive the tests.
33673         * tests/test-xstrtoimax.sh: Likewise.
33674         * tests/test-xstrtoumax.sh: Likewise.
33675         * modules/xstrtol-tests: New module.
33676         * modules/xstrtoimax-tests: Likewise.
33677         * modules/xstrtoumax-tests: Likewise.
33678
33679 2007-08-08  Jim Meyering  <jim@meyering.net>
33680
33681         New function: mfile_name_concat.
33682         * lib/filenamecat.c (mfile_name_concat): New function, just like
33683         file_name_concat, but return NULL upon failure rather than exiting
33684         with a diagnostic.
33685         * lib/filenamecat.h: Declare it.
33686
33687 2007-08-07  Bruno Haible  <bruno@clisp.org>
33688
33689         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33690         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33691         warning from gcc.
33692         Reported by Eric Blake.
33693
33694 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33695
33696         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33697         * modules/crypto/arcfour (License): Likewise.
33698         * modules/crypto/des-tests (License): Likewise.
33699         * modules/crypto/gc-arctwo-tests (License): Likewise.
33700         * modules/crypto/gc-des-tests (License): Likewise.
33701         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33702         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33703         * modules/crypto/gc-md2-tests (License): Likewise.
33704         * modules/crypto/gc-md4-tests (License): Likewise.
33705         * modules/crypto/gc-md5-tests (License): Likewise.
33706         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33707         * modules/crypto/gc-rijndael-tests (License): Likewise.
33708         * modules/crypto/gc-sha1-tests (License): Likewise.
33709         * modules/crypto/gc-tests (License): Likewise.
33710         * modules/crypto/hmac-md5 (License): Likewise.
33711         * modules/crypto/hmac-sha1 (License): Likewise.
33712         * modules/crypto/md2-tests (License): Likewise.
33713         * modules/crypto/md4-tests (License): Likewise.
33714         * modules/crypto/md5 (License): Likewise.
33715         * modules/crypto/rijndael (License): Likewise.
33716         * modules/crypto/sha1 (License): Likewise.
33717         * modules/memxor (License): Likewise.
33718
33719 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33720         and Bruno Haible  <bruno@clisp.org>
33721
33722         * NEWS: Describe interface changes to human, xstrtol.
33723         * lib/human.h: Include <xstrtol.h>.
33724         (human_options): Return enum strtol_error, not int.  Remove
33725         bool arg; take int * instead.
33726         * lib/human.c: Don't include "gettext.h".
33727         (_): Remove; no longer used.
33728         Don't include <xstrtol.h>, since human.h does it.
33729         (human_options): Adjust to abovementioned interface changes.
33730         Do not report error to stderr; that's now the caller's
33731         responsibility.
33732         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33733         interface change.
33734         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33735         Str, Argument_type_string.  All uses changed.  Put " argument"
33736         in diagnostics to make them clearer.  Change wording of suffix
33737         message for clarity.
33738         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33739         Argument_type_string.
33740         (STRTOL_FATAL_WARN): Remove; no longer used.
33741         * modules/human (Depends-on): Remove gettext-h.
33742
33743 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33744
33745         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33746
33747 2007-07-31  Bruno Haible  <bruno@clisp.org>
33748
33749         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33750         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33751         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33752
33753 2007-07-31  Bruno Haible  <bruno@clisp.org>
33754
33755         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33756         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33757
33758 2007-07-30  Bruno Haible  <bruno@clisp.org>
33759
33760         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33761         * modules/c-ctype (License): Likewise.
33762         * modules/c-strcase (License): Likewise.
33763         * modules/check-version (License): Likewise.
33764         * modules/iconv (License): Likewise.
33765         * modules/iconv_open (License): Likewise.
33766         * modules/read-file (License): Likewise.
33767         * modules/striconv (License): Likewise.
33768         * modules/strverscmp (License): Likewise.
33769         * modules/vasprintf (License): Likewise.
33770         * modules/crypto/des (License): Likewise.
33771         * modules/crypto/gc (License): Likewise.
33772         * modules/crypto/gc-arcfour (License): Likewise.
33773         * modules/crypto/gc-arctwo (License): Likewise.
33774         * modules/crypto/gc-des (License): Likewise.
33775         * modules/crypto/gc-hmac-md5 (License): Likewise.
33776         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33777         * modules/crypto/gc-md2 (License): Likewise.
33778         * modules/crypto/gc-md4 (License): Likewise.
33779         * modules/crypto/gc-md5 (License): Likewise.
33780         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33781         * modules/crypto/gc-random (License): Likewise.
33782         * modules/crypto/gc-rijndael (License): Likewise.
33783         * modules/crypto/gc-sha1 (License): Likewise.
33784         * modules/crypto/md2 (License): Likewise.
33785         * modules/crypto/md4 (License): Likewise.
33786
33787 2007-07-30  Jim Meyering  <jim@meyering.net>
33788
33789         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33790         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33791         it has valid stat data.  This bug would cause du not to count the
33792         sizes of inaccessible directories.
33793         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33794         in <http://bugzilla.redhat.com/250077>.
33795
33796 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33797             Bruno Haible  <bruno@clisp.org>
33798
33799         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33800         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33801         #include_next, gives a diagnostic about it, but reports no error in
33802         the exit code.
33803         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33804
33805 2007-07-24  Ben Pfaff  <blp@gnu.org>
33806
33807         Improve name: "count-one-bits" is better than "popcount".
33808         * MODULES.html.sh: Update name.
33809         * lib/popcount.h: Renamed lib/count-one-bits.h.
33810         (popcount): Renamed count_one_bits.
33811         (popcountl): Renamed count_one_bits_l.
33812         (popcountll): Renamed count_one_bits_ll.
33813         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33814         * modules/popcount: Renamed module/count-one-bits.
33815         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33816         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33817
33818 2007-07-23  Ben Pfaff  <blp@gnu.org>
33819
33820         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33821         better code generation, and add U to large constants to avoid
33822         warnings, in non-GCC case.
33823         Suggested by Bruno Haible.
33824
33825 2007-07-23  Ben Pfaff  <blp@gnu.org>
33826
33827         * lib/popcount.h: Use verify_true instead of if...abort.
33828         * modules/popcount: Depend on verify module.
33829         Suggested by Jim Meyering.
33830
33831 2007-07-23  Bruno Haible  <bruno@clisp.org>
33832
33833         * gnulib-tool (func_import): Create a .cvsignore file also when the
33834         directory is not yet in CVS but the toplevel directory is. When
33835         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33836         Reported by Karl Berry.
33837
33838 2007-07-22  Ben Pfaff  <blp@gnu.org>
33839
33840         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33841         case.
33842         Suggested by Eric Blake.
33843
33844 2007-07-22  Ben Pfaff  <blp@gnu.org>
33845
33846         New module: popcount.
33847         * MODULES.html.sh: Add popcount.
33848         * modules/popcount: New file.
33849         * modules/popcount-tests: New file.
33850         * tests/test-popcount.c: New file.
33851         * lib/popcount.h: New file.
33852         * m4/popcount.m4: New file.
33853
33854 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33855
33856         * build-aux/announce-gen: Update to GPLv3.
33857
33858         * build-aux/config.guess: Update from config.
33859
33860 2007-07-21  Bruno Haible  <bruno@clisp.org>
33861
33862         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33863         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33864
33865 2007-07-20  Jim Meyering  <jim@meyering.net>
33866
33867         * check-module: Diagnose a self-dependency.
33868
33869 2007-07-19  Bruno Haible  <bruno@clisp.org>
33870
33871         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33872         empty.
33873         Reported by Eric Blake.
33874
33875 2007-07-18  Bruno Haible  <bruno@clisp.org>
33876
33877         * gnulib-tool: New options --po-base, --po-domain.
33878         (func_usage): Document them.
33879         (pobase, po_domain): New variables.
33880         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33881         DEFAULT_TEXT_DOMAIN.
33882         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33883         (func_import): Consider pobase and po_domain. Create a po/ directory.
33884         (func_create_testdir): Set pobase and po_domain to empty.
33885         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33886         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33887
33888 2007-07-18  Bruno Haible  <bruno@clisp.org>
33889
33890         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33891         EXTRA_DIST augmentation for files in build-aux/.
33892
33893 2007-07-16  Bruno Haible  <bruno@clisp.org>
33894
33895         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33896         * modules/getdelim (License): Likewise.
33897
33898 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33899
33900         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33901         * modules/d-type (License): Likewise.
33902         * modules/extensions (License): Likewise.
33903         * modules/fnmatch (License): Likewise.
33904         * modules/fseeko (License): Likewise.
33905         * modules/getaddrinfo (License): Likewise.
33906         * modules/getline (License): Likewise.
33907         * modules/getlogin_r (License): Likewise.
33908         * modules/getpass (License): Likewise.
33909         * modules/gettimeofday (License): Likewise.
33910         * modules/glob (License): Likewise.
33911         * modules/inet_ntop (License): Likewise.
33912         * modules/malloc (License): Likewise.
33913         * modules/malloca (License): Likewise.
33914         * modules/memmem (License): Likewise.
33915         * modules/mempcpy (License): Likewise.
33916         * modules/memset (License): Likewise.
33917         * modules/minmax (License): Likewise.
33918         * modules/mktime (License): Likewise.
33919         * modules/netinet_in (License): Likewise.
33920         * modules/pathmax (License): Likewise.
33921         * modules/poll (License): Likewise.
33922         * modules/regex (License): Likewise.
33923         * modules/snprintf (License): Likewise.
33924         * modules/stdbool (License): Likewise.
33925         * modules/stdint (License): Likewise.
33926         * modules/stdio (License): Likewise.
33927         * modules/strcase (License): Likewise.
33928         * modules/strcasestr (License): Likewise.
33929         * modules/strdup (License): Likewise.
33930         * modules/string (License): Likewise.
33931         * modules/strndup (License): Likewise.
33932         * modules/strnlen (License): Likewise.
33933         * modules/strpbrk (License): Likewise.
33934         * modules/strptime (License): Likewise.
33935         * modules/strsep (License): Likewise.
33936         * modules/sys_select (License): Likewise.
33937         * modules/sys_socket (License): Likewise.
33938         * modules/sys_stat (License): Likewise.
33939         * modules/sys_time (License): Likewise.
33940         * modules/time (License): Likewise.
33941         * modules/time_r (License): Likewise.
33942         * modules/timegm (License): Likewise.
33943         * modules/unistd (License): Likewise.
33944         * modules/vsnprintf (License): Likewise.
33945         * modules/wctype (License): Likewise.
33946
33947 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33948
33949         * modules/argz (License): LGPLv2+.
33950
33951 2007-07-15  Karl Berry  <karl@gnu.org>
33952
33953         * doc/gnulib.texi: revise node structure per new fdl.texi.
33954
33955 2007-07-14  Bruno Haible  <bruno@clisp.org>
33956
33957         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33958         the output file.
33959         * lib/uniname/uninames.h: Regenerated.
33960
33961 2007-07-14  Karl Berry  <karl@gnu.org>
33962
33963         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33964         omitting sectioning and index commands.
33965
33966 2007-07-13  Bruno Haible  <bruno@clisp.org>
33967
33968         New gnulib-tool option --more-symlinks.
33969         * gnulib-tool (func_usage): Document --more-symlinks.
33970         (do_copyrights): New variable.
33971         Recognize option --more-symlinks.
33972         (func_import): Don't add a copyright notice transform to
33973         sed_transform_lib_file if do_copyrights is empty.
33974
33975 2007-07-13  Bruno Haible  <bruno@clisp.org>
33976
33977         * lib/vasnprintf.c (decimal_point_char): Define also if
33978         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33979         && !NEED_PRINTF_DIRECTIVE_A.
33980         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33981         Gary V. Vaughan <gary@gnu.org>.
33982
33983 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33984
33985         * lib/inttypes_.h: Undo previous change, since it was fixed
33986         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33987
33988 2007-07-13  Bruno Haible  <bruno@clisp.org>
33989
33990         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33991         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33992
33993 2007-07-13  Jim Meyering  <jim@meyering.net>
33994
33995         df: Don't fail for Tru64's "file-on-file mount".
33996         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33997         so we fall through and use statfs instead.  Details here:
33998         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33999         Reported by Albert Chin.
34000
34001 2007-07-13  Bruno Haible  <bruno@clisp.org>
34002
34003         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
34004         * modules/configmake (License): Likewise.
34005         * modules/gettext (License): Likewise.
34006         * modules/gettext-h (License): Likewise.
34007         * modules/include_next (License): Likewise.
34008         * modules/link-warning (License): Likewise.
34009         * modules/localcharset (License): Likewise.
34010         * modules/localename (License): Likewise.
34011         * modules/lock (License): Likewise.
34012         * modules/relocatable-lib-lgpl (License): Likewise.
34013         * modules/size_max (License): Likewise.
34014         * modules/vasnprintf (License): Likewise.
34015         * modules/wchar (License): Likewise.
34016         * modules/xsize (License): Likewise.
34017
34018 2007-07-13  Bruno Haible  <bruno@clisp.org>
34019
34020         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
34021         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
34022
34023 2007-07-12  Bruno Haible  <bruno@clisp.org>
34024
34025         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
34026         in the modules files.
34027
34028 2007-07-11  Karl Berry  <karl@gnu.org>
34029
34030         * MODULES.html.sh (func_module): use
34031          sed -e '\|^'"${includefile}"'$|d'
34032          instead of /.../d, to avoid errors on $includefile's containing /.
34033
34034 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34035
34036         * gnulib-tool (func_import): Avoid duplication of --avoid
34037         statements
34038         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
34039         names to `_' in variable names.
34040
34041 2007-07-10  Eric Blake  <ebb9@byu.net>
34042
34043         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
34044         * NEWS: Document this change.
34045
34046 2007-07-08  Bruno Haible  <bruno@clisp.org>
34047
34048         Update to Unicode 5.0.
34049         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
34050         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
34051         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
34052         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
34053         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
34054         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
34055         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
34056         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
34057         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
34058         U+10A3F, U+1D242..U+1D244.
34059         (nonspacing_table_ind): Update.
34060         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
34061         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
34062
34063 2007-07-08  Bruno Haible  <bruno@clisp.org>
34064
34065         Update to Unicode 5.0.
34066         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
34067         code transform. Extend the name index field of unicode_name_to_code and
34068         unicode_code_to_name from 16 to 24 bits.
34069         * lib/uniname/uniname.c (unicode_character_name,
34070         unicode_name_character): Add the range 0x12xxx to the code transform.
34071         * lib/uniname/uninames.h: Regenerated.
34072         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
34073
34074 2007-07-07  Bruno Haible  <bruno@clisp.org>
34075
34076         * modules/wcwidth-tests: New file.
34077         * tests/test-wcwidth.c: New file.
34078
34079         Work around MacOS X wcwidth() bug.
34080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
34081         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
34082         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
34083         original wcwidth in non-UTF-8 locales.
34084         * modules/wcwidth (Depends-on): Add localcharset, streq,
34085         uniwidth/width.
34086         * doc/functions/wcwidth.texi: Update.
34087
34088 2007-07-07  Bruno Haible  <bruno@clisp.org>
34089
34090         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
34091         (wcwidth): New declaration.
34092         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
34093         macros.
34094         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
34095         here. Prepare for creating <wchar.h> unconditionally.
34096         * modules/wchar (Depends-on): Add link-warning.
34097         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
34098         REPLACE_WCWIDTH, and GL_LINK_WARNING.
34099         * lib/wcwidth.h: Remove file.
34100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
34101         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
34102         * modules/wcwidth (Files): Remove lib/wcwidth.h.
34103         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
34104         (Include): Replace wcwidth.h with <wchar.h>.
34105         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
34106         * lib/mbchar.h: Don't include wcwidth.h.
34107         * lib/mbswidth.c: Likewise.
34108         * NEWS: Mention the change.
34109
34110 2007-07-07  Bruno Haible  <bruno@clisp.org>
34111
34112         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
34113         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
34114         definition with an external declaration.
34115         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
34116         defined as a function. Remove AC_C_INLINE requirement.
34117         * modules/wcwidth (Files): Add lib/wcwidth.c.
34118         (Makefile.am): Remove redundant statement.
34119
34120 2007-07-07  Bruno Haible  <bruno@clisp.org>
34121
34122         * MODULES.html.sh (Unicode string functions): Add the new modules.
34123
34124         * tests/uniwidth/test-u32-strwidth.c: New file.
34125         * modules/uniwidth/u32-strwidth-tests: New file.
34126
34127         * lib/uniwidth/u32-strwidth.c: New file.
34128         * modules/uniwidth/u32-strwidth: New file.
34129
34130         * tests/uniwidth/test-u16-strwidth.c: New file.
34131         * modules/uniwidth/u16-strwidth-tests: New file.
34132
34133         * lib/uniwidth/u16-strwidth.c: New file.
34134         * modules/uniwidth/u16-strwidth: New file.
34135
34136         * tests/uniwidth/test-u8-strwidth.c: New file.
34137         * modules/uniwidth/u8-strwidth-tests: New file.
34138
34139         * lib/uniwidth/u8-strwidth.c: New file.
34140         * modules/uniwidth/u8-strwidth: New file.
34141
34142         * tests/uniwidth/test-u32-width.c: New file.
34143         * modules/uniwidth/u32-width-tests: New file.
34144
34145         * lib/uniwidth/u32-width.c: New file.
34146         * modules/uniwidth/u32-width: New file.
34147
34148         * tests/uniwidth/test-u16-width.c: New file.
34149         * modules/uniwidth/u16-width-tests: New file.
34150
34151         * lib/uniwidth/u16-width.c: New file.
34152         * modules/uniwidth/u16-width: New file.
34153
34154         * tests/uniwidth/test-u8-width.c: New file.
34155         * modules/uniwidth/u8-width-tests: New file.
34156
34157         * lib/uniwidth/u8-width.c: New file.
34158         * modules/uniwidth/u8-width: New file.
34159
34160         * tests/uniwidth/test-uc_width.c: New file.
34161         * modules/uniwidth/width-tests: New file.
34162
34163         * lib/uniwidth/width.c: New file, from GNU libiconv.
34164         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
34165         * modules/uniwidth/width: New file.
34166
34167         * lib/uniwidth.h: New file, from GNU libiconv.
34168         * modules/uniwidth/base: New file.
34169
34170 2007-07-07  Bruno Haible  <bruno@clisp.org>
34171
34172         * lib/uniname.h: New file, from GNU gettext.
34173         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
34174         * lib/uniname/uninames.h: New file, from GNU gettext.
34175         * lib/uniname/uniname.c: New file, from GNU gettext.
34176         * tests/uniname/test-uninames.sh: New file.
34177         * tests/uniname/test-uninames.c: New file, from GNU gettext.
34178         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
34179         * modules/uniname/base: New file.
34180         * modules/uniname/uniname: New file.
34181         * modules/uniname/uniname-tests: New file.
34182         * MODULES.html.sh (Unicode string functions): Add the new modules.
34183
34184 2007-07-06  Bruno Haible  <bruno@clisp.org>
34185
34186         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
34187
34188 2007-07-06  Bruno Haible  <bruno@clisp.org>
34189
34190         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
34191         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
34192         includes <cygwin/sys_time.h> which includes <sys/select.h> which
34193         include <sys/time.h>.
34194         Reported by Eric Blake.
34195
34196 2007-07-06  Eric Blake  <ebb9@byu.net>
34197
34198         Fix testing canonicalize on cygwin.
34199         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34200         Revert patch from 2007-06-19.
34201         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
34202         canonicalize module is also in use.
34203         * tests/test-canonicalize.c: New file.
34204         * tests/test-canonicalize.sh: Likewise.
34205         * modules/canonicalize-tests: Likewise.
34206
34207 2007-07-06  Jim Meyering  <jim@meyering.net>
34208
34209         * lib/getugroups.c (getugroups): Detect getgrent failure.
34210         Adjust comment to reflect reality: this function may return -1.
34211
34212 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34213
34214         * build-aux/bootstrap (TP_URL,get_translations): Update to use
34215         the new TP address.
34216         (usage): Fix typo
34217         (gnulib_mk): New variable.
34218
34219 2007-07-05  Jim Meyering  <jim@meyering.net>
34220
34221         Don't let endgrent clobber errno, no matter how improbable.
34222         * lib/getugroups.c (getugroups): Save and restore errno around
34223         endgrent call.
34224
34225         Close the group DB even when failing with 2^31 or more members.
34226         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
34227
34228 2007-07-04  Jim Meyering  <jim@meyering.net>
34229
34230         * lib/getugroups.h: New file.
34231         * lib/getugroups.c: Include "getugroups.h".
34232         Remove uses of "register" keyword.
34233         Move local variable, "cp", down into scope where used.
34234         Give "username" parameter the "const" attribute.
34235         * modules/getugroups (Files): Add lib/getugroups.h
34236
34237 2007-07-04  Karl Berry  <karl@gnu.org>
34238
34239         * MODULES.html.sh (func_all_modules): Complete rename of
34240         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
34241
34242 2007-07-02  Bruno Haible  <bruno@clisp.org>
34243
34244         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
34245         mode, when inttypes.h comes from gnulib.
34246         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34247
34248 2007-07-02  Simon Josefsson  <simon@josefsson.org>
34249
34250         * NEWS: Mention lgpl module name change.
34251
34252         * modules/lgpl-2.1: Renamed from lgpl.
34253
34254         * NEWS: Mention gpl module name change.
34255
34256         * modules/gpl-3.0: New file, based on gpl-2.0.
34257
34258         * modules/gpl-2.0: Renamed from gpl.
34259
34260         * modules/gpl: Fix filename, doc/gpl.texi is now found at
34261         doc/gpl-2.0.texi.
34262
34263 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34264
34265         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
34266         #define __STDC_LIMIT_MACROS temporarily while including
34267         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
34268         Problem reported by Joel E. Denny in
34269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
34270
34271 2007-07-01  Bruno Haible  <bruno@clisp.org>
34272
34273         * lib/unistdio.h: New file.
34274         * lib/unistdio/u-asnprintf.h: New file.
34275         * lib/unistdio/u-asprintf.h: New file.
34276         * lib/unistdio/u-printf-args.c: New file.
34277         * lib/unistdio/u-printf-args.h: New file.
34278         * lib/unistdio/u-printf-parse.h: New file.
34279         * lib/unistdio/u-snprintf.h: New file.
34280         * lib/unistdio/u-sprintf.h: New file.
34281         * lib/unistdio/u-vasprintf.h: New file.
34282         * lib/unistdio/u-vsnprintf.h: New file.
34283         * lib/unistdio/u-vsprintf.h: New file.
34284         * lib/unistdio/ulc-asnprintf.c: New file.
34285         * lib/unistdio/ulc-asprintf.c: New file.
34286         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
34287         * lib/unistdio/ulc-printf-parse.c: New file.
34288         * lib/unistdio/ulc-snprintf.c: New file.
34289         * lib/unistdio/ulc-sprintf.c: New file.
34290         * lib/unistdio/ulc-vasnprintf.c: New file.
34291         * lib/unistdio/ulc-vasprintf.c: New file.
34292         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
34293         * lib/unistdio/ulc-vsnprintf.c: New file.
34294         * lib/unistdio/ulc-vsprintf.c: New file.
34295         * lib/unistdio/u8-asnprintf.c: New file.
34296         * lib/unistdio/u8-asprintf.c: New file.
34297         * lib/unistdio/u8-printf-parse.c: New file.
34298         * lib/unistdio/u8-snprintf.c: New file.
34299         * lib/unistdio/u8-sprintf.c: New file.
34300         * lib/unistdio/u8-vasnprintf.c: New file.
34301         * lib/unistdio/u8-vasprintf.c: New file.
34302         * lib/unistdio/u8-vsnprintf.c: New file.
34303         * lib/unistdio/u8-vsprintf.c: New file.
34304         * lib/unistdio/u8-u8-asnprintf.c: New file.
34305         * lib/unistdio/u8-u8-asprintf.c: New file.
34306         * lib/unistdio/u8-u8-snprintf.c: New file.
34307         * lib/unistdio/u8-u8-sprintf.c: New file.
34308         * lib/unistdio/u8-u8-vasnprintf.c: New file.
34309         * lib/unistdio/u8-u8-vasprintf.c: New file.
34310         * lib/unistdio/u8-u8-vsnprintf.c: New file.
34311         * lib/unistdio/u8-u8-vsprintf.c: New file.
34312         * lib/unistdio/u16-asnprintf.c: New file.
34313         * lib/unistdio/u16-asprintf.c: New file.
34314         * lib/unistdio/u16-printf-parse.c: New file.
34315         * lib/unistdio/u16-snprintf.c: New file.
34316         * lib/unistdio/u16-sprintf.c: New file.
34317         * lib/unistdio/u16-vasnprintf.c: New file.
34318         * lib/unistdio/u16-vasprintf.c: New file.
34319         * lib/unistdio/u16-vsnprintf.c: New file.
34320         * lib/unistdio/u16-vsprintf.c: New file.
34321         * lib/unistdio/u16-u16-asnprintf.c: New file.
34322         * lib/unistdio/u16-u16-asprintf.c: New file.
34323         * lib/unistdio/u16-u16-snprintf.c: New file.
34324         * lib/unistdio/u16-u16-sprintf.c: New file.
34325         * lib/unistdio/u16-u16-vasnprintf.c: New file.
34326         * lib/unistdio/u16-u16-vasprintf.c: New file.
34327         * lib/unistdio/u16-u16-vsnprintf.c: New file.
34328         * lib/unistdio/u16-u16-vsprintf.c: New file.
34329         * lib/unistdio/u32-asnprintf.c: New file.
34330         * lib/unistdio/u32-asprintf.c: New file.
34331         * lib/unistdio/u32-printf-parse.c: New file.
34332         * lib/unistdio/u32-snprintf.c: New file.
34333         * lib/unistdio/u32-sprintf.c: New file.
34334         * lib/unistdio/u32-vasnprintf.c: New file.
34335         * lib/unistdio/u32-vasprintf.c: New file.
34336         * lib/unistdio/u32-vsnprintf.c: New file.
34337         * lib/unistdio/u32-vsprintf.c: New file.
34338         * lib/unistdio/u32-u32-asnprintf.c: New file.
34339         * lib/unistdio/u32-u32-asprintf.c: New file.
34340         * lib/unistdio/u32-u32-snprintf.c: New file.
34341         * lib/unistdio/u32-u32-sprintf.c: New file.
34342         * lib/unistdio/u32-u32-vasnprintf.c: New file.
34343         * lib/unistdio/u32-u32-vasprintf.c: New file.
34344         * lib/unistdio/u32-u32-vsnprintf.c: New file.
34345         * lib/unistdio/u32-u32-vsprintf.c: New file.
34346         * tests/unistdio/test-ulc-asnprintf1.c: New file.
34347         * tests/unistdio/test-ulc-asnprintf1.h: New file.
34348         * tests/unistdio/test-ulc-printf1.h: New file.
34349         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
34350         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
34351         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
34352         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
34353         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
34354         * tests/unistdio/test-ulc-vasprintf1.c: New file.
34355         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
34356         * tests/unistdio/test-ulc-vsprintf1.c: New file.
34357         * tests/unistdio/test-u8-asnprintf1.c: New file.
34358         * tests/unistdio/test-u8-asnprintf1.h: New file.
34359         * tests/unistdio/test-u8-printf1.h: New file.
34360         * tests/unistdio/test-u8-vasnprintf1.c: New file.
34361         * tests/unistdio/test-u8-vasnprintf2.c: New file.
34362         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
34363         * tests/unistdio/test-u8-vasnprintf3.c: New file.
34364         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
34365         * tests/unistdio/test-u8-vasprintf1.c: New file.
34366         * tests/unistdio/test-u8-vsnprintf1.c: New file.
34367         * tests/unistdio/test-u8-vsprintf1.c: New file.
34368         * tests/unistdio/test-u16-asnprintf1.c: New file.
34369         * tests/unistdio/test-u16-asnprintf1.h: New file.
34370         * tests/unistdio/test-u16-printf1.h: New file.
34371         * tests/unistdio/test-u16-vasnprintf1.c: New file.
34372         * tests/unistdio/test-u16-vasnprintf2.c: New file.
34373         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
34374         * tests/unistdio/test-u16-vasnprintf3.c: New file.
34375         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
34376         * tests/unistdio/test-u16-vasprintf1.c: New file.
34377         * tests/unistdio/test-u16-vsnprintf1.c: New file.
34378         * tests/unistdio/test-u16-vsprintf1.c: New file.
34379         * tests/unistdio/test-u32-asnprintf1.c: New file.
34380         * tests/unistdio/test-u32-asnprintf1.h: New file.
34381         * tests/unistdio/test-u32-printf1.h: New file.
34382         * tests/unistdio/test-u32-vasnprintf1.c: New file.
34383         * tests/unistdio/test-u32-vasnprintf2.c: New file.
34384         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
34385         * tests/unistdio/test-u32-vasnprintf3.c: New file.
34386         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
34387         * tests/unistdio/test-u32-vasprintf1.c: New file.
34388         * tests/unistdio/test-u32-vsnprintf1.c: New file.
34389         * tests/unistdio/test-u32-vsprintf1.c: New file.
34390         * modules/unistdio/base: New file.
34391         * modules/unistdio/u-printf-args: New file.
34392         * modules/unistdio/ulc-asnprintf: New file.
34393         * modules/unistdio/ulc-asprintf: New file.
34394         * modules/unistdio/ulc-fprintf: New file.
34395         * modules/unistdio/ulc-printf-parse: New file.
34396         * modules/unistdio/ulc-snprintf: New file.
34397         * modules/unistdio/ulc-sprintf: New file.
34398         * modules/unistdio/ulc-vasnprintf: New file.
34399         * modules/unistdio/ulc-vasprintf: New file.
34400         * modules/unistdio/ulc-vfprintf: New file.
34401         * modules/unistdio/ulc-vsnprintf: New file.
34402         * modules/unistdio/ulc-vsprintf: New file.
34403         * modules/unistdio/u8-asnprintf: New file.
34404         * modules/unistdio/u8-asprintf: New file.
34405         * modules/unistdio/u8-printf-parse: New file.
34406         * modules/unistdio/u8-snprintf: New file.
34407         * modules/unistdio/u8-sprintf: New file.
34408         * modules/unistdio/u8-vasnprintf: New file.
34409         * modules/unistdio/u8-vasprintf: New file.
34410         * modules/unistdio/u8-vsnprintf: New file.
34411         * modules/unistdio/u8-vsprintf: New file.
34412         * modules/unistdio/u8-u8-asnprintf: New file.
34413         * modules/unistdio/u8-u8-asprintf: New file.
34414         * modules/unistdio/u8-u8-snprintf: New file.
34415         * modules/unistdio/u8-u8-sprintf: New file.
34416         * modules/unistdio/u8-u8-vasnprintf: New file.
34417         * modules/unistdio/u8-u8-vasprintf: New file.
34418         * modules/unistdio/u8-u8-vsnprintf: New file.
34419         * modules/unistdio/u8-u8-vsprintf: New file.
34420         * modules/unistdio/u16-asnprintf: New file.
34421         * modules/unistdio/u16-asprintf: New file.
34422         * modules/unistdio/u16-printf-parse: New file.
34423         * modules/unistdio/u16-snprintf: New file.
34424         * modules/unistdio/u16-sprintf: New file.
34425         * modules/unistdio/u16-vasnprintf: New file.
34426         * modules/unistdio/u16-vasprintf: New file.
34427         * modules/unistdio/u16-vsnprintf: New file.
34428         * modules/unistdio/u16-vsprintf: New file.
34429         * modules/unistdio/u16-u16-asnprintf: New file.
34430         * modules/unistdio/u16-u16-asprintf: New file.
34431         * modules/unistdio/u16-u16-snprintf: New file.
34432         * modules/unistdio/u16-u16-sprintf: New file.
34433         * modules/unistdio/u16-u16-vasnprintf: New file.
34434         * modules/unistdio/u16-u16-vasprintf: New file.
34435         * modules/unistdio/u16-u16-vsnprintf: New file.
34436         * modules/unistdio/u16-u16-vsprintf: New file.
34437         * modules/unistdio/u32-asnprintf: New file.
34438         * modules/unistdio/u32-asprintf: New file.
34439         * modules/unistdio/u32-printf-parse: New file.
34440         * modules/unistdio/u32-snprintf: New file.
34441         * modules/unistdio/u32-sprintf: New file.
34442         * modules/unistdio/u32-vasnprintf: New file.
34443         * modules/unistdio/u32-vasprintf: New file.
34444         * modules/unistdio/u32-vsnprintf: New file.
34445         * modules/unistdio/u32-vsprintf: New file.
34446         * modules/unistdio/u32-u32-asnprintf: New file.
34447         * modules/unistdio/u32-u32-asprintf: New file.
34448         * modules/unistdio/u32-u32-snprintf: New file.
34449         * modules/unistdio/u32-u32-sprintf: New file.
34450         * modules/unistdio/u32-u32-vasnprintf: New file.
34451         * modules/unistdio/u32-u32-vasprintf: New file.
34452         * modules/unistdio/u32-u32-vsnprintf: New file.
34453         * modules/unistdio/u32-u32-vsprintf: New file.
34454         * modules/unistdio/ulc-asnprintf-tests: New file.
34455         * modules/unistdio/ulc-vasnprintf-tests: New file.
34456         * modules/unistdio/ulc-vasprintf-tests: New file.
34457         * modules/unistdio/ulc-vsnprintf-tests: New file.
34458         * modules/unistdio/ulc-vsprintf-tests: New file.
34459         * modules/unistdio/u8-asnprintf-tests: New file.
34460         * modules/unistdio/u8-vasnprintf-tests: New file.
34461         * modules/unistdio/u8-vasprintf-tests: New file.
34462         * modules/unistdio/u8-vsnprintf-tests: New file.
34463         * modules/unistdio/u8-vsprintf-tests: New file.
34464         * modules/unistdio/u16-asnprintf-tests: New file.
34465         * modules/unistdio/u16-vasnprintf-tests: New file.
34466         * modules/unistdio/u16-vasprintf-tests: New file.
34467         * modules/unistdio/u16-vsnprintf-tests: New file.
34468         * modules/unistdio/u16-vsprintf-tests: New file.
34469         * modules/unistdio/u32-asnprintf-tests: New file.
34470         * modules/unistdio/u32-vasnprintf-tests: New file.
34471         * modules/unistdio/u32-vasprintf-tests: New file.
34472         * modules/unistdio/u32-vsnprintf-tests: New file.
34473         * modules/unistdio/u32-vsprintf-tests: New file.
34474         * MODULES.html.sh (Unicode string functions): Add the new modules.
34475
34476 2007-07-01  Bruno Haible  <bruno@clisp.org>
34477
34478         * lib/sprintf.c (sprintf): Limit the available length estimation,
34479         to avoid address wraparound.
34480         * lib/vsprintf.c (vsprintf): Likewise.
34481         * modules/sprintf-posix (Dependencies): Add stdint.
34482         * modules/vsprintf-posix (Dependencies): Likewise.
34483
34484 2007-07-01  Bruno Haible  <bruno@clisp.org>
34485
34486         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
34487         Windows PATH as well. Conservative double-quoting. Comments.
34488
34489 2007-07-01  Bruno Haible  <bruno@clisp.org>
34490             Eric Blake  <ebb9@byu.net>
34491             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34492
34493         * gnulib-tool (self_abspathname): Fix algorithm to cope with
34494         empty components in $PATH, denoting '.'.
34495
34496 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34497
34498         * gnulib-tool: Fix indentation.
34499         (func_create_megatestdir): Likewise.
34500         Report by Bruno Haible.
34501
34502 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34503
34504         Sync from Automake.
34505         * build-aux/gnupload: Fix shell portability issues with for loops.
34506         Report by Karl Berry.
34507
34508 2007-06-29  Simon Josefsson  <simon@josefsson.org>
34509
34510         * build-aux/maint.mk (POURL): Use translationproject.org.
34511
34512 2007-06-27  Simon Josefsson  <simon@josefsson.org>
34513             Bruno Haible  <bruno@clisp.org>
34514
34515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
34516         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
34517         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
34518         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
34519         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
34520
34521 2007-06-27  Bruno Haible  <bruno@clisp.org>
34522
34523         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
34524         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
34525
34526 2007-06-26  Karl Berry  <karl@gnu.org>
34527
34528         * MODULES.html.sh: remove xreadlink-with-size.
34529
34530 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34531
34532         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
34533         method that I hope also handles the double-include problem noted
34534         by Bruno Haible in
34535         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
34536
34537 2007-06-23  Bruno Haible  <bruno@clisp.org>
34538
34539         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34540         Don't let the 'mostlyclean' target fail if the last subdirectory could
34541         not be removed.
34542         Reported by Karl Berry.
34543
34544 2007-06-23  Bruno Haible  <bruno@clisp.org>
34545
34546         * gnulib-tool (echo): Add a speedier workaround for ksh.
34547         * tests/test-echo.sh: Likewise.
34548
34549 2007-06-23  Bruno Haible  <bruno@clisp.org>
34550
34551         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
34552         * tests/test-echo.sh: Likewise.
34553
34554 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34555
34556         * gnulib-tool (IFS): Initialize early, so we don't set it to
34557         empty later.
34558         (self_abspathname): Rewrite algorithm to set it, reindent.
34559         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
34560         (func_create_megatestdir): Merge some sed scripts.
34561
34562 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34563
34564         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
34565         exposed by Sun Studio 11 cc on Solaris 8.
34566
34567 2007-06-22  Bruno Haible  <bruno@clisp.org>
34568
34569         * gnulib-tool (echo): Ensure the echo primitive does not interpret
34570         backslashes.
34571         * tests/test-echo.sh: New file.
34572
34573 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34574
34575         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
34576         simplify `sed_replace_build_aux' scripts, they are portable but
34577         echoing them with `echo' is not.
34578         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
34579
34580 2007-06-21  Karl Berry  <karl@gnu.org>
34581
34582         * config/srclist.txt: guess we can't handle the licenses via
34583         srclist at the moment.
34584
34585 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34586
34587         * MODULES.html.sh: Add include_next.
34588         * modules/include_next: New file.
34589
34590 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34591
34592         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
34593         INCLUDE_NEXT.
34594         (gl_CHECK_NEXT_HEADERS): New macro.
34595         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
34596         the obsolescent gl_ABSOLUTE_HEADER.
34597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
34598         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
34599         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34600         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34601         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34602         * m4/math_h.m4 (gl_MATH_H): Likewise.
34603         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34604         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34605         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34606         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34607         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34608         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34609         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34610         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34612         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34613         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34614         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34615         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
34616         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34617         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34618         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34619         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34620         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34621         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34622         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34623         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34624         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34625         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34626         * lib/float_.h: Likewise.
34627         * lib/inttypes_.h: Likewise.
34628         * lib/math_.h: Likewise.
34629         * lib/search_.h: Likewise.
34630         * lib/signal_.h: Likewise.
34631         * lib/stdint_.h: Likewise.
34632         * lib/stdio_.h: Likewise.
34633         * lib/stdlib_.h: Likewise.
34634         * lib/string_.h: Likewise.
34635         * lib/sys_stat_.h: Likewise.
34636         * lib/sys_time_.h: Likewise.
34637         * lib/time_.h: Likewise.
34638         * lib/unistd_.h: Likewise.
34639         * lib/wchar_.h: Likewise.
34640         * lib/wctype_.h: Likewise.
34641         * lib/dirent_.h: Likewise.
34642         * lib/iconv_.h: Likewise.
34643         * lib/locale_.h: Likewise.
34644         * lib/netinet_in_.h: Likewise.
34645         * lib/sys_select_.h: Likewise.
34646         * lib/sys_socket_.h: Likewise.
34647         * lib/sysexits_.h: Likewise.
34648         * modules/fcntl (Depends-on): Depend on include_next, not
34649         absolute_header.
34650         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34651         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34652         * modules/fchdir: Likewise.
34653         * modules/float: Likewise.
34654         * modules/iconv_open: Likewise.
34655         * modules/inttypes: Likewise.
34656         * modules/locale: Likewise.
34657         * modules/math: Likewise.
34658         * modules/netinet_in: Likewise.
34659         * modules/search: Likewise.
34660         * modules/signal: Likewise.
34661         * modules/stdint: Likewise.
34662         * modules/stdio: Likewise.
34663         * modules/stdlib: Likewise.
34664         * modules/string: Likewise.
34665         * modules/sys_select: Likewise.
34666         * modules/sys_socket: Likewise.
34667         * modules/sys_stat: Likewise.
34668         * modules/sys_time: Likewise.
34669         * modules/sysexits: Likewise.
34670         * modules/time: Likewise.
34671         * modules/unistd: Likewise.
34672         * modules/wchar: Likewise.
34673         * modules/wctype: Likewise.
34674         * modules/sys_stat: Change maintainer to "all".
34675         * modules/unistd: Likewise.
34676
34677 2007-06-20  Karl Berry  <karl@gnu.org>
34678
34679         * config/srclist.txt: track www changes in license files.
34680
34681 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34682
34683         * build-aux/bootstrap: Remove stray dot.
34684         Make sure build_aux settings are honored when linking
34685         gnulib_extra_files.
34686
34687 2007-06-19  Eric Blake  <ebb9@byu.net>
34688
34689         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34690         Allow compilation on cygwin.
34691
34692 2007-06-19  Jim Meyering  <jim@meyering.net>
34693
34694         xreadlink-with-size: Remove module.  No longer used.
34695         Ex-callers now use xreadlink or mreadlink-with-size.
34696         * modules/xreadlink-with-size: Remove module.
34697         * lib/xreadlink-with-size.c: Remove file.
34698         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34699         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34700         just before the function definition *is* accurate.
34701
34702         Eliminate one way canonicalize_filename_mode could exit.
34703         * lib/canonicalize.c (canonicalize_filename_mode):
34704         Use mreadlink_with_size, not xreadlink_with_size.
34705
34706 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34707
34708         Detect porting problems to FreeBSD/arm, which has time_t wider than
34709         long int.  Original problem reported for GNU diff by Xin Li in
34710         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34711         * modules/getdate (Depends-on): Add intprops, verify.
34712         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34713         is an integer type no wider than long int.
34714
34715 2007-06-18  Jim Meyering  <jim@meyering.net>
34716
34717         New module: mreadlink-with-size.
34718         * MODULES.html.sh: Add mreadlink-with-size.
34719         * modules/mreadlink-with-size: New module
34720         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34721         not xreadlink-with-size.
34722         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34723
34724 2007-06-16  Bruno Haible  <bruno@clisp.org>
34725
34726         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34727         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34728         Reported by Gary V. Vaughan <gary@gnu.org>.
34729
34730 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34731
34732         Revamp lchown so that it lives in unistd.h where it belongs.
34733         * lib/lchown.h: Remove.
34734         * lib/dirchownmod.c: Don't include lib/lchown.h.
34735         * lib/fchownat.c: Likewise.
34736         * lib/openat.c: Likewise.
34737         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34738         does not follow symlinks.
34739         (EOPNOTSUPP): Define if not defined.
34740         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34741         is defined to 0.
34742         (lchown): New decl.
34743         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34744         Do not check for lchown decl.
34745         Set REPLACE_LCHOWN.
34746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34747         REPLACE_LCHOWN.
34748         * modules/chown: Make it clear it follows symlinks.
34749         * modules/lchown: Make it clear it doesn't follow symlinks.
34750         (Files): Remove lib/lchown.h
34751         (Depends-on): Add unistd.
34752         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34753         (Include): Include <unistd.h>, not "lchown.h".
34754         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34755         REPLACE_LCHOWN.
34756
34757 2007-06-15  Jim Meyering  <jim@meyering.net>
34758
34759         Change license (GPL to LGPL) of fsusage and dependents.
34760         * modules/fsusage (License): Change to LGPL.
34761         * modules/full-read (License): Likewise.
34762         * modules/full-write (License): Likewise.
34763         * modules/safe-read (License): Likewise.
34764         * modules/safe-write (License): Likewise.
34765
34766 2007-06-14  Ben Pfaff  <blp@gnu.org>
34767
34768         Missing part of allocsa -> malloca transition.
34769         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34770         gl_MALLOCA.
34771
34772 2007-06-12  Bruno Haible  <bruno@clisp.org>
34773
34774         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34775         to ia64, x86_64, i386.
34776         Reported by Eric Blake.
34777
34778 2007-06-12  Bruno Haible  <bruno@clisp.org>
34779
34780         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34781         cross-compiling to x86_64.
34782
34783 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34784
34785         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34786         glitch reported by Ralf Wildenhues in
34787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34788
34789         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34790         Vin Shelton.
34791
34792 2007-06-11  Bruno Haible  <bruno@clisp.org>
34793
34794         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34795         replacement string.
34796         Reported by Eric Blake.
34797
34798 2007-06-10  Bruno Haible  <bruno@clisp.org>
34799
34800         Prepare vasnprintf code for use with Unicode strings.
34801         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34802         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34803         TYPE_U32_STRING.
34804         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34805         a_u32_string variants.
34806         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34807         * lib/printf-args.c: Don't include config.h and the specification
34808         header if PRINTF_FETCHARGS is already defined.
34809         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34810         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34811         TYPE_U16_STRING, TYPE_U32_STRING.
34812         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34813         u16_directive, u16_directives, u32_directive, u32_directives): New
34814         types.
34815         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34816         New declarations.
34817         * lib/printf-parse.c: Don't include config.h and the specification
34818         header if PRINTF_PARSE is already defined. Eliminate the set of
34819         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34820         them now. Include c-ctype.h.
34821         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34822         directive and CHAR_T_ONLY_ASCII.
34823         * lib/vasnprintf.c: Don't include config.h and the specification header
34824         if VASNPRINTF is already defined.
34825         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34826         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34827         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34828         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34829         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34830         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34831         code accordingly.
34832         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34833         pad_ourselves also in this case, with the 'c' and 's' directives, and
34834         with a different notion of "width".
34835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34836
34837 2007-06-10  Bruno Haible  <bruno@clisp.org>
34838
34839         * modules/unistr/u32-mbsnlen: New file.
34840         * lib/unistr/u32-mbsnlen.c: New file.
34841
34842         * modules/unistr/u16-mbsnlen: New file.
34843         * lib/unistr/u16-mbsnlen.c: New file.
34844
34845         * modules/unistr/u8-mbsnlen: New file.
34846         * lib/unistr/u8-mbsnlen.c: New file.
34847
34848         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34849         declarations.
34850
34851 2007-06-10  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/string_.h (mbsnlen): New declaration.
34854         * lib/mbsnlen.c: New file.
34855         * m4/mbsnlen.m4: New file.
34856         * modules/mbsnlen: New file.
34857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34858         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34859         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34860
34861 2007-06-10  Bruno Haible  <bruno@clisp.org>
34862
34863         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34864
34865 2007-06-10  Bruno Haible  <bruno@clisp.org>
34866
34867         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34868         * lib/mbuiter.h: Likewise.
34869
34870 2007-06-10  Bruno Haible  <bruno@clisp.org>
34871
34872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34873         declaration.
34874
34875 2007-06-10  Karl Berry  <karl@gnu.org>
34876
34877         * config/srclist.txt: remove gettext entries, Bruno prefers
34878         to update individually.
34879
34880 2007-06-10  Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34883         'maxlen'. Ensure only length + width bytes are allocated, not
34884         length + 1 + width.
34885
34886 2007-06-09  Bruno Haible  <bruno@clisp.org>
34887
34888         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34889         (CHAR_T): Remove macro.
34890         (VASNPRINTF): Update.
34891
34892 2007-06-09  Bruno Haible  <bruno@clisp.org>
34893
34894         * MODULES.html.sh (Unicode string functions): Add the new modules.
34895
34896         * modules/uniconv/u32-conv-to-enc: New file.
34897         * lib/uniconv/u32-conv-to-enc.c: New file.
34898         * modules/uniconv/u32-conv-to-enc-tests: New file.
34899         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34900
34901         * modules/uniconv/u16-conv-to-enc: New file.
34902         * lib/uniconv/u16-conv-to-enc.c: New file.
34903         * lib/uniconv/u-conv-to-enc.h: New file.
34904         * modules/uniconv/u16-conv-to-enc-tests: New file.
34905         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34906
34907         * modules/uniconv/u8-conv-to-enc: New file.
34908         * lib/uniconv/u8-conv-to-enc.c: New file.
34909         * modules/uniconv/u8-conv-to-enc-tests: New file.
34910         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34911
34912         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34913         u32_conv_to_encoding): New declarations.
34914
34915 2007-06-09  Bruno Haible  <bruno@clisp.org>
34916
34917         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34918
34919 2007-06-09  Bruno Haible  <bruno@clisp.org>
34920
34921         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34922         * modules/malloca: Renamed from modules/allocsa, updated.
34923         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34924         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34925         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34926         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34927         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34928         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34929         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34930         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34931         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34932         * modules/c-strcasestr (Depends-on): Update.
34933         * lib/c-strcasestr.c: Update.
34934         * modules/c-strstr (Depends-on): Update.
34935         * lib/c-strstr.c: Update.
34936         * modules/canonicalize-lgpl (Depends-on): Update.
34937         * lib/canonicalize-lgpl.c: Update.
34938         * modules/clean-temp (Depends-on): Update.
34939         * lib/clean-temp.c: Update.
34940         * modules/csharpcomp (Depends-on): Update.
34941         * lib/csharpcomp.c: Update.
34942         * modules/csharpexec (Depends-on): Update.
34943         * lib/csharpexec.c: Update.
34944         * modules/javacomp (Depends-on): Update.
34945         * lib/javacomp.c: Update.
34946         * modules/javaexec (Depends-on): Update.
34947         * lib/javaexec.c: Update.
34948         * modules/mbscasestr (Depends-on): Update.
34949         * lib/mbscasestr.c: Update.
34950         * modules/mbsstr (Depends-on): Update.
34951         * lib/mbsstr.c: Update.
34952         * modules/setenv (Depends-on): Update.
34953         * lib/setenv.c: Update.
34954         * modules/strcasestr (Depends-on): Update.
34955         * lib/strcasestr.c: Update.
34956         * modules/striconveha (Depends-on): Update.
34957         * lib/striconveha.c: Update.
34958         * modules/relocatable-prog-wrapper (Files): Update.
34959         * lib/relocwrapper.c: Update.
34960         * build-aux/install-reloc: Update.
34961         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34962
34963 2007-06-08  Bruno Haible  <bruno@clisp.org>
34964
34965         Port to uClibc.
34966         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34967         * lib/fpurge.c (fpurge): Likewise.
34968         * lib/freading.c (freading): Likewise.
34969         * lib/fseeko.c (rpl_fseeko): Likewise.
34970         * lib/fseterr.c (fseterr): Likewise.
34971         * lib/fwriting.c (fwriting): Likewise.
34972         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34973
34974 2007-06-08  Bruno Haible  <bruno@clisp.org>
34975
34976         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34977         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34978         * modules/gettext (Files): Add m4/intlmacosx.m4.
34979
34980 2007-06-07  Bruno Haible  <bruno@clisp.org>
34981
34982         * modules/localename-tests: New file.
34983         * tests/test-localename.c: New file.
34984
34985         New module 'localename'.
34986         * lib/localename.h: New file.
34987         * lib/localename.c: New file, from GNU gettext.
34988         * m4/localename.m4: New file.
34989         * modules/localename: New file.
34990
34991 2007-06-07  Bruno Haible  <bruno@clisp.org>
34992
34993         Work around the lack of <wchar.h> on some builds of uClibc.
34994         * doc/headers/wchar.texi: Update.
34995         * lib/wchar_.h: Include <wchar.h> only if it exists.
34996         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34997         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34998         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34999         doesn't exist.
35000         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
35001         * modules/mbfile (Depends-on): Add wchar.
35002         * modules/mbiter (Depends-on): Likewise.
35003         * modules/mbuiter (Depends-on): Likewise.
35004         Reported by Simon Josefsson.
35005
35006 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
35007
35008         Work around problem reported by Steven M. Schweda in
35009         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
35010         Tru64 5.1B with the Compaq compiler environment installed declares
35011         an 'isblank' function but does not define it in the C library.
35012         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
35013         * lib/regex_internal.h (isblank): Likewise.
35014         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
35015         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35016
35017 2007-06-05  Bruno Haible  <bruno@clisp.org>
35018
35019         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
35020         ia64.
35021         * modules/printf-safe: New file.
35022         * modules/fprintf-posix (Depends-on): Add printf-safe.
35023         * modules/printf-posix (Depends-on): Likewise.
35024         * modules/snprintf-posix (Depends-on): Likewise.
35025         * modules/sprintf-posix (Depends-on): Likewise.
35026         * modules/vasnprintf-posix (Depends-on): Likewise.
35027         * modules/vasprintf-posix (Depends-on): Likewise.
35028         * modules/vfprintf-posix (Depends-on): Likewise.
35029         * modules/vprintf-posix (Depends-on): Likewise.
35030         * modules/vsnprintf-posix (Depends-on): Likewise.
35031         * modules/vsprintf-posix (Depends-on): Likewise.
35032         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
35033         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
35034         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
35035         "no" on i386, x86_64, ia64.
35036         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
35037         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
35038         on i386, x86_64, ia64.
35039         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
35040         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
35041         on i386, x86_64, ia64.
35042         * tests/test-vasnprintf-posix.c: Include float.h.
35043         (LDBL80_WORDS): New macro.
35044         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
35045         on i386, x86_64, ia64.
35046         * tests/test-vasprintf-posix.c: Include float.h.
35047         (LDBL80_WORDS): New macro.
35048         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
35049         on i386, x86_64, ia64.
35050         * tests/test-snprintf-posix.c: Include float.h.
35051         * tests/test-sprintf-posix.c: Likewise.
35052         * tests/test-vsnprintf-posix.c: Likewise.
35053         * tests/test-vsprintf-posix.c: Likewise.
35054
35055 2007-06-05  Bruno Haible  <bruno@clisp.org>
35056
35057         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
35058         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
35059         non-IEEE numbers on i386, x86_64, ia64.
35060         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
35061         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
35062         * tests/test-isnanl.h: Include float.h.
35063         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
35064
35065 2007-06-05  Bruno Haible  <bruno@clisp.org>
35066
35067         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
35068         also the %a / %A. Handle the %a / %A code before this extra handling.
35069
35070 2007-06-05  Bruno Haible  <bruno@clisp.org>
35071
35072         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
35073         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
35074
35075 2007-06-05  Bruno Haible  <bruno@clisp.org>
35076
35077         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
35078         typo in variable name.
35079
35080 2007-06-05  Eric Blake  <ebb9@byu.net>
35081
35082         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
35083         Reported by Simon Josefsson.
35084
35085 2007-06-04  Bruno Haible  <bruno@clisp.org>
35086
35087         Avoid test failures on some PowerPC platforms.
35088         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
35089         Define differently for PowerPC.
35090         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
35091         Reported by Gary V. Vaughan <gary@gnu.org>.
35092
35093 2007-06-02  Bruno Haible  <bruno@clisp.org>
35094
35095         Fix test-stdint failure on FreeBSD/ia64.
35096         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
35097         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
35098         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
35099         * doc/headers/stdint.texi: Update.
35100
35101 2007-06-01  Bruno Haible  <bruno@clisp.org>
35102
35103         * tests/test-binary-io.c (main): Pass a third argument to open().
35104         Reported by Gary V. Vaughan <gary@gnu.org>.
35105
35106 2007-06-01  Bruno Haible  <bruno@clisp.org>
35107
35108         * doc/functions/frexpl.texi: Update for mingw.
35109
35110 2007-06-01  Bruno Haible  <bruno@clisp.org>
35111
35112         * tests/test-lseek.c (main): Disable test of errno for invalid third
35113         argument.
35114         * doc/functions/lseek.texi: Update.
35115         Reported by Gary V. Vaughan <gary@gnu.org>.
35116
35117 2007-05-28  Bruno Haible  <bruno@clisp.org>
35118
35119         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
35120
35121 2007-05-31  Eric Blake  <ebb9@byu.net>
35122
35123         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
35124         cross compiling.
35125
35126 2007-05-30  Eric Blake  <ebb9@byu.net>
35127         and Bruno Haible  <bruno@clisp.org>
35128
35129         Work around mingw test failures exposed by m4-1.4.9b.
35130         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
35131         * tests/test-unistd.c: Disable uid_t and git_t tests for the
35132         moment.
35133
35134 2007-05-30  Bruno Haible  <bruno@clisp.org>
35135
35136         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
35137         assuming that they are closed. Needed on HP-UX 11.
35138
35139 2007-05-29  Bruno Haible  <bruno@clisp.org>
35140
35141         Fix a problem with #include_next.
35142         * lib/dirent_.h: Split the double-inclusion guard.
35143         * lib/fcntl_.h: Likewise.
35144         * lib/float_.h: Likewise.
35145         * lib/iconv_.h: Likewise.
35146         * lib/inttypes_.h: Likewise.
35147         * lib/locale_.h: Likewise.
35148         * lib/math_.h: Likewise.
35149         * lib/netinet_in_.h: Likewise.
35150         * lib/search_.h: Likewise.
35151         * lib/signal_.h: Likewise.
35152         * lib/stdint_.h: Likewise.
35153         * lib/stdio_.h: Likewise.
35154         * lib/stdlib_.h: Likewise.
35155         * lib/string_.h: Likewise.
35156         * lib/sys_select_.h: Likewise.
35157         * lib/sys_socket_.h: Likewise.
35158         * lib/sys_stat_.h: Likewise.
35159         * lib/sys_time_.h: Likewise.
35160         * lib/sysexits_.h: Likewise.
35161         * lib/time_.h: Likewise.
35162         * lib/unistd_.h: Likewise.
35163         * lib/wchar_.h: Likewise.
35164         * lib/wctype_.h: Likewise.
35165
35166 2007-05-29  Bruno Haible  <bruno@clisp.org>
35167
35168         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
35169         for the moment.
35170
35171 2007-05-29  Bruno Haible  <bruno@clisp.org>
35172
35173         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
35174         invocation.
35175         Reported by Eric Blake.
35176
35177 2007-05-29  Bruno Haible  <bruno@clisp.org>
35178
35179         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
35180         compiling case.
35181
35182 2007-05-29  Eric Blake  <ebb9@byu.net>
35183             Bruno Haible  <bruno@clisp.org>
35184
35185         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
35186         cross compiles.
35187
35188 2007-05-28  Eric Blake  <ebb9@byu.net>
35189
35190         * modules/closein-tests (test_closein_LDADD): Support test on
35191         cygwin with libtool.
35192
35193 2007-05-28  Bruno Haible  <bruno@clisp.org>
35194
35195         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
35196         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35197         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35198         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35199         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35200         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35201         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35202         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35203         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35204
35205 2007-05-28  Eric Blake  <ebb9@byu.net>
35206
35207         Unconditionally include <config.h> in unit tests.
35208         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
35209         * tests/test-allocsa.c, tests/test-arcfour.c,
35210         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
35211         tests/test-array_list.c, tests/test-array_oset.c,
35212         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
35213         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
35214         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
35215         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
35216         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
35217         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
35218         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
35219         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
35220         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
35221         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
35222         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
35223         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
35224         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
35225         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
35226         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
35227         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
35228         test-md5.c, test-memmem.c, test-printf-posix.c,
35229         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
35230         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
35231         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
35232         test-strcasestr.c, test-striconv.c, test-striconveh.c,
35233         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
35234         test-vasnprintf-posix2.c, test-vasnprintf.c,
35235         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
35236         test-vfprintf-posix.c, test-vprintf-posix.c,
35237         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
35238         test-xvasprintf.c: Likewise.
35239
35240 2007-05-28  Bruno Haible  <bruno@clisp.org>
35241
35242         * gnulib-tool (func_import): Remember the --with-tests command-line
35243         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
35244         Reported by Eric Blake.
35245
35246 2007-05-28  Bruno Haible  <bruno@clisp.org>
35247
35248         * modules/ftell-tests: New file.
35249         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
35250         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
35251
35252         * lib/ftell.c: New file.
35253         * modules/ftell: New file.
35254         * m4/ftell.m4: New file.
35255         * doc/functions/ftell.texi: Update.
35256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
35257         REPLACE_FTELL.
35258         * lib/stdio_.h (rpl_ftell): New declaration.
35259         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
35260         REPLACE_FTELL.
35261
35262 2007-05-28  Eric Blake  <ebb9@byu.net>
35263
35264         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
35265
35266 2007-05-28  Bruno Haible  <bruno@clisp.org>
35267
35268         * modules/fseek-tests: New file.
35269         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
35270         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
35271
35272         * lib/fseek.c: New file.
35273         * modules/fseek: New file.
35274         * m4/fseek.m4: New file.
35275         * doc/functions/fseek.texi: Update.
35276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
35277         REPLACE_FSEEK.
35278         * lib/stdio_.h (rpl_fseek): New declaration.
35279         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
35280         REPLACE_FSEEK.
35281
35282 2007-05-28  Bruno Haible  <bruno@clisp.org>
35283
35284         * lib/stdio_.h (fflush): More comments.
35285
35286 2007-05-28  Bruno Haible  <bruno@clisp.org>
35287
35288         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
35289         runtime test.
35290
35291 2007-05-28  Eric Blake  <ebb9@byu.net>
35292
35293         Improve lseek module.
35294         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
35295         * lib/unistd_.h (lseek): Scale back link warning message.
35296         * tests/test-lseek.c: Beef up test.
35297         * tests/test-lseek.sh: Exercise more facets of lseek.
35298         Reported by Bruno Haible.
35299
35300 2007-05-28  Bruno Haible  <bruno@clisp.org>
35301
35302         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
35303         to define.
35304
35305 2007-05-27  Bruno Haible  <bruno@clisp.org>
35306
35307         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
35308
35309 2007-05-27  Bruno Haible  <bruno@clisp.org>
35310
35311         * modules/openmp: New file.
35312         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
35313         Noah Misch.
35314
35315 2007-05-26  Bruno Haible  <bruno@clisp.org>
35316
35317         * modules/chdir-long (Depends-on): Add fchdir.
35318         * modules/chdir-safer (Depends-on): Likewise.
35319         * modules/fts (Depends-on): Likewise.
35320         * modules/fts-lgpl (Depends-on): Likewise.
35321         * modules/openat (Depends-on): Likewise.
35322         * modules/savewd (Depends-on): Likewise.
35323
35324 2007-05-24  Eric Blake  <ebb9@byu.net>
35325
35326         Fix lseek on mingw.
35327         * modules/lseek: New module.
35328         * m4/lseek.m4: New file.
35329         * lib/lseek.c: New file.
35330         * modules/lseek-tests: New file.
35331         * tests/test-lseek.c: New file.
35332         * tests/test-lseek.sh: New file.
35333         * MODULES.html.sh: Document lseek module.
35334         * modules/fflush (Depends-on): Add lseek, fseeko.
35335         * modules/fseeko (Depends-on): Likewise.
35336         * modules/ftello (Depends-on): Likewise.
35337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
35338         broken.
35339         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
35340         broken.
35341         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
35342         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
35343         * lib/ftello.c (rpl_ftello): Likewise.
35344         * tests/test-fseeko.c (main): Test this.
35345         * tests/test-fseeko.sh: Likewise.
35346         * tests/test-ftello.c (main): Likewise.
35347         * tests/test-ftello.sh: Likewise.
35348         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
35349         implies replacing fseek.
35350         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
35351         HAVE_FTELLO.
35352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
35353         * modules/unistd (Makefile.am): Likewise.
35354         * lib/unistd_.h (lseek): Declare a replacement.
35355         * doc/functions/lseek.texi (lseek): Document this fix.
35356         * doc/functions/fseek.texi (fseek): Likewise.
35357         * doc/functions/ftell.texi (ftell): Likewise.
35358
35359 2007-05-24  Bruno Haible  <bruno@clisp.org>
35360
35361         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
35362         in the printed representation of a NaN.
35363         * tests/test-vasprintf-posix.c (test_function): Likewise.
35364         * tests/test-snprintf-posix.h (test_function): Likewise.
35365         * tests/test-sprintf-posix.h (test_function): Likewise.
35366         Reported by Eric Blake.
35367
35368 2007-05-23  Eric Blake  <ebb9@byu.net>
35369
35370         Fix fseeko/ftello on cygwin 1.5.24.
35371         * doc/functions/fseeko.texi (fseeko): Document the fix.
35372         * doc/functions/ftello.texi (ftello): Document the fix.
35373         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
35374         * doc/functions/stdout.text (stdout): New file.
35375         * doc/functions/stderr.text (stderr): New file.
35376         * doc/gnulib.texi (Function Substitutes): Use new files.
35377         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
35378         prior to 1.7.0.
35379         * tests/test-ftello.c (main): Likewise for ftello.
35380         * tests/test-fseeko.sh: New file.
35381         * tests/test-ftello.sh: New file.
35382         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
35383         with seekable stdin.
35384         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
35385         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
35386         (gl_REPLACE_FSEEKO): New macro.
35387         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
35388         * modules/fseeko (Files): Distribute fseeko.c.
35389         * modules/ftello (Files): Distribute ftello.c.
35390         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
35391         mode.
35392         * lib/ftello.c (rpl_ftello): New file.
35393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
35394         fseeko, ftello.
35395         (gl_STDIN_LARGE_OFFSET): New macro.
35396         * modules/stdio (Makefile.am): Perform the replacement.
35397         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
35398
35399 2007-05-23  Bruno Haible  <bruno@clisp.org>
35400
35401         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
35402         GNULIB_POSIXCHECK is defined.
35403
35404 2007-05-21  Bruno Haible  <bruno@clisp.org>
35405
35406         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
35407         Check also the output for NaN arguments. When cross-compiling, guess
35408         no on IRIX.
35409         * lib/vasnprintf.c: Update comments.
35410         * tests/test-vasnprintf-posix.c (strisnan): New function.
35411         (test_function): Use it.
35412         * tests/test-vasprintf-posix.c (strisnan): New function.
35413         (test_function): Use it.
35414         * tests/test-snprintf-posix.h (strisnan): New function.
35415         (test_function): Use it.
35416         * tests/test-sprintf-posix.h (strisnan): New function.
35417         (test_function): Use it.
35418         Reported by Eric Blake.
35419
35420 2007-05-20  Bruno Haible  <bruno@clisp.org>
35421
35422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
35423         numbers that fails on BeOS.
35424         * doc/functions/frexpl.texi: Update.
35425
35426 2007-05-20  Jim Meyering  <jim@meyering.net>
35427
35428         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
35429         forced upon us by glibc-2.6.
35430
35431 2007-05-20  Bruno Haible  <bruno@clisp.org>
35432
35433         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
35434         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
35435         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
35436         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
35437         NEED_PRINTF_INFINITE.
35438         (is_infinitel): New function.
35439         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
35440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
35441         gl_PREREQ_VASNPRINTF_INFINITE.
35442         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
35443         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35444         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
35445         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
35446         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
35447         gl_PREREQ_VASNPRINTF_INFINITE.
35448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35452         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35453         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35454         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35455         * doc/functions/fprintf.texi: Update.
35456         * doc/functions/printf.texi: Update.
35457         * doc/functions/snprintf.texi: Update.
35458         * doc/functions/sprintf.texi: Update.
35459         * doc/functions/vfprintf.texi: Update.
35460         * doc/functions/vprintf.texi: Update.
35461         * doc/functions/vsnprintf.texi: Update.
35462         * doc/functions/vsprintf.texi: Update.
35463
35464 2007-05-20  Bruno Haible  <bruno@clisp.org>
35465
35466         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
35467         was not found in libc.
35468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
35469
35470 2007-05-20  Bruno Haible  <bruno@clisp.org>
35471
35472         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35473         printed as "-nan" instead of "nan".
35474         * tests/test-vasprintf-posix.c (test_function): Likewise.
35475         * tests/test-snprintf-posix.h (test_function): Likewise.
35476         * tests/test-sprintf-posix.h (test_function): Likewise.
35477         Needed for HP-UX 11.
35478
35479 2007-05-20  Jim Meyering  <jim@meyering.net>
35480
35481         Fix buggy test for the fchownat-deref bug.
35482         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
35483         symlink required for the run-test.  Without it, this test would
35484         always declare that fchownat doesn't work, and client code would
35485         unnecessarily use the replacement function with fixed libc.
35486         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
35487         Reported by Greg Schafer.
35488
35489 2007-05-19  Bruno Haible  <bruno@clisp.org>
35490
35491         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
35492         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
35493         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
35494         Needed for IRIX 6.5 and Solaris 2.5.1.
35495
35496 2007-05-19  Bruno Haible  <bruno@clisp.org>
35497
35498         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
35499         (test_function): Skip tests involving -0.0 on platforms where
35500         -0.0 = 0.0.
35501         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
35502         (test_function): Skip tests involving -0.0 on platforms where
35503         -0.0 = 0.0.
35504         * tests/test-snprintf-posix.h (have_minus_zero): New function.
35505         (test_function): Skip tests involving -0.0 on platforms where
35506         -0.0 = 0.0.
35507         * tests/test-sprintf-posix.h (have_minus_zero): New function.
35508         (test_function): Skip tests involving -0.0 on platforms where
35509         -0.0 = 0.0.
35510         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
35511         tests.
35512         * tests/test-printf-posix.h (test_function): Likewise.
35513         * tests/test-printf-posix.output: Remove all -0.0 related results.
35514         Needed for IRIX 6.5.
35515
35516 2007-05-19  Bruno Haible  <bruno@clisp.org>
35517
35518         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35519         printed as "nan0x7fffffff" instead of "nan".
35520         * tests/test-vasprintf-posix.c (test_function): Likewise.
35521         * tests/test-snprintf-posix.h (test_function): Likewise.
35522         * tests/test-sprintf-posix.h (test_function): Likewise.
35523         * tests/test-fprintf-posix.h (NaN): Remove macro.
35524         (test_function): Remove all NaN related tests.
35525         * tests/test-printf-posix.h (NaN): Remove macro.
35526         (test_function): Remove all NaN related tests.
35527         * tests/test-printf-posix.output: Remove all NaN related results.
35528         Needed for IRIX 6.5.
35529
35530 2007-05-19  Bruno Haible  <bruno@clisp.org>
35531
35532         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
35533         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
35534
35535 2007-05-19  Bruno Haible  <bruno@clisp.org>
35536
35537         * lib/float_.h: New file.
35538         * m4/float_h.m4: New file.
35539         * modules/float: New file.
35540         * modules/isnanl (Dependencies): Add float.
35541         * modules/isnanl-nolibm (Dependencies): Likewise.
35542         * modules/mathl (Dependencies): Likewise.
35543         * modules/printf-frexpl (Dependencies): Likewise.
35544         * modules/signbit (Dependencies): Likewise.
35545         * modules/vasnprintf (Dependencies): Likewise.
35546         * doc/headers/float.texi: Update.
35547
35548 2007-05-19  Jim Meyering  <jim@meyering.net>
35549
35550         * lib/utimens.c (gl_futimens): Rename from futimens,
35551         now that glibc-2.6 declares futimens.
35552         * lib/utimens.h: Likewise.
35553
35554 2007-05-19  Bruno Haible  <bruno@clisp.org>
35555
35556         Avoid test failures on mingw.
35557         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
35558         * tests/test-printf-posix.sh: Likewise.
35559         * tests/test-vfprintf-posix.sh: Likewise.
35560         * tests/test-vprintf-posix.sh: Likewise.
35561
35562 2007-05-19  Bruno Haible  <bruno@clisp.org>
35563
35564         Fix *printf result for NaN, Inf, -0.0 on mingw.
35565         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
35566         * lib/vasnprintf.c: Include math.h and isnan.h.
35567         (is_infinite_or_zero): New function.
35568         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
35569         values in the %f, %F, %e, %E, %g, %G directives.
35570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
35571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35572         gl_PRINTF_INFINITE and test its result. Invoke
35573         gl_PREREQ_VASNPRINTF_INFINITE.
35574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35581         * doc/functions/fprintf.texi: Update.
35582         * doc/functions/printf.texi: Update.
35583         * doc/functions/snprintf.texi: Update.
35584         * doc/functions/sprintf.texi: Update.
35585         * doc/functions/vfprintf.texi: Update.
35586         * doc/functions/vprintf.texi: Update.
35587         * doc/functions/vsnprintf.texi: Update.
35588         * doc/functions/vsprintf.texi: Update.
35589
35590 2007-05-19  Bruno Haible  <bruno@clisp.org>
35591
35592         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
35593         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
35594         Instead of multiplying with 10^k, set extra_zeroes to k.
35595         (scale10_round_long_double): Remove function.
35596
35597 2007-05-18  Bruno Haible  <bruno@clisp.org>
35598
35599         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
35600         introduced on 2007-05-06.
35601
35602 2007-05-18  Bruno Haible  <bruno@clisp.org>
35603
35604         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
35605         %g directives.
35606         * tests/test-vasprintf-posix.c (test_function): Likewise.
35607         * tests/test-snprintf-posix.h (test_function): Likewise.
35608         * tests/test-sprintf-posix.h (test_function): Likewise.
35609
35610 2007-05-18  Bruno Haible  <bruno@clisp.org>
35611
35612         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
35613         (strmatch): New function.
35614         (test_function): Test the %f directive on numbers of various exponents.
35615         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
35616         (strmatch): New function.
35617         (test_function): Test the %f directive on numbers of various exponents.
35618         * tests/test-snprintf-posix.h (strmatch): New function.
35619         (test_function): Test the %f directive on numbers of various exponents.
35620         * tests/test-sprintf-posix.h (strmatch): New function.
35621         (test_function): Test the %f directive on numbers of various exponents.
35622         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35623         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35624         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35625         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35626
35627 2007-05-18  Bruno Haible  <bruno@clisp.org>
35628
35629         Add support for 'long double' number output.
35630         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35631         * lib/vasnprintf.c: Include math.h and float+.h.
35632         (mp_limb_t): New type.
35633         (GMP_LIMB_BITS): New macro.
35634         (mp_twolimb_t): New type.
35635         (GMP_TWOLIMB_BITS): New macro.
35636         (mpn_t): New type.
35637         (multiply, divide, convert_to_decimal, decode_long_double,
35638         scale10_round_long_double, scale10_round_decimal_long_double,
35639         floorlog10l): New functions.
35640         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35641         for the %f, %F, %e, %E, %g, %G directives.
35642         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35643         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35644         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35645         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35647         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35648         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35649         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35650         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35651         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35652         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35653         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35654         * modules/snprintf-posix (Depends-on): Likewise.
35655         * modules/sprintf-posix (Depends-on): Likewise.
35656         * modules/vasnprintf-posix (Depends-on): Likewise.
35657         * modules/vasprintf-posix (Depends-on): Likewise.
35658         * modules/vfprintf-posix (Depends-on): Likewise.
35659         * modules/vsnprintf-posix (Depends-on): Likewise.
35660         * modules/vsprintf-posix (Depends-on): Likewise.
35661         * modules/vasnprintf (Files): Add lib/float+.h.
35662         * doc/functions/fprintf.texi: Update.
35663         * doc/functions/printf.texi: Update.
35664         * doc/functions/snprintf.texi: Update.
35665         * doc/functions/sprintf.texi: Update.
35666         * doc/functions/vfprintf.texi: Update.
35667         * doc/functions/vprintf.texi: Update.
35668         * doc/functions/vsnprintf.texi: Update.
35669         * doc/functions/vsprintf.texi: Update.
35670
35671 2007-05-18  Bruno Haible  <bruno@clisp.org>
35672
35673         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35674
35675 2007-05-18  Bruno Haible  <bruno@clisp.org>
35676
35677         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35678         for printing 64-bit integers. Needed for mingw.
35679
35680 2007-05-18  Bruno Haible  <bruno@clisp.org>
35681
35682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35683         gl_FUNC_FREXPL_WORKS.
35684         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35685
35686 2007-05-18  Bruno Haible  <bruno@clisp.org>
35687
35688         * modules/frexpl-nolibm-tests: New file.
35689
35690         * modules/frexpl-nolibm: New file.
35691         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35692
35693 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35694
35695         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35696         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35697         GCC 4.2, which otherwise issues a lot of warnings.
35698         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35699         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35700         Likewise.
35701         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35702         * modules/iconv_open (iconv.h): Likewise.
35703         * modules/locale (locale.h): Likewise.
35704         * modules/netinet_in (netinet/in.h): Likewise.
35705         * modules/sys_select (sys_select.h): Likewise.
35706         * modules/sys_socket (sys/socket.h): Likewise.
35707         * modules/sys_stat (sys/stat.h): Likewise.
35708         * modules/sysexits (sysexits.h): Likewise.
35709         * modules/unistd (unistd.h): Likewise.
35710
35711 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35712
35713         * modules/closein-tests (Makefile.am): Distribute
35714         `test-closein.sh'.
35715
35716 2007-05-17  Bruno Haible  <bruno@clisp.org>
35717
35718         * tests/test-printf-posix.output: Renamed from
35719         tests/test-fprintf-posix.out.
35720         * modules/fprintf-posix-tests: Update.
35721         * modules/printf-posix-tests: Update.
35722         * modules/vfprintf-posix-tests: Update.
35723         * modules/vprintf-posix-tests: Update.
35724         * tests/test-fprintf-posix.sh: Update.
35725         * tests/test-printf-posix.sh: Update.
35726         * tests/test-vfprintf-posix.sh: Update.
35727         * tests/test-vprintf-posix.sh: Update.
35728         Reported by Ralf Wildenhues.
35729
35730 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35731
35732         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35733         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35734         GCC 4.2, which otherwise issues a lot of warnings.
35735         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35736         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35737         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35738         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35739         it should no longer be needed.
35740         * lib/string_.h: Likewise.
35741         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35742         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35743         * modules/inttypes (inttypes.h): Likewise.
35744         * modules/math (math.h): Likewise.
35745         * modules/search (search.h): Likewise.
35746         * modules/signal (signal.h): Likewise.
35747         * modules/stdint (stdint.h): Likewise.
35748         * modules/stdio (stdio.h): Likewise.
35749         * modules/stdlib (stdlib.h): Likewise.
35750         * modules/string (string.h): Likewise.
35751         * modules/sys_time (sys/time.h): Likewise.
35752         * modules/time (time.h): Likewise.
35753         * modules/wchar (wchar.h): Likewise.
35754         * modules/wctype (wtype.h): Likewise.
35755
35756 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35757
35758         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35759
35760 2007-05-13  Bruno Haible  <bruno@clisp.org>
35761
35762         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35763         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35764         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35765         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35766         (gl_PREREQ_STRTOK_R): Don't require it here.
35767
35768 2007-05-13  Bruno Haible  <bruno@clisp.org>
35769
35770         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35771         when used in C++ mode.
35772
35773 2007-05-12  Bruno Haible  <bruno@clisp.org>
35774
35775         * lib/linebuffer.h: Tweak doc.
35776         * lib/linebuffer.c: Likewise.
35777
35778 2007-05-12  James Youngman  <jay@gnu.org>
35779
35780         * lib/linebuffer.c (readlinebuffer_delim): New function,
35781         like readlinebuffer, but use a caller-specified delimiter.
35782         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35783         as the delimiter.
35784         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35785
35786 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35787
35788         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35789         * modules/openat (Files): Remove openat-die.c.
35790         (Depends-on): Add openat-die.
35791         * modules/openat-die: New module.
35792
35793 2007-05-06  Bruno Haible  <bruno@clisp.org>
35794
35795         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35796         Update with info about Cygwin.
35797         * doc/functions/fprintf.texi: Update.
35798         * doc/functions/printf.texi: Update.
35799         * doc/functions/snprintf.texi: Update.
35800         * doc/functions/sprintf.texi: Update.
35801         * doc/functions/vfprintf.texi: Update.
35802         * doc/functions/vprintf.texi: Update.
35803         * doc/functions/vsnprintf.texi: Update.
35804         * doc/functions/vsprintf.texi: Update.
35805         Reported by Eric Blake.
35806
35807 2007-05-06  Bruno Haible  <bruno@clisp.org>
35808
35809         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35810         padding ourselves for the floating-point directives.
35811         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35814         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35815         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35816         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35817         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35818         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35819         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35820         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35821         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35822         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35823         * tests/test-snprintf-posix.h (test_function): Also check the width
35824         and some flags in the %f directive.
35825         * tests/test-sprintf-posix.h (test_function): Likewise.
35826         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35827         * tests/test-vasprintf-posix.c (test_function): Likewise.
35828         * doc/functions/fprintf.texi: Update.
35829         * doc/functions/printf.texi: Update.
35830         * doc/functions/snprintf.texi: Update.
35831         * doc/functions/sprintf.texi: Update.
35832         * doc/functions/vfprintf.texi: Update.
35833         * doc/functions/vprintf.texi: Update.
35834         * doc/functions/vsnprintf.texi: Update.
35835         * doc/functions/vsprintf.texi: Update.
35836
35837 2007-05-06  Bruno Haible  <bruno@clisp.org>
35838
35839         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35840         pass the ' flag character to sprintf or snprintf.
35841         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35844         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35845         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35853         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35854         flag.
35855         * tests/test-sprintf-posix.h (test_function): Likewise.
35856         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35857         * tests/test-vasprintf-posix.c (test_function): Likewise.
35858         * doc/functions/fprintf.texi: Update.
35859         * doc/functions/printf.texi: Update.
35860         * doc/functions/snprintf.texi: Update.
35861         * doc/functions/sprintf.texi: Update.
35862         * doc/functions/vfprintf.texi: Update.
35863         * doc/functions/vprintf.texi: Update.
35864         * doc/functions/vsnprintf.texi: Update.
35865         * doc/functions/vsprintf.texi: Update.
35866
35867 2007-05-01  Bruno Haible  <bruno@clisp.org>
35868
35869         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35870
35871 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35872
35873         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35874         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35875
35876 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35877
35878         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35879         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35881
35882 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35883
35884         * lib/argp-help.c (struct hol_entry): New member `ord'.
35885         (HOL_ENTRY_PTRCMP): Use ord for comparison
35886         (hol_sort): Initialize ord.
35887
35888 2007-05-01  Bruno Haible  <bruno@clisp.org>
35889
35890         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35891         Reported by Eric Blake.
35892         * doc/gnulib.texi (Function Substitutes): Update.
35893
35894 2007-05-01  Bruno Haible  <bruno@clisp.org>
35895
35896         * doc/functions.texi: Remove file, now redundant through
35897         doc/functions/*.texi.
35898
35899 2007-05-01  Bruno Haible  <bruno@clisp.org>
35900
35901         * modules/argp (Depends-on): Add sleep.
35902
35903 2007-05-01  Bruno Haible  <bruno@clisp.org>
35904
35905         * modules/sleep-tests: New file.
35906         * tests/test-sleep.c: New file.
35907
35908         * modules/sleep: New file.
35909         * lib/sleep.c: New file.
35910         * m4/sleep.m4: New file.
35911         * lib/unistd_.h (sleep): New declaration.
35912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35913         HAVE_SLEEP.
35914         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35915         * doc/functions/sleep.texi: Document the sleep module.
35916
35917 2007-05-01  Bruno Haible  <bruno@clisp.org>
35918
35919         * lib/sigprocmask.h: Remove file.
35920         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35921         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35922         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35923         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35924         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35925         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35926         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35927         HAVE_SIGSET_T as a shell variable.
35928         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35929         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35930         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35931         (Depends-on): Add signal. Remove verify.
35932         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35933         (Include): Mention <signal.h> instead of sigprocmask.h.
35934         * NEWS: Mention the change.
35935         * lib/fatal-signal.c: Don't include sigprocmask.h.
35936
35937 2007-05-01  Bruno Haible  <bruno@clisp.org>
35938
35939         * modules/signal: New file.
35940         * lib/signal_.h: New file.
35941         * m4/signal_h.m4: New file.
35942
35943 2007-05-01  Bruno Haible  <bruno@clisp.org>
35944
35945         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35946         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35947         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35948         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35949
35950 2007-05-01  Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35953         configure time.
35954         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35955         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35956         * modules/sys_stat (Makefile.am): Substitute their values into
35957         sys/stat.h.
35958
35959 2007-05-01  Bruno Haible  <bruno@clisp.org>
35960
35961         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35962         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35963         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35964
35965 2007-05-01  Bruno Haible  <bruno@clisp.org>
35966
35967         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35968         'assert' module here.
35969
35970 2007-05-01  Bruno Haible  <bruno@clisp.org>
35971
35972         * doc/functions/*.texi: New files.
35973         * doc/functions/google-ranking.txt: New file.
35974         * doc/gnulib.texi (Function Substitutes): New chapter.
35975         (ctime, inet_ntoa): Remove sections.
35976         * doc/ctime.texi: Remove file.
35977         * doc/inet_ntoa.texi: Remove file.
35978         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35979         dependencies.
35980         (%.info): New rule, specifying a --reference-limit.
35981
35982 2007-05-01  Bruno Haible  <bruno@clisp.org>
35983
35984         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35985
35986 2007-05-01  Bruno Haible  <bruno@clisp.org>
35987
35988         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35989         the portability of 'mkdir' to mingw systems.
35990
35991 2007-05-01  Bruno Haible  <bruno@clisp.org>
35992
35993         * doc/headers/google-ranking.txt: New file.
35994
35995 2007-04-30  Eric Blake  <ebb9@byu.net>
35996
35997         Prefer fseeko to fseek.
35998         * modules/getpass (Depends-on): Add fseeko.
35999         * lib/getpass.c (getpass): Use fseeko, not fseek.
36000
36001 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
36002
36003         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
36004         assumes the sorting is stable, while most qsort implementations
36005         are not.  Use argument addresses to ensure they never compare as
36006         equal.
36007
36008         * tests/test-argp-2.sh (usage-indent test): Fix output
36009         (func_compare): Restore diff options
36010         * tests/test-argp.c: Restore #include "progname.h"
36011
36012 2007-04-29  Bruno Haible  <bruno@clisp.org>
36013
36014         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
36015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36016         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
36017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36018         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
36019         (configure.ac): Define CHECK_SNPRINTF_POSIX.
36020         (TESTS, check_PROGRAMS): Add test-snprintf.
36021         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
36022         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
36023         (TESTS, check_PROGRAMS): Add test-vsnprintf.
36024         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
36025         assertions that fail on HP-UX, OSF/1, or IRIX.
36026         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
36027
36028 2007-04-29  Bruno Haible  <bruno@clisp.org>
36029
36030         * MODULES.html.sh (posix_functions): Remove 'contents'.
36031
36032 2007-04-29  Karl Berry  <karl@gnu.org>
36033
36034         * config/srclist.txt (gendocs_template_min): new entry.
36035
36036 2007-04-29  Bruno Haible  <bruno@clisp.org>
36037
36038         Work around fpurge bug on BSD systems.
36039         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
36040         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
36041         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
36042         fpurge to rpl_fpurge if the system already has this function.
36043         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
36044         the case where the system already has this function. Correct invariants
36045         on BSD systems.
36046         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
36047         BSD systems.
36048
36049 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36050
36051         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
36052         proposed by Sven Verdoolaege.
36053
36054         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
36055         options.
36056         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
36057         (usage and help tests): Update
36058
36059 2007-04-29  Bruno Haible  <bruno@clisp.org>
36060
36061         * tests/test-fflush.c (main): Use a file of size 17, not 10.
36062         Print more information in case of failure. Disable a test on BeOS.
36063
36064 2007-04-29  Bruno Haible  <bruno@clisp.org>
36065
36066         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
36067         This helps debugging on systems on which no gdb is available.
36068
36069 2007-04-29  Bruno Haible  <bruno@clisp.org>
36070
36071         * lib/freading.h: Improve comments.
36072         * lib/fwriting.h: Likewise.
36073         * tests/test-freading.c (main): Don't check freading immediately after
36074         repositioning. Needed for glibc.
36075
36076 2007-04-29  Bruno Haible  <bruno@clisp.org>
36077
36078         * lib/freading.c (freading): Trivial simplification.
36079
36080 2007-04-28  Bruno Haible  <bruno@clisp.org>
36081
36082         * tests/test-fwriting.c (main): Also test the interaction between
36083         fflush and fwriting.
36084         * modules/fwriting-tests (Depends-on): Add fflush.
36085
36086         * tests/test-freading.c (main): Also test the interaction between
36087         fflush and freading.
36088         * modules/freading-tests (Depends-on): Add fflush.
36089
36090 2007-04-28  Bruno Haible  <bruno@clisp.org>
36091
36092         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
36093         fseeko and ftello.
36094         Suggested by Eric Blake.
36095
36096 2007-04-28  Jim Meyering  <jim@meyering.net>
36097
36098         Avoid false-negative in gl_STDINT_H's C99 conformance test.
36099         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
36100         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
36101
36102 2007-04-27  Eric Blake  <ebb9@byu.net>
36103
36104         * doc/headers/assert.texi (assert.h): Document assert module use.
36105
36106 2007-04-27  Bruno Haible  <bruno@clisp.org>
36107
36108         * doc/headers/*.texi: New files.
36109         * doc/gnulib.texi (Header File Substitutes): New chapter.
36110         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
36111         dependencies.
36112         (standards.info ,standards.html, standards.dvi): Update dependencies.
36113         (mostlyclean, clean): New targets.
36114
36115 2007-04-27  Bruno Haible  <bruno@clisp.org>
36116
36117         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
36118         * modules/sysexits (Files, Makefile.am): Update.
36119
36120         * lib/sys_socket_.h: Renamed from lib/socket_.h.
36121         * modules/sys_socket (Files, Makefile.am): Update.
36122
36123         * lib/sys_stat_.h: Renamed from lib/stat_.h.
36124         * modules/sys_stat (Files, Makefile.am): Update.
36125
36126 2007-04-27  Eric Blake  <ebb9@byu.net>
36127
36128         * lib/freading.h: Improve comments.
36129         * lib/fwriting.h: Likewise.
36130         * lib/fflush.c: Likewise.
36131
36132         Fix closein for mingw.
36133         * modules/closein-tests: Add tests for closein.
36134         * tests/test-closein.c: New file.
36135         * tests/test-closein.sh: Likewise.
36136         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
36137         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
36138
36139 2007-04-27  Bruno Haible  <bruno@clisp.org>
36140
36141         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
36142         version is < 6.
36143         * lib/math_.h [__DECC]: Likewise.
36144         * lib/stdio_.h [__DECC]: Likewise.
36145         * lib/stdlib_.h [__DECC]: Likewise.
36146         * lib/string_.h [__DECC]: Likewise.
36147         * lib/time_.h [__DECC]: Likewise.
36148         * lib/wchar_.h [__DECC]: Likewise.
36149         * lib/wctype_.h [__DECC]: Likewise.
36150
36151 2007-04-27  Bruno Haible  <bruno@clisp.org>
36152
36153         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
36154
36155 2007-04-27  Bruno Haible  <bruno@clisp.org>
36156
36157         * lib/fflush.c: Add comments.
36158         * modules/fpurge-tests (Depends-on): Add fflush.
36159         * modules/freadable-tests (Depends-on): Likewise.
36160         * modules/fwritable-tests (Depends-on): Likewise.
36161
36162 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
36163
36164         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
36165         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
36166         Report by Bruno Haible <bruno@clisp.org>.
36167
36168 2007-04-26  Eric Blake  <ebb9@byu.net>
36169
36170         Fix fflush on mingw.
36171         * modules/fflush (Depends-on): Add freading.
36172         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
36173         but unread data.
36174
36175 2007-04-26  Eric Blake  <ebb9@byu.net>
36176         and Bruno Haible  <bruno@clisp.org>
36177
36178         Implement freading and fwriting.
36179         * lib/freading.c: New file.
36180         * lib/freading.h: Likewise.
36181         * m4/freading.m4: Likewise.
36182         * modules/freading: Likewise.
36183         * modules/freading-tests: Likewise.
36184         * tests/test-freading.c: Likewise.
36185         * lib/fwriting.c: New file.
36186         * lib/fwriting.h: Likewise.
36187         * m4/fwriting.m4: Likewise.
36188         * modules/fwriting: Likewise.
36189         * modules/fwriting-tests: Likewise.
36190         * tests/test-fwriting.c: Likewise.
36191         * MODULES.html.sh (File stream based Input/Output): Mention them.
36192
36193 2007-04-26  Bruno Haible  <bruno@clisp.org>
36194
36195         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
36196         'long' when we assume it.
36197         Suggested by Eric Blake.
36198
36199 2007-04-26  Bruno Haible  <bruno@clisp.org>
36200
36201         Ensure fseeko, ftello are declared on glibc systems.
36202         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
36203         * modules/fseeko (configure.ac-early): Likewise.
36204         * modules/ftello (configure.ac-early): Likewise.
36205         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
36206         AC_FUNC_FSEEKO for this.
36207         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
36208         (gl_CHECK_FSEEKO): Remove macro.
36209
36210 2007-04-26  Bruno Haible  <bruno@clisp.org>
36211
36212         * tests/test-fflush.c (main): Also check the ftell result after
36213         fflush and fseek/fseeko.
36214         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
36215         file descriptor position cache in the stream.
36216         * lib/fseeko.c (rpl_fseeko): Likewise.
36217
36218 2007-04-26  Bruno Haible  <bruno@clisp.org>
36219
36220         * modules/fflush-tests (Depends-on): Add fseeko.
36221
36222 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
36223             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36224
36225         * lib/argz_.h: ensure error_t definition is obtained in same
36226         mechanism system argz.h would have.
36227         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
36228         argz facilities are known bad.  Err on the side of caution if
36229         cross-compiling.
36230
36231 2007-04-25  Eric Blake  <ebb9@byu.net>
36232
36233         * lib/fpurge.c (includes): Use stdlib.h for free.
36234         * tests/test-fflush.c (main): Also test fflush-fseeko.
36235
36236 2007-04-25  Bruno Haible  <bruno@clisp.org>
36237
36238         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
36239         * lib/fseeko.c: New file.
36240         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
36241         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
36242         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
36243         gl_FUNC_FSEEKO.
36244         (gl_FUNC_FSEEKO): Invoke it.
36245         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
36246         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
36247         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
36248
36249 2007-04-25  Bruno Haible  <bruno@clisp.org>
36250
36251         * modules/fflush (Depends-on): Add ftello.
36252
36253 2007-04-25  Bruno Haible  <bruno@clisp.org>
36254
36255         * modules/ftello-tests: New file.
36256         * tests/test-ftello.c: New file.
36257
36258         * modules/ftello: New file.
36259         * m4/ftello.m4: New file.
36260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
36261         HAVE_FTELLO.
36262         * lib/stdio_.h (ftello): New declaration.
36263         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
36264         HAVE_FTELLO.
36265
36266 2007-04-25  Bruno Haible  <bruno@clisp.org>
36267
36268         * modules/fseeko-tests: New file.
36269         * tests/test-fseeko.c: New file.
36270
36271         * modules/fseeko: New file.
36272         * m4/fseeko.m4: New file.
36273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
36274         HAVE_FSEEKO.
36275         * lib/stdio_.h (fseeko): New declaration.
36276         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
36277         HAVE_FSEEKO.
36278
36279 2007-04-25  Bruno Haible  <bruno@clisp.org>
36280
36281         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
36282
36283 2007-04-25  Bruno Haible  <bruno@clisp.org>
36284
36285         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
36286         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
36287         * tests/test-unistd.c: Likewise.
36288         * tests/test-fcntl.c: Likewise.
36289
36290 2007-04-23  Eric Blake  <ebb9@byu.net>
36291
36292         * lib/fflush.c: Fix missing include.
36293         Reported by Bruno Haible.
36294
36295 2007-04-23  Bruno Haible  <bruno@clisp.org>
36296
36297         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
36298         Reported by Eric Blake.
36299
36300 2007-04-23  Bruno Haible  <bruno@clisp.org>
36301
36302         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
36303
36304 2007-04-23  Bruno Haible  <bruno@clisp.org>
36305
36306         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
36307
36308 2007-04-23  Bruno Haible  <bruno@clisp.org>
36309
36310         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
36311         Needed on HP-UX 11.
36312
36313 2007-04-16  Eric Blake  <ebb9@byu.net>
36314
36315         Make fflush rely on fpurge.
36316         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
36317         open coding all variants.
36318         * modules/fflush (Depends-on): Add fpurge and unistd.
36319         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
36320         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
36321
36322         Fix --with-tests compilation on cygwin.
36323         * modules/argmatch-tests (Makefile.am): List gnulib library first
36324         in LDADD.
36325         * modules/argp-tests (Makefile.am): Likewise.
36326         * modules/array-list-tests (Makefile.am): Likewise.
36327         * modules/array-oset-tests (Makefile.am): Likewise.
36328         * modules/avltree-list-tests (Makefile.am): Likewise.
36329         * modules/avltree-oset-tests (Makefile.am): Likewise.
36330         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36331         * modules/carray-list-tests (Makefile.am): Likewise.
36332         * modules/dirname-tests (Makefile.am): Likewise.
36333         * modules/frexp-tests (Makefile.am): Likewise.
36334         * modules/isnanl-tests (Makefile.am): Likewise.
36335         * modules/linked-list-tests (Makefile.am): Likewise.
36336         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36337         * modules/lock-tests (Makefile.am): Likewise.
36338         * modules/rbtree-list-tests (Makefile.am): Likewise.
36339         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36340         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36341         * modules/tls-tests (Makefile.am): Likewise.
36342         * modules/tsearch-tests (Makefile.am): Likewise.
36343         * modules/xvasprintf-tests (Makefile.am): Likewise.
36344
36345         Fix fpurge for cygwin.
36346         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
36347         value.
36348         * modules/fpurge-tests (Depends-on): Clean up trash.
36349
36350 2007-04-16  Simon Josefsson  <simon@josefsson.org>
36351
36352         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
36353
36354         * m4/autobuild.m4: Re-indent.
36355
36356 2007-04-13  Bruno Haible  <bruno@clisp.org>
36357
36358         * modules/fpurge-tests: New file.
36359         * tests/test-fpurge.c: New file.
36360
36361         * modules/fpurge: New file.
36362         * lib/fpurge.h: New file.
36363         * lib/fpurge.c: New file.
36364         * m4/fpurge.m4: New file.
36365
36366 2007-04-13  Bruno Haible  <bruno@clisp.org>
36367
36368         * modules/fbufmode-tests: New file.
36369         * tests/test-fbufmode.c: New file.
36370
36371         * modules/fbufmode: New file.
36372         * lib/fbufmode.h: New file.
36373         * lib/fbufmode.c: New file.
36374         * m4/fbufmode.m4: New file.
36375
36376 2007-04-13  Bruno Haible  <bruno@clisp.org>
36377
36378         * modules/fwritable-tests: New file.
36379         * tests/test-fwritable.c: New file.
36380
36381         * modules/fwritable: New file.
36382         * lib/fwritable.h: New file.
36383         * lib/fwritable.c: New file.
36384         * m4/fwritable.m4: New file.
36385
36386 2007-04-13  Bruno Haible  <bruno@clisp.org>
36387
36388         * modules/freadable-tests: New file.
36389         * tests/test-freadable.c: New file.
36390
36391         * modules/freadable: New file.
36392         * lib/freadable.h: New file.
36393         * lib/freadable.c: New file.
36394         * m4/freadable.m4: New file.
36395
36396 2007-04-13  Bruno Haible  <bruno@clisp.org>
36397
36398         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
36399         MOSTLYCLEANFILES.
36400
36401 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36402
36403         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
36404         gzip bootstrap.conf to avoid dragging in i18n machinery.
36405         (gnulib_tool_option): Use it.
36406
36407 2007-04-13  Bruno Haible  <bruno@clisp.org>
36408
36409         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
36410         %F directives.
36411         * tests/test-vasprintf-posix.c (test_function): Likewise.
36412         * tests/test-snprintf-posix.h (test_function): Likewise.
36413         * tests/test-sprintf-posix.h (test_function): Likewise.
36414         * tests/test-fprintf-posix.h (test_function): Likewise.
36415         * tests/test-printf-posix.h (test_function): Likewise.
36416         * tests/test-fprintf-posix.out: Likewise.
36417
36418 2007-04-13  Bruno Haible  <bruno@clisp.org>
36419
36420         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
36421         * modules/tls-tests (configure.ac): Likewise.
36422         Reported by Arto C. Nirkko <anirkko@insel.ch>.
36423
36424 2007-04-13  Bruno Haible  <bruno@clisp.org>
36425
36426         * lib/tls.c (glthread_tls_get): Fix return type.
36427         Patch by Arto C. Nirkko <anirkko@insel.ch>.
36428
36429 2007-04-12  Eric Blake  <ebb9@byu.net>
36430
36431         * modules/gettime (Depends-on): Remove gettime.
36432         Reported by Dmitry V. Levin.
36433
36434 2007-04-12  Bruno Haible  <bruno@clisp.org>
36435
36436         * modules/fflush (Include): Mention <stdio.h>.
36437         * modules/strtoimax (Include): Mention <inttypes.h>.
36438         * modules/strtoumax (Include): Likewise.
36439
36440 2007-04-12  Eric Blake  <ebb9@byu.net>
36441
36442         * .cvsignore: New file.
36443         * .gitignore: Likewise.
36444
36445 2007-04-12  Bruno Haible  <bruno@clisp.org>
36446
36447         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
36448         not before, since $(LDADD) often contains libgnu.a.
36449         * modules/striconv-tests (test_striconv_LDADD): Likewise.
36450         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
36451         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
36452         Needed on Cygwin.
36453
36454 2007-04-12  Eric Blake  <ebb9@byu.net>
36455
36456         Work around glibc's failure to flush stdin on fclose.
36457         * lib/closein.c (close_stdin): Flush stdin before closing.
36458
36459         Work around glibc's failure to reset seekable stdin on exit.
36460         * modules/closein: New module.
36461         * lib/closein.c: New file.
36462         * lib/closein.h: Likewise.
36463         * m4/closein.m4: Likewise.
36464         * MODULES.html.sh (File stream based Input/Output): Document it.
36465
36466 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36467
36468         * gnulib-tool: Rename generated 'autobuild' script to
36469         'do-autobuild' in --create-megatestdir output.
36470
36471         * doc/gnulib.texi (Build robot for gnulib): Fix.
36472
36473 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36474
36475         * modules/sysexits (Depends-on): Add absolute-header.
36476
36477 2007-04-12  Eric Blake  <ebb9@byu.net>
36478
36479         No need to preserve errno on success.
36480         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
36481         Reported by Bruno Haible.
36482
36483 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36484
36485         * MODULES.html.sh (Support for maintaining and releasing
36486         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
36487
36488 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36489
36490         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
36491
36492 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36493
36494         * modules/autobuild: New module.
36495
36496         * m4/autobuild.m4: New file.
36497
36498 2007-04-11  Bruno Haible  <bruno@clisp.org>
36499
36500         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
36501         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
36502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
36503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
36504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
36511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
36514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
36517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
36520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
36523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
36526         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36527         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36528         Reported by Eric Blake.
36529
36530 2007-04-11  Bruno Haible  <bruno@clisp.org>
36531
36532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
36533
36534 2007-04-10  Bruno Haible  <bruno@clisp.org>
36535
36536         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
36537         for NaN and Infinity. Needed on FreeBSD 6.1.
36538         * tests/test-vasnprintf-posix.c (test_function): Undo last change
36539         regarding results for "%010a" of Infinity and NaN.
36540         * tests/test-vasprintf-posix.c (test_function): Likewise.
36541         * tests/test-snprintf-posix.h (test_function): Likewise.
36542         * tests/test-sprintf-posix.h (test_function): Likewise.
36543         * tests/test-fprintf-posix.h (test_function): Likewise.
36544         * tests/test-printf-posix.h (test_function): Likewise.
36545         * tests/test-fprintf-posix.out: Likewise.
36546
36547 2007-04-10  Bruno Haible  <bruno@clisp.org>
36548
36549         * modules/locale-tests: New file.
36550         * tests/test-locale.c: New file.
36551
36552         * modules/locale: New file.
36553         * lib/locale_.h: New file.
36554         * m4/locale_h.m4: New file.
36555
36556 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
36557             Bruno Haible  <bruno@clisp.org>
36558
36559         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
36560         be determined, test for availability of the copysignf, copysign,
36561         copysignl functions.
36562         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
36563         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
36564         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
36565
36566 2007-04-09  Eric Blake  <ebb9@byu.net>
36567
36568         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
36569         * modules/stdio (Makefile.am): Support fflush.
36570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36571         * modules/fflush: New file.
36572         * lib/fflush.c: Likewise.
36573         * m4/fflush.m4: Likewise.
36574         * modules/fflush-tests: New test.
36575         * tests/test-fflush.c: Likewise.
36576         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
36577
36578 2007-04-06  Bruno Haible  <bruno@clisp.org>
36579
36580         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
36581         (VASNPRINTF): Use signbit for faster determination whether to print a
36582         minus sign.
36583         * modules/vasnprintf (Files): Remove lib/float+.h.
36584         * modules/fprintf-posix (Depends-on): Add signbit.
36585         * modules/snprintf-posix (Depends-on): Likewise.
36586         * modules/sprintf-posix (Depends-on): Likewise.
36587         * modules/vasnprintf-posix (Depends-on): Likewise.
36588         * modules/vasprintf-posix (Depends-on): Likewise.
36589         * modules/vfprintf-posix (Depends-on): Likewise.
36590         * modules/vsnprintf-posix (Depends-on): Likewise.
36591         * modules/vsprintf-posix (Depends-on): Likewise.
36592
36593 2007-04-06  Bruno Haible  <bruno@clisp.org>
36594
36595         * tests/test-frexp.c (main): Test also the sign bit of zero results.
36596         * tests/test-frexpl.c (main): Likewise.
36597         * tests/test-ldexpl.c (main): Likewise.
36598         * modules/frexp-tests (Depends-on): Add signbit.
36599         * modules/frexpl-tests (Depdends-on): Likewise.
36600         * modules/ldexpl-tests (Depdends-on): Likewise.
36601
36602 2007-04-06  Bruno Haible  <bruno@clisp.org>
36603
36604         * modules/signbit-tests: New file.
36605         * tests/test-signbit.c: New file.
36606
36607         * modules/signbit: New file.
36608         * lib/signbitf.c: New file.
36609         * lib/signbitd.c: New file.
36610         * lib/signbitl.c: New file.
36611         * m4/signbit.m4: New file.
36612         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
36613         (signbit): New macro.
36614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
36615         REPLACE_SIGNBIT.
36616         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
36617         REPLACE_FREXPL into math.h.
36618
36619 2007-04-06  Bruno Haible  <bruno@clisp.org>
36620
36621         * modules/isnanf-nolibm-tests: New file.
36622         * tests/test-isnanf.c: New file.
36623
36624         * modules/isnanf-nolibm: New file.
36625         * lib/isnanf.h: New file.
36626         * lib/isnanf.c: New file.
36627         * lib/isnan.c: Consider the USE_FLOAT macro.
36628         * m4/isnanf.m4: New file.
36629
36630 2007-04-06  Bruno Haible  <bruno@clisp.org>
36631
36632         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36633         (Link): New section.
36634
36635         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36636
36637 2007-04-06  Bruno Haible  <bruno@clisp.org>
36638
36639         Assume the 'long double' type.
36640         * m4/longdouble.m4: Remove file.
36641         * config/srclist.txt: Don't mention longdouble.m4.
36642         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36643         * lib/float+.h: Likewise.
36644         * lib/frexp.c: Likewise.
36645         * lib/printf-args.h: Likewise.
36646         * lib/printf-args.c: Likewise.
36647         * lib/printf-frexp.c: Likewise.
36648         * lib/printf-parse.c: Likewise.
36649         * lib/vasnprintf.c: Likewise.
36650         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36651         * m4/intl.m4: Likewise.
36652         * m4/isnanl.m4: Likewise.
36653         * m4/printf.m4: Likewise.
36654         * m4/printf-frexpl.m4: Likewise.
36655         * m4/vasnprintf.m4: Likewise.
36656         * modules/allocsa (Files): Remove m4/longdouble.m4.
36657         * modules/gettext (Files): Likewise.
36658         * modules/relocatable-prog-wrapper (Files): Likewise.
36659         * modules/vasnprintf (Files): Likewise.
36660         * modules/isnanl (Files): Likewise.
36661         (Include): Simplify.
36662         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36663         (Include): Simplify.
36664         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36665         (Include): Simplify.
36666         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36667         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36668         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36669         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36670         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36671         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36672         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36673         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36674         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36675         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36676         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36677         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36678         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36679         * tests/test-isnanl.c: Likewise.
36680         * tests/test-snprintf-posix.h: Likewise.
36681         * tests/test-sprintf-posix.h: Likewise.
36682         * tests/test-vasnprintf-posix.c: Likewise.
36683         * tests/test-vasnprintf-posix2.c: Likewise.
36684         * tests/test-vasprintf-posix.c: Likewise.
36685
36686 2007-04-06  Bruno Haible  <bruno@clisp.org>
36687
36688         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36689         * lib/math_.h [__DECC]: Include the overridden include file through
36690         #include_next, outside the double-inclusion guard.
36691         * lib/stdio_.h [__DECC]: Likewise.
36692         * lib/stdlib_.h [__DECC]: Likewise.
36693         * lib/string_.h [__DECC]: Likewise.
36694         * lib/time_.h [__DECC]: Likewise.
36695         * lib/wchar_.h [__DECC]: Likewise.
36696         * lib/wctype_.h [__DECC]: Likewise.
36697         * lib/inttypes_.h [__DECC]: Likewise.
36698         Reported by Albert Chin <china@thewrittenword.com> in
36699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36700
36701 2007-04-04  Eric Blake  <ebb9@byu.net>
36702
36703         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36704         1.5.x.
36705
36706 2007-04-04  Bruno Haible  <bruno@clisp.org>
36707
36708         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36709         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36710
36711 2007-04-04  Bruno Haible  <bruno@clisp.org>
36712
36713         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36714         results for "%010a" of Infinity and NaN.
36715         * tests/test-vasprintf-posix.c (test_function): Likewise.
36716         * tests/test-snprintf-posix.h (test_function): Likewise.
36717         * tests/test-sprintf-posix.h (test_function): Likewise.
36718         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36719         * tests/test-printf-posix.h (test_function): Likewise.
36720         * tests/test-fprintf-posix.out: Update.
36721         Needed for FreeBSD 6.1.
36722
36723 2007-04-04  Bruno Haible  <bruno@clisp.org>
36724
36725         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36726         directly used by the gnulib modules nor by gnulib-tool.
36727
36728 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36729
36730         * DEPENDENCIES: Give overall description of version dependency
36731         desirability.  Use more-typical names for apps.
36732         Add shell, coreutils, diffutils, grep, tar, gzip.
36733
36734 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36735
36736         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36737
36738 2007-04-04  Karl Berry  <karl@gnu.org>
36739
36740         * MODULES.html.sh (func_module): missing '.
36741
36742 2007-04-03  Bruno Haible  <bruno@clisp.org>
36743
36744         * modules/argmatch-tests (Makefile.am): New variable
36745         test_argmatch_LDADD.
36746         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36747         * modules/array-list-tests (Makefile.am): New variable
36748         test_array_list_LDADD.
36749         * modules/array-oset-tests (Makefile.am): New variable
36750         test_array_oset_LDADD.
36751         * modules/avltree-list-tests (Makefile.am): New variable
36752         test_avltree_list_LDADD.
36753         * modules/avltree-oset-tests (Makefile.am): New variable
36754         test_avltree_oset_LDADD.
36755         * modules/avltreehash-list-tests (Makefile.am): New variable
36756         test_avltreehash_list_LDADD.
36757         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36758         test_canonicalize_lgpl_LDADD.
36759         * modules/carray-list-tests (Makefile.am): New variable
36760         test_carray_list_LDADD.
36761         * modules/dirname-tests (Makefile.am): New variable
36762         test_dirname_LDADD.
36763         * modules/linked-list-tests (Makefile.am): New variable
36764         test_linked_list_LDADD.
36765         * modules/linkedhash-list-tests (Makefile.am): New variable
36766         test_linkedhash_list_LDADD.
36767         * modules/rbtree-list-tests (Makefile.am): New variable
36768         test_rbtree_list_LDADD.
36769         * modules/rbtree-oset-tests (Makefile.am): New variable
36770         test_rbtree_oset_LDADD.
36771         * modules/rbtreehash-list-tests (Makefile.am): New variable
36772         test_rbtreehash_list_LDADD.
36773         * modules/xvasprintf-tests (Makefile.am): New variable
36774         test_xvasprintf_LDADD.
36775         Reported by Eric Blake.
36776
36777 2007-04-03  Eric Blake  <ebb9@byu.net>
36778
36779         * DEPENDENCIES: Weaken m4 requirements.
36780
36781 2007-04-03  Bruno Haible  <bruno@clisp.org>
36782
36783         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36784         * modules/isnanl-tests (configure.ac): Likewise.
36785
36786 2007-04-03  Ben Pfaff  <blp@gnu.org>
36787
36788         * modules/iconv_open: Add $(srcdir)/ to source directory
36789         references in Makefile fragments that call gperf, to fix VPATH
36790         builds.
36791
36792 2007-04-03  Bruno Haible  <bruno@clisp.org>
36793
36794         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36795         * lib/ldexpl.c: Undo last change.
36796
36797 2007-04-03  Bruno Haible  <bruno@clisp.org>
36798
36799         * modules/printf-frexpl (Depends-on): Undo last change.
36800         (Files): Add m4/ldexpl.m4.
36801
36802 2007-04-03  Bruno Haible  <bruno@clisp.org>
36803
36804         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36805         * modules/isnanl (Link): New section.
36806
36807         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36808         * modules/frexp (Link): New section.
36809
36810         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36811         * modules/frexpl (Link): New section.
36812
36813         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36814         * modules/ldexpl (Link): New section.
36815
36816 2007-04-03  Bruno Haible  <bruno@clisp.org>
36817
36818         * modules/TEMPLATE-EXTENDED: New file.
36819         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36820
36821 2007-04-03  Bruno Haible  <bruno@clisp.org>
36822
36823         * DEPENDENCIES: New file.
36824         Suggested by Simon Josefsson.
36825
36826 2007-04-03  Bruno Haible  <bruno@clisp.org>
36827
36828         * doc/gnulib.texi: Escape @.
36829
36830 2007-04-03  James Youngman  <jay@gnu.org>
36831         and Paul Eggert  <eggert@cs.ucla.edu>
36832
36833         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36834         birthtime on all systems that have birthtime, not just those which
36835         use st_birthtimensec rather than st_birthtim.  Putting zero in
36836         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36837         that the birth time is not available for files on an NFS mount.
36838
36839 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36840
36841         * modules/memxor: Move back from crypto/, suggested by Bruno.
36842         * modules/crypto/hmac-sha1: Fix memxor dependency.
36843
36844         * modules/crypto/gc: Moved from ../.
36845
36846 2007-04-02  Eric Blake  <ebb9@byu.net>
36847
36848         * lib/ldexpl.c (includes): Avoid libm.
36849
36850         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36851
36852 2007-04-02  Bruno Haible  <bruno@clisp.org>
36853
36854         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36855         on IRIX.
36856
36857 2007-04-02  Bruno Haible  <bruno@clisp.org>
36858
36859         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36860         x86 or x86_64 platforms running MacOS X.
36861         Reported by Ryan Schmidt <@ryandesign.com>.
36862
36863 2007-04-02  Bruno Haible  <bruno@clisp.org>
36864
36865         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36866         i386.
36867
36868 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36869
36870         * modules/crypto/arcfour: Moved from ../.
36871         * modules/crypto/arcfour-tests: Moved from ../.
36872         * modules/crypto/arctwo: Moved from ../.
36873         * modules/crypto/arctwo-tests: Moved from ../.
36874         * modules/crypto/des: Moved from ../.
36875         * modules/crypto/des-tests: Moved from ../.
36876         * modules/crypto/gc-arcfour: Moved from ../.
36877         * modules/crypto/gc-arcfour-tests: Moved from ../.
36878         * modules/crypto/gc-arctwo: Moved from ../.
36879         * modules/crypto/gc-arctwo-tests: Moved from ../.
36880         * modules/crypto/gc-des: Moved from ../.
36881         * modules/crypto/gc-des-tests: Moved from ../.
36882         * modules/crypto/gc-hmac-md5: Moved from ../.
36883         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36884         * modules/crypto/gc-hmac-sha1: Moved from ../.
36885         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36886         * modules/crypto/gc-md2: Moved from ../.
36887         * modules/crypto/gc-md2-tests: Moved from ../.
36888         * modules/crypto/gc-md4: Moved from ../.
36889         * modules/crypto/gc-md4-tests: Moved from ../.
36890         * modules/crypto/gc-md5: Moved from ../.
36891         * modules/crypto/gc-md5-tests: Moved from ../.
36892         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36893         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36894         * modules/crypto/gc-random: Moved from ../.
36895         * modules/crypto/gc-rijndael: Moved from ../.
36896         * modules/crypto/gc-rijndael-tests: Moved from ../.
36897         * modules/crypto/gc-sha1: Moved from ../.
36898         * modules/crypto/gc-sha1-tests: Moved from ../.
36899         * modules/crypto/gc-tests: Moved from ../.
36900         * modules/crypto/hmac-md5: Moved from ../.
36901         * modules/crypto/hmac-md5-tests: Moved from ../.
36902         * modules/crypto/hmac-sha1: Moved from ../.
36903         * modules/crypto/hmac-sha1-tests: Moved from ../.
36904         * modules/crypto/md2: Moved from ../.
36905         * modules/crypto/md2-tests: Moved from ../.
36906         * modules/crypto/md4: Moved from ../.
36907         * modules/crypto/md4-tests: Moved from ../.
36908         * modules/crypto/md5: Moved from ../.
36909         * modules/crypto/md5-tests: Moved from ../.
36910         * modules/crypto/memxor: Moved from ../.
36911         * modules/crypto/rijndael: Moved from ../.
36912         * modules/crypto/rijndael-tests: Moved from ../.
36913         * modules/crypto/sha1: Moved from ../.
36914
36915 2007-03-30  James Youngman  <jay@gnu.org>
36916
36917         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36918         rename() to change the ctime of a file (because ctime is unaffected
36919         by rename on jfs2 on AIX 5.1).
36920         (main): Start by doing cleanup, in case a previous run failed leaving
36921         test files behind.
36922
36923 2007-03-31  Bruno Haible  <bruno@clisp.org>
36924
36925         Support old proprietary implementations of iconv.
36926         * modules/iconv_open: New file.
36927         * lib/iconv_.h: New file.
36928         * m4/iconv_h.m4: New file.
36929         * lib/iconv_open.c: New file.
36930         * lib/iconv_open-aix.gperf: New file.
36931         * lib/iconv_open-hpux.gperf: New file.
36932         * lib/iconv_open-irix.gperf: New file.
36933         * lib/iconv_open-osf.gperf: New file.
36934         * m4/iconv_open.m4: New file.
36935         * modules/linebreak (Depends-on): Add iconv_open.
36936         * modules/striconv (Depends-on): Likewise.
36937         * modules/striconveh (Depends-on): Likewise.
36938         * modules/unicodeio (Depends-on): Likewise.
36939         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36940         (iconv_t)(-1).
36941         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36942         conversion if cd is (iconv_t)(-1).
36943         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36944         is not possible.
36945
36946 2007-03-31  Bruno Haible  <bruno@clisp.org>
36947
36948         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36949         work on Solaris either. Protect also second use of "autodetect_jp".
36950
36951 2007-03-31  Bruno Haible  <bruno@clisp.org>
36952
36953         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36954         the function is not present.
36955
36956 2007-03-31  Bruno Haible  <bruno@clisp.org>
36957
36958         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36959         the function is not present.
36960
36961 2007-03-31  Bruno Haible  <bruno@clisp.org>
36962
36963         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36964         a bug in HP-UX iconv_open().
36965
36966 2007-03-31  Bruno Haible  <bruno@clisp.org>
36967
36968         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36969         (Mathematics <math.h>): New section, add fpieee.
36970         (Input/output <stdio.h>): Add fseterr.
36971         (Mathematics <math.h>): New section, add printf-frexp.
36972         (Container data structures): Add sublist.
36973         (Core language properties): Add fpucw, inline.
36974         (Functions for greatest-width integer types <inttypes.h>): Add
36975         imaxabs, imaxdiv, inttypes.
36976         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36977         isnanl-nolibm, ldexp.
36978         (Mathematics <math.h>): New section, add printf-frexpl.
36979         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36980         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36981         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36982         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36983         (Unicode string functions): Add unistr/u*-mbtoucr.
36984         (Java): Add javacomp-script, javaexec-script.
36985         (C#): Add csharpcomp-script, csharpexec-script.
36986         (Support for building libraries and executables): Add havelib,
36987         relocatable-*.
36988         (Support for maintaining and releasing projects): Renamed from
36989         'Support for maintaining and release projects'. Add announce-gen.
36990
36991 2007-03-31  Bruno Haible  <bruno@clisp.org>
36992
36993         * README: Talk primarily about git.
36994         (git and CVS): Renamed from CVS.
36995         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36996         gnulib is available through git.
36997         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36998
36999 2007-03-30  Bruno Haible  <bruno@clisp.org>
37000
37001         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
37002         * lib/poll_.h: Likewise.
37003         * lib/stat_.h: Likewise.
37004         * lib/sys_time_.h: Likewise.
37005         * lib/sysexit_.h: Likewise.
37006         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
37007         * lib/stdbool_.h: Likewise.
37008         * lib/byteswap_.h: Add double-inclusion guard.
37009
37010 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
37011
37012         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
37013
37014 2007-03-30  Karl Berry  <karl@gnu.org>
37015
37016         * config/srclist-update: double space after USA in the license
37017         substitution, since that's how it's usually (?) written.
37018
37019 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37020
37021         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
37022         reported by Bruno Haible.
37023
37024 2007-03-29  Bruno Haible  <bruno@clisp.org>
37025
37026         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
37027         a bug in AIX iconv().
37028
37029 2007-03-29  Bruno Haible  <bruno@clisp.org>
37030
37031         * modules/ldexpl-tests: New file.
37032         * tests/test-ldexpl.c: New file.
37033
37034 2007-03-29  Bruno Haible  <bruno@clisp.org>
37035
37036         * lib/ldexpl.c: Include fpucw.h.
37037         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
37038         multiplication.
37039         * modules/ldexpl (Depends-on): Add fpucw.
37040
37041 2007-03-29  Bruno Haible  <bruno@clisp.org>
37042
37043         * modules/ldexpl: New file.
37044         * m4/ldexpl.m4: New file.
37045         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
37046         set.
37047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
37048         REPLACE_LDEXPL.
37049         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
37050         REPLACE_LDEXPL.
37051         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
37052         gl_FUNC_LDEXPL_WORKS.
37053         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
37054         * modules/mathl (Files): Remove lib/ldexpl.c.
37055         (Depends-on): Add ldexpl.
37056
37057 2007-03-29  Bruno Haible  <bruno@clisp.org>
37058
37059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
37060
37061 2007-03-29  Bruno Haible  <bruno@clisp.org>
37062
37063         * tests/test-striconveh.c (main): Don't assume that a direct conversion
37064         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
37065         and possibly also HP-UX.
37066         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
37067         work on AIX, IRIX, HP-UX, OSF/1.
37068         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37069         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37070         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37071         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37072         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
37073         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37074
37075 2007-03-29  Bruno Haible  <bruno@clisp.org>
37076
37077         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
37078
37079 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
37080
37081         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
37082         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
37083
37084 2007-03-29  Eric Blake  <ebb9@byu.net>
37085
37086         * lib/acl-internal.h: Remove redundant include.
37087         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
37088         Cygwin when a file is locked.
37089
37090 2007-03-29  Bruno Haible  <bruno@clisp.org>
37091
37092         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
37093         file.
37094         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
37095
37096 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
37097
37098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
37099         try to remove a parent directory if the child couldn't be removed
37100         (except for the first rmdir, which could fail because the child
37101         doesn't exist).  Problem reported by Jeff Blaine in
37102         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
37103
37104 2007-03-28  Bruno Haible  <bruno@clisp.org>
37105
37106         * lib/striconveh.c (utf8conv_carefully): New function.
37107         (mem_cd_iconveh_internal): Invoke it.
37108
37109 2007-03-28  Bruno Haible  <bruno@clisp.org>
37110
37111         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
37112         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
37113         input.
37114         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
37115         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
37116         unistr/u8-uctomb.
37117
37118 2007-03-28  Bruno Haible  <bruno@clisp.org>
37119
37120         * modules/unistr/u8-mbtoucr: New file.
37121         * lib/unistr/u8-mbtoucr.c: New file.
37122         * modules/unistr/u16-mbtoucr: New file.
37123         * lib/unistr/u16-mbtoucr.c: New file.
37124         * modules/unistr/u16-mbtoucr: New file.
37125         * lib/unistr/u16-mbtoucr.c: New file.
37126         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
37127
37128 2007-03-27  Simon Josefsson  <simon@josefsson.org>
37129             Bruno Haible  <bruno@clisp.org>
37130
37131         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
37132         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
37133         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
37134
37135         * m4/stdio_h.m4: Add stubs for vasprintf too.
37136
37137         * modules/stdio: Support vasprintf in sed command.
37138
37139         * modules/vasprintf: Depend on stdio for prototypes.  Remove
37140         vasprintf.h.  Add stdio module indicator.
37141
37142         * lib/stdio_.h: Declare asprintf and vasprintf, based on
37143         vasprintf.h.
37144
37145         * lib/vasprintf.h: File removed.
37146
37147         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
37148         * lib/vasprintf.c: Ditto.
37149         * lib/xvasprintf.c: Ditto.
37150         * tests/test-vasprintf-posix.c: Ditto.
37151         * tests/test-vasprintf.c: Ditto.
37152
37153 2007-03-27  Bruno Haible  <bruno@clisp.org>
37154
37155         Make vasnprintf multithread-safe.
37156         * lib/vasnprintf.c (decimal_point_char): New function.
37157         (VASNPRINTF): Use it.
37158         Suggested by Simon Josefsson.
37159
37160 2007-03-27  Eric Blake  <ebb9@byu.net>
37161
37162         Support sub-second birthtime on cygwin.
37163         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
37164         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
37165         (get_stat_birthtime): Also work with st_birthtim.
37166
37167 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
37168
37169         * lib/stat-time.h (USE_BIRTHTIME): Remove.
37170         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
37171         (get_stat_birthtime_ns): Do not try to use "spare" fields.
37172         (get_stat_birthtime_ns): Simplify compile-time tests.
37173         (get_stat_birthtime): Change the API to look like
37174         get_stat_mtime etc., except return a negative tv_nsec on error.
37175         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
37176         Don't check for "spare" fields.
37177         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
37178         or for struct stat.st_birthtime, as these tests aren't used.
37179         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
37180
37181 2007-03-27  Bruno Haible  <bruno@clisp.org>
37182
37183         * lib/stat-time.h: Include <sys/stat.h>.
37184
37185 2007-03-27  James Youngman  <jay@gnu.org>
37186
37187         * lib/stat-time.h (get_stat_birthtime): New function for
37188           retrieving st_birthtime as provided by UFS2 (hence *BSD).
37189         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
37190           and its variants.
37191         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
37192         * modules/stat-time-test: New file.
37193         * tests/test-stat-time.c: New test, devised by Bruno Haible.
37194
37195 2007-03-26  Bruno Haible  <bruno@clisp.org>
37196
37197         Better support of signalling NaNs.
37198         * lib/atanl.c: Include isnanl.h.
37199         (atanl): Perform test for NaN at the beginning of the function and
37200         through a call to isnanl.
37201         * lib/cosl.c: Include isnanl.h.
37202         (cosl): Perform test for NaN at the beginning of the function and
37203         through a call to isnanl.
37204         * lib/ldexpl.c: Include isnanl.h.
37205         (ldexpl): Perform test for NaN through a call to isnanl.
37206         * lib/logl.c: Include isnanl.h.
37207         (logl): Perform test for NaN at the beginning of the function and
37208         through a call to isnanl.
37209         * lib/sinl.c: Include isnanl.h.
37210         (sinl): Perform test for NaN at the beginning of the function and
37211         through a call to isnanl.
37212         * lib/sqrtl.c: Include isnanl.h.
37213         (sqrtl): Perform test for NaN at the beginning of the function and
37214         through a call to isnanl.
37215         * lib/tanl.c: Include isnanl.h.
37216         (tanl): Perform test for NaN at the beginning of the function and
37217         through a call to isnanl.
37218         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
37219         * modules/mathl (Depends-on): Add isnanl.
37220
37221 2007-03-26  Eric Blake  <ebb9@byu.net>
37222
37223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
37224         regression in logic sense of previous patch.
37225
37226 2007-03-26  Bruno Haible  <bruno@clisp.org>
37227
37228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
37229         unportable shell command "if ! ...".
37230         Reported by Ralf Wildenhues.
37231
37232 2007-03-25  Bruno Haible  <bruno@clisp.org>
37233
37234         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
37235         <sysexits.h> file, and only add EX_CONFIG.
37236         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
37237         absolute file name and whether it is sufficient. Substitute also
37238         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
37239         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
37240         ABSOLUTE_SYSEXITS_H into sysexits.h.
37241
37242 2007-03-25  Bruno Haible  <bruno@clisp.org>
37243
37244         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
37245         hints is NULL.
37246
37247 2007-03-25  Bruno Haible  <bruno@clisp.org>
37248
37249         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
37250         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
37251
37252 2007-03-25  Bruno Haible  <bruno@clisp.org>
37253
37254         * lib/vasnprintf.c: Include langinfo.h.
37255         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
37256         multithread-safe.
37257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
37258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
37259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37260         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37261         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37262         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37263         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37264         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
37265         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37266         Reported by Simon Josefsson.
37267
37268 2007-03-25  Bruno Haible  <bruno@clisp.org>
37269
37270         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
37271         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
37272         * modules/vasnprintf (Depends-on): Add stdint.
37273
37274 2007-03-25  Bruno Haible  <bruno@clisp.org>
37275
37276         * modules/fpieee: New file.
37277         * m4/fpieee.m4: New file.
37278         * modules/isnan-nolibm (Depends-on): Add fpieee.
37279         * modules/isnanl-nolibm (Depends-on): Add fpieee.
37280         * modules/isnanl (Depends-on): Add fpieee.
37281
37282 2007-03-25  Bruno Haible  <bruno@clisp.org>
37283
37284         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
37285
37286 2007-03-25  Bruno Haible  <bruno@clisp.org>
37287
37288         Avoid test failures on IRIX 6.5.
37289         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
37290         (main): Use it.
37291         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
37292         macros.
37293         (main): Use them.
37294
37295 2007-03-25  Bruno Haible  <bruno@clisp.org>
37296
37297         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
37298         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
37299         exists but doesn't work.
37300         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
37301         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
37302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
37303         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
37304
37305 2007-03-25  Bruno Haible  <bruno@clisp.org>
37306
37307         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
37308         returns inf. Needed on IRIX 6.5.
37309
37310 2007-03-25  Bruno Haible  <bruno@clisp.org>
37311
37312         * tests/test-frexpl.c: Include isnanl-nolibm.h.
37313         (main): Use isnanl instead of x != x idiom.
37314         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
37315
37316         * tests/test-frexp.c: Include isnan.h.
37317         (main): Use isnan instead of x != x idiom.
37318         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
37319
37320 2007-03-25  Bruno Haible  <bruno@clisp.org>
37321
37322         * tests/test-frexp.c (NaN): New function/macro.
37323         (main): Use it instead of 0.0 / 0.0.
37324         * tests/test-isnan.c (NaN): New function/macro.
37325         (main): Use it instead of 0.0 / 0.0.
37326         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
37327         (test_function): Use it instead of 0.0 / 0.0.
37328         * tests/test-vasprintf-posix.c (NaN): New function/macro.
37329         (test_function): Use it instead of 0.0 / 0.0.
37330         * tests/test-snprintf-posix.h (NaN): New function/macro.
37331         (test_function): Use it instead of 0.0 / 0.0.
37332         * tests/test-sprintf-posix.h (NaN): New function/macro.
37333         (test_function): Use it instead of 0.0 / 0.0.
37334         * tests/test-fprintf-posix.h (NaN): New function/macro.
37335         (test_function): Use it instead of 0.0 / 0.0.
37336         * tests/test-printf-posix.h (NaN): New function/macro.
37337         (test_function): Use it instead of 0.0 / 0.0.
37338
37339         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
37340
37341 2007-03-25  Bruno Haible  <bruno@clisp.org>
37342
37343         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
37344
37345 2007-03-25  Bruno Haible  <bruno@clisp.org>
37346
37347         * lib/regexec.c (merge_state_with_log): Make static.
37348
37349 2007-03-25  Bruno Haible  <bruno@clisp.org>
37350
37351         * lib/trigl.c (kernel_rem_pio2): Make static.
37352
37353 2007-03-25  Bruno Haible  <bruno@clisp.org>
37354
37355         * lib/sincosl.c (sincosl_table): Make static.
37356
37357 2007-03-25  Bruno Haible  <bruno@clisp.org>
37358
37359         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
37360         if the compiler does not support C99.
37361
37362 2007-03-25  Bruno Haible  <bruno@clisp.org>
37363
37364         * modules/time (Makefile.am): Ensure all rule action lines start with a
37365         tab.
37366
37367 2007-03-24  Bruno Haible  <bruno@clisp.org>
37368
37369         * modules/tsearch-tests: New file.
37370         * tests/test-tsearch.sh: New file.
37371         * tests/test-tsearch.c: New file, mostly copied from glibc.
37372
37373         * modules/search-tests: New file.
37374         * tests/test-search.c: New file.
37375
37376         * modules/search: New file.
37377         * lib/search_.h: New file, incorporating lib/tsearch.h.
37378         * m4/search_h.m4: New file.
37379         * lib/tsearch.h: Remove file.
37380         * lib/tsearch.c: Include search.h instead of tsearch.h.
37381         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
37382         HAVE_TSEARCH.
37383         * modules/tsearch (Files): Remove lib/tsearch.h.
37384         (Depends-on): Add search.
37385         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
37386         (Include): Change tsearch.h into search.h.
37387
37388 2007-03-24  Bruno Haible  <bruno@clisp.org>
37389
37390         * modules/fpucw: New file.
37391         * lib/fpucw.h: New file.
37392         * lib/frexp.c: Include fpucw.h.
37393         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37394         (FUNC): Use them.
37395         * lib/printf-frexp.c: Include fpucw.h.
37396         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37397         (FUNC): Use them.
37398         * lib/vasnprintf.c: Include fpucw.h.
37399         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
37400         'long double' calculations.
37401         * tests/test-frexpl.c: Include fpucw.h.
37402         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37403         * tests/test-printf-frexpl.c: Include fpucw.h.
37404         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37405         * modules/frexpl (Depends-on): Add fpucw.
37406         * modules/printf-frexpl (Depends-on): Likewise.
37407         * modules/fprintf-posix (Depends-on): Likewise.
37408         * modules/snprintf-posix (Depends-on): Likewise.
37409         * modules/sprintf-posix (Depends-on): Likewise.
37410         * modules/vasnprintf-posix (Depends-on): Likewise.
37411         * modules/vasprintf-posix (Depends-on): Likewise.
37412         * modules/vfprintf-posix (Depends-on): Likewise.
37413         * modules/vsnprintf-posix (Depends-on): Likewise.
37414         * modules/vsprintf-posix (Depends-on): Likewise.
37415         * modules/frexpl-tests (Depends-on): Likewise.
37416         * modules/printf-frexpl-tests (Depends-on): Likewise.
37417
37418 2007-03-24  Bruno Haible  <bruno@clisp.org>
37419
37420         * lib/float+.h: New file.
37421         * lib/isnan.c: Include float+.h.
37422         (SIZE): New macro.
37423         (FUNC): Compare only SIZE bytes of the value.
37424         * lib/vasnprintf.c: Include float+.h.
37425         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
37426         SIZEOF_LDBL or SIZEOF_DBL bytes.
37427         * modules/isnan-nolibm (Files): Add lib/float+.h.
37428         * modules/isnanl-nolibm (Files): Add lib/float+.h.
37429         * modules/isnanl (Files): Add lib/float+.h.
37430         * modules/vasnprintf (Files): Add lib/float+.h.
37431
37432 2007-03-24  Bruno Haible  <bruno@clisp.org>
37433
37434         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
37435         include isnanl-nolibm.h.
37436
37437 2007-03-24  Bruno Haible  <bruno@clisp.org>
37438
37439         * tests/test-read-file.c (main): Don't produce spurious output for
37440         expected situations. Make the test fail if it encountered unexpected
37441         results.
37442
37443 2007-03-24  Bruno Haible  <bruno@clisp.org>
37444
37445         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
37446         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
37447
37448 2007-03-24  Bruno Haible  <bruno@clisp.org>
37449
37450         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
37451
37452 2007-03-24  Bruno Haible  <bruno@clisp.org>
37453
37454         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
37455         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
37456
37457         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
37458         * modules/utf8-ucs4: Turn into a symbolic link to module
37459         unistr/u8-mbtouc.
37460
37461         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
37462         utf8-ucs4-unsafe.
37463         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
37464         unistr/u8-mbtouc-unsafe.
37465
37466         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
37467         * modules/utf16-ucs4: Turn into a symbolic link to module
37468         unistr/u16-mbtouc.
37469
37470         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
37471         utf16-ucs4-unsafe.
37472         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
37473         unistr/u16-mbtouc-unsafe.
37474
37475         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
37476         * modules/ucs4-utf8: Turn into a symbolic link to module
37477         unistr/u8-ubtomb.
37478
37479         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
37480         * modules/ucs4-utf16: Turn into a symbolic link to module
37481         unistr/u16-ubtomb.
37482
37483 2007-03-24  Bruno Haible  <bruno@clisp.org>
37484
37485         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
37486         Enable the function only if HAVE_INLINE.
37487         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
37488         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37489         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
37490         Enable the function only if HAVE_INLINE.
37491         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
37492         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37493         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
37494         Enable the function only if HAVE_INLINE.
37495         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
37496         Enable the function only if HAVE_INLINE.
37497         * modules/utf8-ucs4: Update.
37498         * modules/utf8-ucs4-unsafe: Update.
37499         * modules/utf16-ucs4: Update.
37500         * modules/utf16-ucs4-unsafe: Update.
37501         * modules/ucs4-utf8: Update.
37502         * modules/ucs4-utf16: Update.
37503
37504 2007-03-24  Bruno Haible  <bruno@clisp.org>
37505
37506         * lib/utf8-ucs4.h: Remove file.
37507         * lib/utf8-ucs4-unsafe.h: Remove file.
37508         * lib/utf16-ucs4.h: Remove file.
37509         * lib/utf16-ucs4-unsafe.h: Remove file.
37510         * lib/ucs4-utf8.h: Remove file.
37511         * lib/ucs4-utf16.h: Remove file.
37512         * lib/unistr.h: Include their previous contents.
37513         * m4/utf-ucs4.m4: Remove file.
37514         * m4/ucs4-utf.m4: Remove file.
37515         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
37516         (Depends-on): Add unistr/base.
37517         (configure.ac): Remove gl_UTF_UCS4.
37518         (Makefile.am): Update.
37519         (Include): Change to unistr.h.
37520         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
37521         (Depends-on): Add unistr/base.
37522         (configure.ac): Remove gl_UTF_UCS4.
37523         (Makefile.am): Update.
37524         (Include): Change to unistr.h.
37525         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
37526         (Depends-on): Add unistr/base.
37527         (configure.ac): Remove gl_UTF_UCS4.
37528         (Makefile.am): Update.
37529         (Include): Change to unistr.h.
37530         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
37531         (Depends-on): Add unistr/base.
37532         (configure.ac): Remove gl_UTF_UCS4.
37533         (Makefile.am): Update.
37534         (Include): Change to unistr.h.
37535         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
37536         (Depends-on): Add unistr/base.
37537         (configure.ac): Remove gl_UCS4_UTF.
37538         (Makefile.am): Update.
37539         (Include): Change to unistr.h.
37540         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
37541         (Depends-on): Add unistr/base.
37542         (configure.ac): Remove gl_UCS4_UTF.
37543         (Makefile.am): Update.
37544         (Include): Change to unistr.h.
37545         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
37546         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
37547         utf8-ucs4-unsafe.h.
37548         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
37549         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
37550         utf16-ucs4-unsafe.h.
37551         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
37552         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
37553         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
37554         * lib/unistr/u8-strchr.c: Likewise.
37555         * lib/unistr/u8-strrchr.c: Likewise.
37556         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
37557         * lib/unistr/u16-strchr.c: Likewise.
37558         * lib/unistr/u16-strrchr.c: Likewise.
37559         * lib/striconveh.c: Update.
37560         * lib/linebreak.c: Update.
37561
37562 2007-03-24  Bruno Haible  <bruno@clisp.org>
37563
37564         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
37565         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
37566
37567 2007-03-22  Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
37570
37571 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37572
37573         * MODULES.html.sh (File system functions): New module write-any-file.
37574         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
37575         * m4/write-any-file.m4: New files.
37576
37577 2007-03-23  Eric Blake  <ebb9@byu.net>
37578
37579         * gnulib-tool: Rearrange space-tab sequences, since some editors
37580         like to eat them.
37581
37582 2007-03-23  Eric Blake  <ebb9@byu.net>
37583
37584         * lib/version-etc.c (version_etc_va): Update license wording to
37585         be more concise.  Recommended by Richard Stallman.
37586
37587 2007-03-22  Bruno Haible  <bruno@clisp.org>
37588
37589         * lib/poll.c (MSG_PEEK): New fallback definition.
37590
37591 2007-03-22  Bruno Haible  <bruno@clisp.org>
37592
37593         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
37594         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
37595         (main): Update.
37596         Fixes a compilation error on BeOS.
37597
37598 2007-03-22  Bruno Haible  <bruno@clisp.org>
37599
37600         * modules/frexpl-tests: New file.
37601         * tests/test-frexpl.c: New file.
37602
37603         * modules/frexpl: New file.
37604         * m4/frexpl.m4: New file.
37605         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
37606         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
37607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
37608         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
37609         (Depends-on): Add frexpl. Remove isnanl-nolibm.
37610         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
37611
37612 2007-03-22  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/frexpl.c: Share code with lib/frexp.c.
37615         * modules/mathl (Files): Add lib/frexp.c.
37616         (Depends-on): Add isnanl-nolibm.
37617
37618 2007-03-22  Bruno Haible  <bruno@clisp.org>
37619
37620         * modules/printf-frexp (Files): Add m4/frexp.m4.
37621         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37622         only if the found frexp function actually works.
37623
37624 2007-03-22  Bruno Haible  <bruno@clisp.org>
37625
37626         * lib/frexp.c: Remove older implementation that uses divisions.
37627
37628 2007-03-21  Bruno Haible  <bruno@clisp.org>
37629
37630         * modules/frexp-tests: New file.
37631         * tests/test-frexp.c: New file.
37632
37633         * modules/frexp: New file.
37634         * lib/frexp.c: New file.
37635         * m4/frexp.m4: New file.
37636         * lib/math_.h (frexp): New declaration.
37637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37638         REPLACE_FREXP.
37639         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37640
37641 2007-03-21  Bruno Haible  <bruno@clisp.org>
37642
37643         * modules/isnanl-tests: New file.
37644         * tests/test-isnanl.c: New file.
37645
37646         * modules/isnanl: New file.
37647         * lib/isnanl.h: New file.
37648         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37649         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37650         gl_FUNC_ISNANL_WORKS.
37651         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37652         New macros.
37653
37654 2007-03-21  Bruno Haible  <bruno@clisp.org>
37655
37656         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37657         lib/isnanl.h.
37658         (Include): Update.
37659         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37660         * lib/vasnprintf.c: Update.
37661         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37662         tests/test-isnanl.h, remove tests/test-isnanl.c.
37663         (Makefile.am): Update.
37664         * tests/test-isnanl-nolibm.c: New file.
37665         * tests/test-isnanl.h: New file.
37666         * tests/test-isnanl.c: Remove file.
37667
37668 2007-03-21  Jim Meyering  <jim@meyering.net>
37669
37670         When trying to open ".", treat ESTALE like EACCES.
37671         * lib/savewd.c (savewd_save): Resort to forking not just upon
37672         failure with EACCES, but also when errno is ESTALE.
37673
37674 2007-03-20  Bruno Haible  <bruno@clisp.org>
37675
37676         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37677         Needed on AIX 5.1. Reported by Matthew Woehlke.
37678
37679 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37680
37681         Suggestions by Bruno Haible:
37682         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37683         our own.
37684         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37685         * modules/acl (Depends-on): Add gettext.
37686
37687 2007-03-19  Bruno Haible  <bruno@clisp.org>
37688
37689         * modules/iconvme: Remove file.
37690         * lib/iconvme.h: Remove file.
37691         * lib/iconvme.c: Remove file.
37692         * m4/iconvme.m4: Remove file.
37693
37694 2007-03-19  Bruno Haible  <bruno@clisp.org>
37695
37696         * doc/relocatable-maint.texi: Break long shell script line.
37697         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37698
37699 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37700
37701         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37702         handle file_has_acl.
37703         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37704         * lib/acl.c: Move header inclusions and related macro defns into
37705         lib/acl-internal.h.
37706         (S_ISLNK): Remove defn, since that's now done for us.
37707         (file_has_acl): Move to lib/file-has-acl.c.
37708         Call acl_trivial if available.  This is the crucial part of the fix.
37709         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37710         shared within the library.  Rewrite a bit, partly to make it compatible
37711         with the GNU coding style.
37712         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37713         Remove unnecessary double-quotes.
37714         Don't test for acl_to_text; the build will catch that.
37715         Replace acl_entries if it doesn't exist and it is needed.
37716         Check for -lsec and acl_trivial (as used on Solaris 10).
37717         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37718         lib/file-has-acl.c.
37719         (Depends-on): Add sys_stat, for S_ISLNK.
37720
37721 2007-03-19  Ben Pfaff  <blp@gnu.org>
37722
37723         * doc/gnulib.texi: Fix typos.
37724         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37725
37726 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37727
37728         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37729         If size is zero here, buf must be zero.
37730
37731 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37732
37733         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37734         <bruno@clisp.org>.
37735
37736 2007-03-18  Bruno Haible  <bruno@clisp.org>
37737
37738         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37739         Suggested by Eric Blake.
37740
37741 2007-03-18  Ben Pfaff  <blp@gnu.org>
37742
37743         * doc/relocatable.texi: Recommend using as prefix a directory
37744         that does not exist and will never be created.  Based on
37745         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37746         and others.
37747
37748 2007-03-17  Bruno Haible  <bruno@clisp.org>
37749
37750         * lib/fchownat.c: Include lchown.h.
37751
37752 2007-03-17  Bruno Haible  <bruno@clisp.org>
37753
37754         Fix endless loop when the given allocated size was > INT_MAX.
37755         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37756         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37757         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37758         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37759         * lib/sprintf.c (sprintf): Likewise.
37760
37761 2007-03-17  Bruno Haible  <bruno@clisp.org>
37762
37763         * tests/test-argp-2.sh (func_compare): Output a context diff.
37764
37765 2007-03-17  Bruno Haible  <bruno@clisp.org>
37766
37767         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37768         locale's decimal-point character.
37769
37770 2007-03-17  Bruno Haible  <bruno@clisp.org>
37771
37772         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37773         before comparing it. Needed because on some platforms (e.g. x86) a
37774         'long double' occupies less bytes than sizeof (long double).
37775
37776 2007-03-17  Bruno Haible  <bruno@clisp.org>
37777
37778         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37779         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37780         * tests/test-getaddrinfo.c (simple): Likewise.
37781         * tests/test-read-file.c (main): Likewise.
37782
37783 2007-03-17  Bruno Haible  <bruno@clisp.org>
37784
37785         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37786
37787 2007-03-17  Bruno Haible  <bruno@clisp.org>
37788
37789         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37790         unused variable.
37791
37792 2007-03-17  Bruno Haible  <bruno@clisp.org>
37793
37794         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37795         * tests/test-c-strncasecmp.c: Likewise.
37796
37797 2007-03-17  Bruno Haible  <bruno@clisp.org>
37798
37799         * modules/stdlib (Depends-on): Add unistd.
37800         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37801         Needed for MacOS X 10.3.
37802
37803 2007-03-17  Bruno Haible  <bruno@clisp.org>
37804
37805         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37806
37807 2007-03-17  Bruno Haible  <bruno@clisp.org>
37808
37809         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37810
37811 2007-03-17  Bruno Haible  <bruno@clisp.org>
37812
37813         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37814         to reflect files copied from gnulib (with or without modifications).
37815         Suggested by Jim Meyering.
37816
37817 2007-03-17  Eric Blake  <ebb9@byu.net>
37818
37819         * NEWS: Document stdlib change from 2007-02-18.
37820
37821 2007-03-17  Jim Meyering  <jim@meyering.net>
37822
37823         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37824         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37825         someone uses a name containing shell meta-characters.
37826         Reported by Alfred M. Szmidt.
37827
37828         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37829
37830 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37831
37832         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37833         and copy gettext configuration files only if configure.ac contains
37834         a use of AM_GNU_GETTEXT_VERSION.
37835
37836 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37837
37838         * build-aux/bootstrap (gnulib_name): New variable.
37839         (gnulib_tool_options): Use it.
37840
37841 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37842
37843         * tests/test-des.c: Use new namespace.
37844
37845 2007-03-15  Bruno Haible  <bruno@clisp.org>
37846
37847         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37848         Reported by James Youngman <jay@gnu.org>.
37849
37850 2007-03-15  Bruno Haible  <bruno@clisp.org>
37851
37852         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37853         declared prototype. Needed with cc on OSF/1 5.1.
37854
37855 2007-03-15  Bruno Haible  <bruno@clisp.org>
37856
37857         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37858         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37859         (struct gl_list_implementation): Add dispose_fn argument to the
37860         'create_empty', 'create' methods.
37861         (struct gl_list_impl_base): Add field 'dispose_fn'.
37862         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37863         argument.
37864         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37865         dispose_fn argument.
37866         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37867         dispose_fn on the dropped values.
37868         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37869         dispose_fn argument.
37870         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37871         dropped values.
37872         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37873         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37874         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37875         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37876         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37877         argument.
37878         (gl_tree_list_free): Call dispose_fn on the dropped values.
37879         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37880         the dropped values.
37881         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37882         Add dispose_fn argument.
37883         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37884         Call dispose_fn on the dropped values.
37885         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37886         Add dispose_fn argument.
37887         (gl_sublist_create): Initialize the 'dispose_fn' field.
37888         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37889         * tests/test-array_list.c (main): Update.
37890         * tests/test-carray_list.c (main): Update.
37891         * tests/test-avltree_list.c (main): Update.
37892         * tests/test-rbtree_list.c (main): Update.
37893         * tests/test-avltreehash_list.c (main): Update.
37894         * tests/test-rbtreehash_list.c (main): Update.
37895         * tests/test-linked_list.c (main): Update.
37896         * tests/test-linkedhash_list.c (main): Update.
37897         * tests/test-array_oset.c (main): Update.
37898
37899 2007-03-15  Bruno Haible  <bruno@clisp.org>
37900
37901         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37902         (gl_oset_create_empty): Add dispose_fn argument.
37903         (struct gl_oset_implementation): Add dispose_fn argument to
37904         'create_empty' method.
37905         (struct gl_oset_impl_base): Add dispose_fn field.
37906         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37907         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37908         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37909         values.
37910         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37911         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37912         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37913         dropped value.
37914         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37915         dropped value.
37916         * tests/test-array_oset.c (main): Update.
37917         * tests/test-avltree_oset.c (main): Update.
37918         * tests/test-rbtree_oset.c (main): Update.
37919         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37920
37921 2007-03-13  Bruno Haible  <bruno@clisp.org>
37922
37923         * tests/test-stdbool.c (i): Update after last patch.
37924
37925 2007-03-12  Bruno Haible  <bruno@clisp.org>
37926
37927         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37928         the iswprint macro. Needed on Solaris 2.5.1.
37929
37930 2007-03-12  Bruno Haible  <bruno@clisp.org>
37931
37932         * tests/test-printf-frexp.c (main): Declare x as volatile.
37933
37934 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37935
37936         * doc/gnulib.texi (Build robot for gnulib): New section.
37937
37938 2007-03-12  Jim Meyering  <jim@meyering.net>
37939
37940         * build-aux/bootstrap: New file.
37941         * build-aux/bootstrap.conf: New file, from coreutils.
37942
37943 2007-03-11  Bruno Haible  <bruno@clisp.org>
37944
37945         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37946
37947 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37948
37949         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37950         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37951         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37952
37953 2007-03-11  Bruno Haible  <bruno@clisp.org>
37954
37955         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37956         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37957
37958 2007-03-11  Bruno Haible  <bruno@clisp.org>
37959
37960         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37961         formula. Needed for SunPRO C 5.0.
37962
37963 2007-03-11  Bruno Haible  <bruno@clisp.org>
37964
37965         * modules/long-options (Depends-on): Add getopt.
37966
37967 2007-03-11  Bruno Haible  <bruno@clisp.org>
37968
37969         * modules/modechange (Depends-on): Add stdbool.
37970
37971 2007-03-11  Bruno Haible  <bruno@clisp.org>
37972
37973         * modules/i-ring (Depends-on): Add stdbool.
37974
37975 2007-03-11  Bruno Haible  <bruno@clisp.org>
37976
37977         * modules/gc-des (Depends-on): Add stdbool.
37978
37979 2007-03-11  Bruno Haible  <bruno@clisp.org>
37980
37981         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37982
37983 2007-03-11  Bruno Haible  <bruno@clisp.org>
37984
37985         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37986
37987 2007-03-11  Bruno Haible  <bruno@clisp.org>
37988
37989         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37990
37991 2007-03-11  Bruno Haible  <bruno@clisp.org>
37992
37993         * lib/vasnprintf.c (sprintf): Undefine.
37994
37995 2007-03-11  Bruno Haible  <bruno@clisp.org>
37996
37997         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37998         initializers in SunPRO C and Compaq C compilers.
37999
38000 2007-03-11  Bruno Haible  <bruno@clisp.org>
38001
38002         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
38003         decrementing code ANSI C compliant.
38004
38005 2007-03-11  Bruno Haible  <bruno@clisp.org>
38006
38007         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
38008         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
38009
38010 2007-03-11  Bruno Haible  <bruno@clisp.org>
38011
38012         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
38013         <stdbool.h> substitute doesn't pass.
38014
38015 2007-03-11  Bruno Haible  <bruno@clisp.org>
38016
38017         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
38018
38019 2007-03-11  Bruno Haible  <bruno@clisp.org>
38020
38021         * gnulib-tool (func_create_megatestdir): Create also an autobuild
38022         script, for submission to autobuild.josefsson.org.
38023
38024 2007-03-10  Bruno Haible  <bruno@clisp.org>
38025
38026         * modules/canonicalize-lgpl-tests: New file.
38027         * tests/test-canonicalize-lgpl.sh: New file.
38028         * tests/test-canonicalize-lgpl.c: New file.
38029
38030         * modules/c-strcase-tests: New file.
38031         * tests/test-c-strcase.sh: New file.
38032         * tests/test-c-strcasecmp.c: New file.
38033         * tests/test-c-strncasecmp.c: New file.
38034
38035         * modules/atexit-tests: New file.
38036         * tests/test-atexit.sh: New file.
38037         * tests/test-atexit.c: New file.
38038
38039 2007-03-10  Bruno Haible  <bruno@clisp.org>
38040
38041         * tests/test-binary-io.sh: Use temporary filenames that are not so
38042         likely to clash with those of other tests (in a parallel make).
38043         * tests/test-binary-io.c: Likewise.
38044
38045 2007-03-10  Bruno Haible  <bruno@clisp.org>
38046
38047         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
38048         fallback; use #error instead.
38049         Suggested by Simon Josefsson.
38050
38051 2007-03-10  Bruno Haible  <bruno@clisp.org>
38052
38053         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
38054         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
38055         first and the last.
38056
38057 2007-03-10  Bruno Haible  <bruno@clisp.org>
38058
38059         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
38060
38061 2007-03-10  Bruno Haible  <bruno@clisp.org>
38062
38063         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
38064         "make distcheck".
38065         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
38066         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
38067         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
38068
38069 2007-03-10  Bruno Haible  <bruno@clisp.org>
38070
38071         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
38072         variable.
38073         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
38074         variable.
38075
38076 2007-03-09  Eric Blake  <ebb9@byu.net>
38077         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
38078
38079         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
38080         types are not being provided by gnulib.
38081         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
38082         types are supported.
38083
38084 2007-03-10  Bruno Haible  <bruno@clisp.org>
38085
38086         * lib/stdio_.h (__attribute__): New macro.
38087         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
38088         vsprintf): Specify __attribute__ __format__ for GCC.
38089         Suggested by Eric Blake.
38090
38091 2007-03-09  Bruno Haible  <bruno@clisp.org>
38092
38093         * modules/printf-posix-tests: New file.
38094         * tests/test-printf-posix.sh: New file.
38095         * tests/test-printf-posix.c: New file.
38096
38097         * modules/printf-posix: New file.
38098         * lib/printf.c: New file.
38099         * m4/printf-posix-rpl.m4: New file.
38100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
38101         REPLACE_PRINTF.
38102         * lib/stdio_.h (printf): New declaration.
38103         (format, __format__, ____printf____, ____scanf____, ____strftime____,
38104         ____strfmon____): New macros.
38105         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
38106         REPLACE_PRINTF.
38107
38108 2007-03-09  Bruno Haible  <bruno@clisp.org>
38109
38110         * tests/test-vasnprintf-posix2.sh: New file.
38111         * tests/test-vasnprintf-posix2.c: New file.
38112         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
38113         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38114         (Makefile.am): Activate test-vasnprintf-posix2.sh.
38115
38116         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
38117         a locale dependent decimal point, rather than always '.'.
38118
38119 2007-03-09  Eric Blake  <ebb9@byu.net>
38120
38121         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
38122         spite of platforms like Tandem/NSK that define it to -1.
38123
38124 2007-03-08  Bruno Haible  <bruno@clisp.org>
38125
38126         * modules/vprintf-posix-tests: New file.
38127         * tests/test-vprintf-posix.sh: New file.
38128         * tests/test-vprintf-posix.c: New file.
38129         * tests/test-printf-posix.h: New file.
38130
38131         * modules/vprintf-posix: New file.
38132         * lib/vprintf.c: New file.
38133         * m4/vprintf-posix.m4: New file.
38134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
38135         REPLACE_VPRINTF.
38136         * lib/stdio_.h (vprintf): New declaration.
38137         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
38138         REPLACE_VPRINTF.
38139
38140 2007-03-08  Bruno Haible  <bruno@clisp.org>
38141
38142         * modules/fprintf-posix-tests: New file.
38143         * tests/test-fprintf-posix.sh: New file.
38144         * tests/test-fprintf-posix.c: New file.
38145
38146         * modules/fprintf-posix: New file.
38147         * lib/fprintf.c: New file.
38148         * m4/fprintf-posix.m4: New file.
38149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
38150         REPLACE_FPRINTF.
38151         * lib/stdio_.h (fprintf): New declaration.
38152         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
38153         REPLACE_FPRINTF.
38154
38155 2007-03-08  Bruno Haible  <bruno@clisp.org>
38156
38157         * modules/vfprintf-posix-tests: New file.
38158         * tests/test-vfprintf-posix.sh: New file.
38159         * tests/test-vfprintf-posix.c: New file.
38160         * tests/test-fprintf-posix.h: New file.
38161         * tests/test-fprintf-posix.out: New file.
38162
38163         * modules/vfprintf-posix: New file.
38164         * lib/vfprintf.c: New file.
38165         * m4/vfprintf-posix.m4: New file.
38166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
38167         REPLACE_VFPRINTF.
38168         * lib/stdio_.h (vfprintf): New declaration.
38169         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
38170         REPLACE_VFPRINTF.
38171
38172 2007-03-08  Bruno Haible  <bruno@clisp.org>
38173
38174         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
38175
38176 2007-03-08  Bruno Haible  <bruno@clisp.org>
38177
38178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
38179         instead of 'expr' invocations.
38180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38182         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38185         Suggested by Paul Eggert.
38186
38187 2007-03-08  Bruno Haible  <bruno@clisp.org>
38188
38189         * modules/fseterr-tests: New file.
38190         * tests/test-fseterr.c: New file.
38191
38192         * modules/fseterr: New file.
38193         * lib/fseterr.h: New file.
38194         * lib/fseterr.c: New file.
38195
38196 2007-03-08  Bruno Haible  <bruno@clisp.org>
38197
38198         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
38199         * lib/getopt_.h: Likewise.
38200         * lib/mbswidth.h: Likewise.
38201         * lib/setenv.h: Likewise.
38202         * lib/vasnprintf.h: Likewise.
38203         * lib/vasprintf.h: Likewise.
38204         * lib/verror.h: Likewise.
38205         * lib/xsetenv.h: Likewise.
38206         * lib/xvasprintf.h: Likewise.
38207
38208 2007-03-08  Jim Meyering  <jim@meyering.net>
38209
38210         * users.txt: Add parted.
38211
38212         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
38213
38214 2007-03-07  Bruno Haible  <bruno@clisp.org>
38215
38216         * m4/printf.m4: Make the shell script snippets copy&pastable.
38217
38218 2007-03-02  Bruno Haible  <bruno@clisp.org>
38219
38220         * lib/netinet_in_.h: New file.
38221         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
38222         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
38223         * modules/netinet_in (Files): Add lib/netinet_in_.h.
38224         (Depends-on): Add absolute-header.
38225         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
38226         into netinet/in.h.
38227
38228 2007-03-03  Bruno Haible  <bruno@clisp.org>
38229
38230         * lib/sys_select_.h: New file.
38231         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
38232         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
38233         * modules/sys_select (Files): Add lib/sys_select_.h.
38234         (Depends-on): Add absolute-header.
38235         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
38236         into sys/select.h.
38237
38238 2007-03-02  Bruno Haible  <bruno@clisp.org>
38239
38240         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
38241         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
38242         values.
38243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
38244         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
38245         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
38246         * modules/sys_socket (Depends-on): Add absolute-header.
38247         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
38248         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
38249         (Include): Remove requirement of inclusion of <sys/types.h>.
38250
38251 2007-03-02  Bruno Haible  <bruno@clisp.org>
38252
38253         * lib/byteswap_.h (bswap_32): Fix formula.
38254
38255 2007-03-06  Bruno Haible  <bruno@clisp.org>
38256
38257         * modules/sprintf-posix-tests: New file.
38258         * tests/test-sprintf-posix.c: New file.
38259
38260         * modules/sprintf-posix: New file.
38261         * lib/sprintf.c: New file.
38262         * m4/sprintf-posix.m4: New file.
38263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
38264         REPLACE_SPRINTF.
38265         * lib/stdio_.h (sprintf): New declaration.
38266         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
38267         REPLACE_SPRINTF.
38268
38269 2007-03-06  Bruno Haible  <bruno@clisp.org>
38270
38271         * modules/vsprintf-posix-tests: New file.
38272         * tests/test-vsprintf-posix.c: New file.
38273         * tests/test-sprintf-posix.h: New file.
38274
38275         * modules/vsprintf-posix: New file.
38276         * lib/vsprintf.c: New file.
38277         * m4/vsprintf-posix.m4: New file.
38278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
38279         REPLACE_VSPRINTF.
38280         * lib/stdio_.h (vsprintf): New declaration.
38281         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
38282         REPLACE_VSPRINTF.
38283
38284 2007-03-06  Bruno Haible  <bruno@clisp.org>
38285
38286         * modules/vsnprintf (Depend-on): Remove minmax.
38287
38288 2007-03-06  Bruno Haible  <bruno@clisp.org>
38289
38290         * modules/snprintf-posix-tests: New file.
38291         * tests/test-snprintf-posix.c: New file.
38292
38293         * modules/snprintf-posix: New file.
38294         * m4/snprintf-posix.m4: New file.
38295         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
38296         gl_FUNC_SNPRINTF.
38297         (gl_FUNC_SNPRINTF): Invoke it.
38298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
38299         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
38300         is set.
38301         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
38302
38303 2007-03-06  Bruno Haible  <bruno@clisp.org>
38304
38305         * modules/vsnprintf-posix-tests: New file.
38306         * tests/test-vsnprintf-posix.c: New file.
38307         * tests/test-snprintf-posix.h: New file.
38308
38309         * modules/vsnprintf-posix: New file.
38310         * m4/vsnprintf-posix.m4: New file.
38311         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
38312         gl_FUNC_VSNPRINTF.
38313         (gl_FUNC_VSNPRINTF): Invoke it.
38314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
38315         * lib/stdio_.h (vsnprintf): Define as a replacement if
38316         REPLACE_VSNPRINTF is set.
38317         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
38318
38319 2007-03-06  Bruno Haible  <bruno@clisp.org>
38320
38321         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
38322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
38323
38324 2007-03-06  Bruno Haible  <bruno@clisp.org>
38325
38326         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
38327         (asinl): Declare also if HAVE_DECL_ASINL is set.
38328         (atanl): Declare also if HAVE_DECL_ATANL is set.
38329         (ceill): Declare also if HAVE_DECL_CEILL is set.
38330         (cosl): Declare also if HAVE_DECL_COSL is set.
38331         (expl): Declare also if HAVE_DECL_EXPL is set.
38332         (floorl): Declare also if HAVE_DECL_FLOORL is set.
38333         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
38334         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
38335         (logl): Declare also if HAVE_DECL_LOGL is set.
38336         (sinl): Declare also if HAVE_DECL_SINL is set.
38337         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
38338         (tanl): Declare also if HAVE_DECL_TANL is set.
38339         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
38340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
38341         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
38342         declaration of frexpl, ldexpl.
38343         * modules/printf-frexpl (Depends-on): Add math.
38344         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
38345
38346 2007-03-05  Bruno Haible  <bruno@clisp.org>
38347
38348         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
38349         frexpl and ldexpl are declared.
38350         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
38351
38352 2007-03-05  Bruno Haible  <bruno@clisp.org>
38353
38354         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
38355         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
38356
38357 2007-03-05  Bruno Haible  <bruno@clisp.org>
38358
38359         * lib/stdio_.h: Include <stddef.h>.
38360
38361 2007-03-05  Bruno Haible  <bruno@clisp.org>
38362
38363         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
38364
38365 2007-03-05  Bruno Haible  <bruno@clisp.org>
38366
38367         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
38368         NetBSD 4, from Ralf Wildenhues.
38369
38370 2007-03-04  Bruno Haible  <bruno@clisp.org>
38371
38372         * lib/vasprintf.h: Update #if logic for the case when the functions
38373         exist but are overridden.
38374
38375 2007-03-04  Bruno Haible  <bruno@clisp.org>
38376
38377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
38378         implementations: glibc-2.4 and MacOS X 10.3.
38379         * tests/test-vasnprintf-posix.c (test_function): Test also the case
38380         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
38381         * tests/test-vasprintf-posix.c (test_function): Likewise.
38382
38383 2007-03-04  Bruno Haible  <bruno@clisp.org>
38384
38385         * modules/vasprintf-posix-tests: New file.
38386         * tests/test-vasprintf-posix.c: New file.
38387
38388         * modules/vasprintf-posix: New file.
38389         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
38390         defined.
38391         * m4/vasprintf-posix.m4: New file.
38392         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
38393         gl_FUNC_VASPRINTF.
38394         (gl_FUNC_VASPRINTF): Invoke it.
38395         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
38396         here.
38397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
38398
38399 2007-03-04  Bruno Haible  <bruno@clisp.org>
38400
38401         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
38402         REPLACE_GETTIMEOFDAY.
38403         * modules/sys_time (Makefile.am): Likewise.
38404         * m4/sys_time_h.m4: Likewise.
38405         * m4/gettimeofday.m4: Likewise.
38406
38407 2007-03-04  Bruno Haible  <bruno@clisp.org>
38408
38409         * modules/vasnprintf-posix-tests: New file.
38410         * tests/test-vasnprintf-posix.c: New file.
38411
38412         * modules/vasnprintf-posix: New file.
38413         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
38414         printf-frexpl.h.
38415         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
38416         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
38417         REPLACE_VASNPRINTF is defined.
38418         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
38419         gl_FUNC_VASNPRINTF.
38420         (gl_FUNC_VASNPRINTF): Invoke it.
38421         * m4/vasnprintf-posix.m4: New file.
38422         * m4/printf.m4: New file.
38423
38424 2007-03-04  Bruno Haible  <bruno@clisp.org>
38425
38426         Compile progreloc.c only if --enable-relocatable is specified.
38427         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
38428         if --enable-relocatable was specified.
38429         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
38430         lib_SOURCES.
38431
38432 2007-03-04  Jim Meyering  <jim@meyering.net>
38433
38434         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
38435         Use it consistently, rather than enumerating errno constants.
38436
38437 2007-03-04  Bruno Haible  <bruno@clisp.org>
38438
38439         * modules/xvasprintf-tests: New file.
38440         * tests/test-xvasprintf.c: New file.
38441
38442         * modules/vasprintf-tests: New file.
38443         * tests/test-vasprintf.c: New file.
38444
38445         * modules/vasnprintf-tests: New file.
38446         * tests/test-vasnprintf.c: New file.
38447
38448         * modules/vsnprintf-tests: New file.
38449         * tests/test-vsnprintf.c: New file.
38450
38451         * modules/snprintf-tests: New file.
38452         * tests/test-snprintf.c: New file.
38453
38454 2007-03-04  Bruno Haible  <bruno@clisp.org>
38455
38456         Compile relocatable.c only if --enable-relocatable is specified.
38457         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
38458         gl_RELOCATABLE_LIBRARY.
38459         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
38460         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
38461         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
38462         gl_RELOCATABLE_LIBRARY.
38463         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
38464         (Makefile.am): Remove lib_SOURCES.
38465         * modules/relocatable-lib-lgpl (configure.ac): Invoke
38466         gl_RELOCATABLE_LIBRARY.
38467         (Makefile.am): Remove lib_SOURCES.
38468         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
38469         always.
38470         * modules/relocatable-prog-wrapper (configure.ac): Invoke
38471         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
38472
38473 2007-03-04  Bruno Haible  <bruno@clisp.org>
38474
38475         * modules/argmatch-tests: New file.
38476         * tests/test-argmatch.c: New file.
38477
38478         * tests/test-allocsa.c (main): Halve the number of loop runs.
38479
38480         * modules/alloca-opt-tests: New file.
38481         * tests/test-alloca-opt.c: New file.
38482
38483 2007-03-04  Jim Meyering  <jim@meyering.net>
38484
38485         Work around difference between Linux ACLs and Solaris 10 ZFS.
38486         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
38487         for EINVAL.
38488
38489 2007-03-03  Bruno Haible  <bruno@clisp.org>
38490
38491         * modules/relocatable-prog (Depends-on): Add back progreloc's
38492         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
38493
38494 2007-03-03  Bruno Haible  <bruno@clisp.org>
38495
38496         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
38497         * modules/relocatable-lib: New file.
38498
38499 2007-03-03  Bruno Haible  <bruno@clisp.org>
38500
38501         * modules/relocatable-prog: Renamed from modules/relocatable.
38502         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
38503
38504 2007-03-03  Bruno Haible  <bruno@clisp.org>
38505
38506         * modules/relocatable-script (Files): Add doc/relocatable.texi,
38507         m4/relocatable-lib.m4.
38508         (Depends-on): Remove 'relocatable'.
38509         (configure.ac): Add gl_RELOCATABLE_NOP.
38510
38511 2007-03-03  Bruno Haible  <bruno@clisp.org>
38512
38513         * modules/relocatable-prog-wrapper: New file.
38514         * modules/relocatable (Depends-on): Add it. Remove all other
38515         dependencies except progname.
38516         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
38517
38518         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
38519         (gl_FUNC_STRERROR): Nop.
38520         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
38521
38522         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
38523         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
38524
38525         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
38526         (gl_FUNC_READLINK): Update.
38527
38528         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
38529
38530 2007-03-03  Bruno Haible  <bruno@clisp.org>
38531
38532         * lib/xreadlink.c: Include <unistd.h> unconditionally.
38533         * modules/xreadlink (Depends-on): Add unistd.
38534         * modules/xreadlink-with-size (Depends-on): Likewise.
38535
38536 2007-03-03  Bruno Haible  <bruno@clisp.org>
38537
38538         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
38539         extracted from gt_FUNC_SETENV.
38540         (gt_FUNC_SETENV): Remove macro.
38541         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
38542         remove gt_FUNC_SETENV.
38543
38544 2007-03-03  Bruno Haible  <bruno@clisp.org>
38545
38546         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
38547         ENABLE_RELOCATABLE here.
38548         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
38549
38550 2007-03-03  Bruno Haible  <bruno@clisp.org>
38551
38552         * modules/rbtreehash-list-tests (Depends-on): Add progname.
38553         * tests/test-rbtreehash_list.c: Include progname.h.
38554         (main): Call set_program_name.
38555
38556         * modules/rbtree-oset-tests (Depends-on): Add progname.
38557         * tests/test-rbtree_oset.c: Include progname.h.
38558         (main): Call set_program_name.
38559
38560         * modules/rbtree-list-tests (Depends-on): Add progname.
38561         * tests/test-rbtree_list.c: Include progname.h.
38562         (main): Call set_program_name.
38563
38564         * modules/linked-list-tests (Depends-on): Add progname.
38565         * tests/test-linked_list.c: Include progname.h.
38566         (main): Call set_program_name.
38567
38568 2007-03-03  Bruno Haible  <bruno@clisp.org>
38569
38570         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
38571         All uses of __restrict changed to _Restrict_.
38572         * lib/glob_.h (__restrict): Remove macro.
38573
38574 2007-03-02  Bruno Haible  <bruno@clisp.org>
38575
38576         * modules/gettext (configure.ac): Require gettext infrastructure
38577         from version 0.16.1.
38578
38579 2007-03-02  Bruno Haible  <bruno@clisp.org>
38580
38581         * modules/linkedhash-list-tests (Depends-on): Add progname.
38582         * tests/test-linkedhash_list.c: Include progname.h.
38583         (main): Call set_program_name.
38584
38585         * modules/carray-list-tests (Depends-on): Add progname.
38586         * tests/test-carray_list.c: Include progname.h.
38587         (main): Call set_program_name.
38588
38589         * modules/avltreehash-list-tests (Depends-on): Add progname.
38590         * tests/test-avltreehash_list.c: Include progname.h.
38591         (main): Call set_program_name.
38592
38593         * modules/avltree-oset-tests (Depends-on): Add progname.
38594         * tests/test-avltree_oset.c: Include progname.h.
38595         (main): Call set_program_name.
38596
38597         * modules/avltree-list-tests (Depends-on): Add progname.
38598         * tests/test-avltree_list.c: Include progname.h.
38599         (main): Call set_program_name.
38600
38601         * modules/array-oset-tests (Depends-on): Add progname.
38602         * tests/test-array_oset.c: Include progname.h.
38603         (main): Call set_program_name.
38604
38605         * modules/array-list-tests (Depends-on): Add progname.
38606         * tests/test-array_list.c: Include progname.h.
38607         (main): Call set_program_name.
38608
38609         * modules/argp-tests (Depends-on): Add progname.
38610         * tests/test-argp.c: Include argp.h first. Include progname.h.
38611         (main): Call set_program_name.
38612
38613 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
38614
38615         * doc/gnulib-tool.texi (Initial import): Reword description of
38616         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
38617         limited effect even if defined after the first system include.
38618
38619 2007-03-01  Bruno Haible  <bruno@clisp.org>
38620
38621         * build-aux/config.libpath: Update to libtool-1.5.22.
38622         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38623
38624 2007-03-01  Bruno Haible  <bruno@clisp.org>
38625
38626         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38627         foo_CFLAGS.
38628         Reported by Ralf Wildenhues.
38629
38630 2007-03-01  Bruno Haible  <bruno@clisp.org>
38631
38632         * build-aux/install-reloc: Remove object files left over by some
38633         compilers.
38634         Reported by Ralf Wildenhues.
38635
38636 2007-03-01  Bruno Haible  <bruno@clisp.org>
38637
38638         * build-aux/install-reloc: Break long lines.
38639
38640 2007-03-01  Bruno Haible  <bruno@clisp.org>
38641
38642         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38643         Reported by Ralf Wildenhues.
38644
38645 2007-03-01  Bruno Haible  <bruno@clisp.org>
38646
38647         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38648         include ordering constraints.
38649
38650 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38651
38652         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38653         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38654         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38655         as another example.
38656         * lib/time_.h: Fix misspelling.
38657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38658         Require gl_HEADER_TIME_H_DEFAULTS.
38659         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38660         * m4/time_r.m4 (gl_TIME_R): Likewise.
38661         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38662
38663 2007-03-01  Bruno Haible  <bruno@clisp.org>
38664
38665         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38666         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38667
38668 2007-03-01  Jim Meyering  <jim@meyering.net>
38669
38670         * modules/xreadlink (Maintainer): Add my name.
38671         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38672
38673 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38674             Bruno Haible  <bruno@clisp.org>
38675
38676         * build-aux/install-reloc: Compile also c-ctype.c.
38677         * build-aux/relocatable.sh.in: New file.
38678         * doc/relocatable.texi: New file.
38679         * doc/relocatable-maint.texi: New file.
38680         * doc/gnulib.texi: Include relocatable-maint.texi.
38681         * lib/progreloc.c: Include unistd.h unconditionally.
38682         * lib/relocwrapper.c: Include unistd.h unconditionally.
38683         Include c-ctype.h.
38684         (add_dotbin): Use c_tolower.
38685         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38686         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38687         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38688         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38689         to m4/relocatable-lib.m4.
38690         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38691         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38692         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38693         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38694         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38695         * modules/relocatable: New file.
38696         * modules/relocatable-lib: New file.
38697         * modules/relocatable-script: New file.
38698
38699 2007-02-28  Bruno Haible  <bruno@clisp.org>
38700
38701         Import --enable-relocatable infrastructure.
38702         * build-aux/config.libpath: New file, from GNU gettext.
38703         * build-aux/install-reloc: New file, from GNU gettext.
38704         * build-aux/reloc-ldflags: New file, from GNU gettext.
38705         * lib/relocatable.h: New file, from GNU gettext.
38706         * lib/relocatable.c: New file, from GNU gettext.
38707         * lib/relocwrapper.c: New file, from GNU gettext.
38708         * m4/relocatable.m4: New file, from GNU gettext.
38709
38710 2007-02-28  Bruno Haible  <bruno@clisp.org>
38711
38712         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38713
38714         * modules/xreadlink: New file, from GNU gettext with modifications.
38715         * lib/xreadlink.c: New file, from GNU gettext.
38716         * lib/xreadlink.h: Add comments.
38717         (xreadlink): New declaration.
38718
38719         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38720         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38721         lib/xreadlink-with-size.c.
38722         (configure.ac): Remove gl_XREADLINK invocation.
38723         (Makefile.am): Augment lib_SOURCES.
38724         * m4/xreadlink.m4: Remove file.
38725         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38726         (xreadlink_with_size): Renamed from xreadink.
38727         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38728         * modules/canonicalize (Depends-on): Replace xreadlink with
38729         xreadlink-with-size.
38730         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38731
38732 2007-02-25  Jim Meyering  <jim@meyering.net>
38733
38734         * build-aux/announce-gen: When complaining about excess arguments,
38735         list them.
38736
38737 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38738
38739         * README: Document signed integer overflow situation more
38740         accurately.
38741
38742 2007-02-25  Bruno Haible  <bruno@clisp.org>
38743
38744         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38745         'a' or 'A' conversion.
38746
38747 2007-02-25  Bruno Haible  <bruno@clisp.org>
38748
38749         * modules/filename: Renamed from modules/pathname.
38750         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38751         lib/concatpath.c with lib/concat-filename.c.
38752         (Makefile.am): Update.
38753         (Include): Replace pathname.h with filename.h.
38754         * lib/filename.h: Renamed from lib/pathname.h.
38755         (concatenated_filename): Renamed from concatenated_pathname.
38756         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38757         (concatenated_filename): Renamed from concatenated_pathname.
38758         * lib/findprog.c: Include filename.h instead of pathname.h.
38759         (find_in_path): Update.
38760         * lib/javacomp.c: Include filename.h instead of pathname.h.
38761         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38762         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38763         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38764         is_oldgcj_14_13_usable, is_javac_usable): Update.
38765         * lib/javaexec.c: Include filename.h instead of pathname.h.
38766         (execute_java_class): Update.
38767         * modules/findprog: Update.
38768         * modules/javacomp: Update.
38769         * modules/javaexec: Update.
38770         * MODULES.html.sh (File system functions): Add 'filename', remove
38771         'pathname'.
38772
38773 2007-02-25  Bruno Haible  <bruno@clisp.org>
38774
38775         * modules/printf-frexpl-tests: New file.
38776         * tests/test-printf-frexpl.c: New file.
38777
38778         * modules/printf-frexpl: New file.
38779         * lib/printf-frexpl.h: New file.
38780         * lib/printf-frexpl.c: New file.
38781         * m4/printf-frexpl.m4: New file.
38782
38783 2007-02-25  Bruno Haible  <bruno@clisp.org>
38784
38785         * modules/printf-frexp-tests: New file.
38786         * tests/test-printf-frexp.c: New file.
38787
38788         * modules/printf-frexp: New file.
38789         * lib/printf-frexp.h: New file.
38790         * lib/printf-frexp.c: New file.
38791         * m4/printf-frexp.m4: New file.
38792
38793 2007-02-25  Bruno Haible  <bruno@clisp.org>
38794
38795         Assume automake >= 1.10 for the tests.
38796         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38797         * modules/arctwo-tests: Likewise.
38798         * modules/argp-tests: Likewise.
38799         * modules/avltree-list-tests: Likewise.
38800         * modules/avltree-oset-tests: Likewise.
38801         * modules/avltreehash-list-tests: Likewise.
38802         * modules/carray-list-tests: Likewise.
38803         * modules/crc-tests: Likewise.
38804         * modules/des-tests: Likewise.
38805         * modules/gc-arcfour-tests: Likewise.
38806         * modules/gc-arctwo-tests: Likewise.
38807         * modules/gc-des-tests: Likewise.
38808         * modules/gc-hmac-md5-tests: Likewise.
38809         * modules/gc-hmac-sha1-tests: Likewise.
38810         * modules/gc-md2-tests: Likewise.
38811         * modules/gc-md4-tests: Likewise.
38812         * modules/gc-md5-tests: Likewise.
38813         * modules/gc-pbkdf2-sha1-tests: Likewise.
38814         * modules/gc-rijndael-tests: Likewise.
38815         * modules/gc-sha1-tests: Likewise.
38816         * modules/gc-tests: Likewise.
38817         * modules/getaddrinfo-tests: Likewise.
38818         * modules/hmac-md5-tests: Likewise.
38819         * modules/hmac-sha1-tests: Likewise.
38820         * modules/linked-list-tests: Likewise.
38821         * modules/linkedhash-list-tests: Likewise.
38822         * modules/lock-tests: Likewise.
38823         * modules/md2-tests: Likewise.
38824         * modules/md4-tests: Likewise.
38825         * modules/md5-tests: Likewise.
38826         * modules/rbtree-list-tests: Likewise.
38827         * modules/rbtree-oset-tests: Likewise.
38828         * modules/rbtreehash-list-tests: Likewise.
38829         * modules/read-file-tests: Likewise.
38830         * modules/rijndael-tests: Likewise.
38831         * modules/stdint-tests: Likewise.
38832         * modules/tls-tests: Likewise.
38833
38834 2007-02-24  Bruno Haible  <bruno@clisp.org>
38835
38836         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38837         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38838         function; instead check whether isnan with a double argument links.
38839         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38840         function; instead check whether isnan with a 'long double' argument
38841         links.
38842         Reported by Eric Blake <ebb9@byu.net>.
38843
38844 2007-02-24  Bruno Haible  <bruno@clisp.org>
38845
38846         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38847         defined.
38848         * lib/isnanl.c: Remove all code. Just include isnan.c.
38849         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38850
38851 2007-02-25  Jim Meyering  <jim@meyering.net>
38852
38853         Avoid conflicting types for 'unsetenv' on FreeBSD.
38854         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38855         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38856         in stdlib.h.
38857
38858 2007-02-24  Bruno Haible  <bruno@clisp.org>
38859
38860         * modules/isnanl-nolibm-tests: New file.
38861         * tests/test-isnanl.c: New file.
38862
38863         * modules/isnanl-nolibm: New file.
38864         * lib/isnanl.h: New file.
38865         * lib/isnanl.c: New file.
38866         * m4/isnanl.m4: New file.
38867
38868 2007-02-24  Bruno Haible  <bruno@clisp.org>
38869
38870         * modules/isnan-nolibm-tests: New file.
38871         * tests/test-isnan.c: New file.
38872
38873         * modules/isnan-nolibm: New file.
38874         * lib/isnan.h: New file.
38875         * lib/isnan.c: New file.
38876         * m4/isnan.m4: New file.
38877
38878 2007-02-24  Bruno Haible  <bruno@clisp.org>
38879
38880         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38881         assume that an exponent fits in 20 bits.
38882
38883 2007-02-24  Jim Meyering  <jim@meyering.net>
38884
38885         * m4/regex.m4: Update the description of the configure-time option,
38886         --without-included-regex, to state accurately what the defaults are,
38887         and perhaps to give people an idea why using this option is risky.
38888
38889 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38890
38891         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38892         loops on small arguments.  This attempts to avoid the problem
38893         Bruno Haible reported for AIX 4.3.2 in
38894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38895
38896 2007-02-23  Bruno Haible  <bruno@clisp.org>
38897
38898         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38899         Needed for help2man.
38900
38901 2007-02-23  Karl Berry  <karl@gnu.org>
38902
38903         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38904         exists, foo.h should be cvs-ignored, not committed.
38905
38906 2007-02-23  Eric Blake  <ebb9@byu.net>
38907
38908         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38909         * lib/stat-time.h (includes): Likewise.
38910         * lib/utimecmp.c (includes): Likewise.
38911         * lib/utimens.h (includes): Likewise.
38912         * lib/getdate.y (includes): Also include "timespec.h" for use
38913         internal to the module.
38914         * modules/utimens (Depends-on): Revert yesterday's patch.
38915         * modules/nanosleep (Depends-on): Add missing dependency.
38916
38917 2007-02-22  Bruno Haible  <bruno@clisp.org>
38918
38919         * lib/glob.c: Don't include getlogin_r.h.
38920
38921 2007-02-22  Jim Meyering  <jim@meyering.net>
38922
38923         * modules/utimens (Depends-on): Add timespec, required for
38924         utimens.h's inclusion of timespec.h.
38925
38926 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38927
38928         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38929         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38930         Schwab in
38931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38932         I'll try to think of a better way to fix the Solaris problem.
38933
38934         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38935         like glibc; on Solaris 10, it fails with errno == EINVAL.
38936         POSIX says the behavior is unspecified if the first argument is NULL,
38937         so play it safe and never pass NULL to the system getcwd.
38938
38939 2007-02-21  Jim Meyering  <jim@meyering.net>
38940
38941         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38942         of gettimeofday.  It would conflict with the one now always
38943         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38944         an IRIX 6.5 build failure.
38945
38946 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38947
38948         Minor fixups to port to Solaris 10 with Sun C 5.8.
38949         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38950         * modules/getcwd (Depends-on): Add dirfd.
38951         * lib/putenv.c (putenv): #undef it.
38952         (rpl_putenv): New decl.
38953         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38954
38955 2007-02-20  Bruno Haible  <bruno@clisp.org>
38956
38957         * modules/stdio-tests: New file.
38958         * tests/test-stdio.c: New file.
38959
38960         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38961         (Depends-on): Add stdio.
38962         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38963         (Include): Use <stdio.h> instead of vsnprintf.h.
38964         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38965         HAVE_DECL_VSNPRINTF.
38966         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38967
38968         * modules/snprintf (Files): Remove lib/snprintf.h.
38969         (Depends-on): Add stdio.
38970         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38971         (Include): Use <stdio.h> instead of snprintf.h.
38972         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38973         HAVE_DECL_SNPRINTF.
38974         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38975         * lib/getaddrinfo.c: Likewise.
38976
38977         * modules/stdio: New file.
38978         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38979         * lib/snprintf.h: Remove file.
38980         * lib/vsnprintf.h: Remove file.
38981         * lib/.cppi-disable: Remove snprintf.h.
38982         * m4/stdio_h.m4: New file.
38983         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38984
38985 2007-02-20  Jim Meyering  <jim@meyering.net>
38986
38987         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38988         used by e.g., mingw.  From Bruno Haible.
38989
38990 2007-02-19  Bruno Haible  <bruno@clisp.org>
38991
38992         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38993         warnings.
38994         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38995
38996 2007-02-19  Bruno Haible  <bruno@clisp.org>
38997
38998         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38999         from mingw users.
39000
39001 2007-02-19  Bruno Haible  <bruno@clisp.org>
39002
39003         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
39004         warnings.
39005         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
39006
39007 2007-02-19  Jim Meyering  <jim@meyering.net>
39008
39009         Don't use FD after a successful "fdopendir (fd)".
39010         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
39011         Reset it by calling dirfd on the just-obtained DIR*.
39012
39013         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
39014         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
39015
39016 2007-02-18  Bruno Haible  <bruno@clisp.org>
39017
39018         * lib/readlink.c: Include <unistd.h>.
39019         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
39020         HAVE_READLINK.
39021         * modules/readlink (Depends-on): Add unistd.
39022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39023         (Include): Add <unistd.h>.
39024
39025         * lib/getlogin_r.h: Remove file.
39026         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
39027         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
39028         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
39029         HAVE_DECL_GETLOGIN_R.
39030         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
39031         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39032         (Include): Use <unistd.h> instead of getlogin_r.h.
39033
39034         * lib/getcwd.h: Remove file.
39035         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
39036         * lib/xgetcwd.c: Likewise.
39037         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
39038         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
39039         * modules/getcwd (Files): Remove lib/getcwd.h.
39040         (Depends-on): Add unistd.
39041         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39042         (Include): Use <unistd.h> instad of getcwd.h.
39043
39044         * lib/ftruncate.c: Include <unistd.h> first.
39045         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
39046         Set HAVE_FTRUNCATE.
39047         * modules/ftruncate (Depends-on): Add unistd.
39048         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39049
39050         * lib/fchdir.c: Include <unistd.h> first.
39051         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
39052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
39053         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
39054         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39055         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
39056
39057         * lib/dup2.c: Include <unistd.h> first.
39058         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
39059         HAVE_DUP2.
39060         * modules/dup2 (Depends-on): Add unistd.
39061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39062
39063         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
39064         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
39065         REPLACE_CHOWN. Don't define chown as a macro here.
39066         * modules/chown (Depends-on): Add unistd.
39067         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39068
39069         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
39070         Add definition for GL_LINK_WARNING.
39071         (chown, dup2): New declarations.
39072         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
39073         link warning.
39074         (ftruncate): New declaration.
39075         (getcwd): New declaration, taken from old getcwd.h.
39076         (getlogin_r): New declaration, taken from old getlogin_r.h.
39077         (readlink): New declaration.
39078         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
39079         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
39080         (gl_PREREQ_UNISTD): Remove macro.
39081         (gl_UNISTD_MODULE_INDICATOR): New macro.
39082         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
39083         many new variables. Don't set UNISTD_H.
39084         * modules/unistd (Description): Change.
39085         (Depends-on): Add link-warning.
39086         (configure.ac): Update.
39087         (Makefile.am): Create unistd.h always. Substitute many new variables
39088         into it.
39089
39090 2007-02-18  Bruno Haible  <bruno@clisp.org>
39091
39092         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
39093         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
39094         HAVE_GETSUBOPT.
39095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
39096         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
39097         * lib/getsubopt.h: Remove file.
39098         * modules/getsubopt (Files): Remove lib/getsubopt.h.
39099         (Depends-on): Add stdlib.
39100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39101         (Includes): Use <stdlib.h> instead of getsubopt.h.
39102         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
39103         Set HAVE_GETSUBOPT.
39104         * lib/getsubopt.c: Don't include getsubopt.h.
39105
39106 2007-02-18  Bruno Haible  <bruno@clisp.org>
39107
39108         * modules/fchdir (Depends-on): Add dup2.
39109
39110 2007-02-18  Bruno Haible  <bruno@clisp.org>
39111
39112         * lib/stdlib_.h: Handle glibc's special invocation convention
39113         specially.
39114
39115 2007-02-18  Bruno Haible  <bruno@clisp.org>
39116
39117         * modules/stdlib-tests: New file.
39118         * tests/test-stdlib.c: New file.
39119
39120         * modules/mkstemp (Files): Remove lib/mkstemp.h.
39121         (Depends-on): Add stdlib.
39122         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39123         (Includes): Use <stdlib.h> instead of mkstemp.h.
39124         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
39125         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
39126         * lib/mkstemp.c: Don't include mkstemp.h.
39127         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
39128         * lib/stdlib--.h: Don't include mkstemp.h.
39129
39130         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
39131         (Depends-on): Add stdlib.
39132         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39133         (Includes): Use <stdlib.h> instead of mkdtemp.h.
39134         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
39135         HAVE_MKDTEMP.
39136         * lib/mkdtemp.c: Don't include mkdtemp.h.
39137         * lib/clean-temp.c: Don't include mkdtemp.h.
39138
39139         * modules/exit (Files): Remove lib/exit.h.
39140         (Depends-on): Add stdlib.
39141         (Makefile.am): Remove lib_SOURCES.
39142         (Include): Use <stdlib.h> instead of exit.h.
39143         * lib/argmatch.c: Don't include exit.h.
39144         * lib/execute.c: Likewise.
39145         * lib/pagealign_alloc.c: Likewise.
39146         * lib/pipe.c: Likewise.
39147         * lib/wait-process.c: Likewise.
39148         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
39149         * lib/exitfail.c: Likewise.
39150         * lib/savewd.c: Likewise.
39151         * lib/xsetenv.c: Likewise.
39152
39153         * modules/stdlib: New file.
39154         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
39155         and extra comments about mkstemp().
39156         * lib/exit.h: Remove file.
39157         * lib/mkdtemp.h: Remove file.
39158         * lib/mkstemp.h: Remove file.
39159         * m4/stdlib_h.m4: New file.
39160         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
39161
39162 2007-02-18  Bruno Haible  <bruno@clisp.org>
39163
39164         * modules/math-tests: New file.
39165         * tests/test-math.c: New file.
39166
39167         * modules/math: New file.
39168         * modules/mathl (Files): Remove lib/mathl.h.
39169         (Depends-on): Add math.
39170         (Makefile.am): Don't mention mathl.h.
39171         (Include): Use <math.h> instead of mathl.h.
39172         * lib/math_.h: New file.
39173         * lib/mathl.h: Remove file.
39174         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
39175         mathl.h.
39176         * lib/asinl.c: Likewise.
39177         * lib/atanl.c: Likewise.
39178         * lib/ceill.c: Likewise.
39179         * lib/cosl.c: Likewise.
39180         * lib/expl.c: Likewise.
39181         * lib/floorl.c: Likewise.
39182         * lib/frexpl.c: Likewise.
39183         * lib/ldexpl.c: Likewise.
39184         * lib/logl.c: Likewise.
39185         * lib/sincosl.c: Likewise.
39186         * lib/sinl.c: Likewise.
39187         * lib/sqrtl.c: Likewise.
39188         * lib/tanl.c: Likewise.
39189         * lib/trigl.c: Likewise.
39190         * m4/math_h.m4: New file.
39191         * MODULES.html.sh (Mathematics): Add math.
39192
39193 2007-02-17  Bruno Haible  <bruno@clisp.org>
39194
39195         * modules/wctype-tests: New file.
39196         * tests/test-wctype.c: New file.
39197
39198         * modules/wchar-tests: New file.
39199         * tests/test-wchar.c: New file.
39200
39201         * modules/unistd-tests: New file.
39202         * tests/test-unistd.c: New file.
39203
39204         * modules/time-tests: New file.
39205         * tests/test-time.c: New file.
39206
39207         * modules/sysexits-tests: New file.
39208         * tests/test-sysexits.c: New file.
39209
39210         * modules/sys_time-tests: New file.
39211         * tests/test-sys_time.c: New file.
39212
39213         * modules/sys_stat-tests: New file.
39214         * tests/test-sys_stat.c: New file.
39215
39216         * modules/sys_socket-tests: New file.
39217         * tests/test-sys_socket.c: New file.
39218
39219         * modules/sys_select-tests: New file.
39220         * tests/test-sys_select.c: New file.
39221
39222         * modules/string-tests: New file.
39223         * tests/test-string.c: New file.
39224
39225         * modules/stdbool-tests: New file.
39226         * tests/test-stdbool.c: New file.
39227
39228         * modules/netinet_in-tests: New file.
39229         * tests/test-netinet_in.c: New file.
39230
39231         * modules/inttypes-tests: New file.
39232         * tests/test-inttypes.c: New file.
39233
39234         * modules/fcntl-tests: New file.
39235         * tests/test-fcntl.c: New file.
39236
39237         * modules/byteswap-tests: New file.
39238         * tests/test-byteswap.c: New file.
39239
39240         * modules/arpa_inet-tests: New file.
39241         * tests/test-arpa_inet.c: New file.
39242
39243 2007-02-17  Bruno Haible  <bruno@clisp.org>
39244
39245         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
39246         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
39247         if the corresponding module is not enabled. Emit link warnings if
39248         the function is used nevertheless.
39249         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
39250         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
39251         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
39252         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
39253         * modules/inttypes (Depends-on): Add link-warning.
39254         (Makefile.am): Copy the contents of build-aux/link-warning.h into
39255         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
39256         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
39257         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
39258         * modules/imaxdiv (configure.ac): Likewise.
39259         * modules/strtoimax (configure.ac): Likewise.
39260         * modules/strtoumax (configure.ac): Likewise.
39261
39262 2007-02-17  Bruno Haible  <bruno@clisp.org>
39263
39264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
39265         gl_STRING_MODULE_INDICATOR_DEFAULTS.
39266         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
39267         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
39268
39269 2007-02-17  Bruno Haible  <bruno@clisp.org>
39270
39271         * modules/link-warning: New file.
39272         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
39273         * lib/string_.h (GL_LINK_WARNING): Remove definition.
39274         * modules/string (Depends-on): Add link-warning.
39275         (Makefile.am): Copy the contents of build-aux/link-warning.h into
39276         string.h.
39277         * MODULES.html.sh (Support for building libraries and executables): Add
39278         link-warning.
39279
39280 2007-02-17  Bruno Haible  <bruno@clisp.org>
39281
39282         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
39283         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
39284         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
39285         long lines.
39286
39287 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
39288             Bruno Haible  <bruno@clisp.org>
39289
39290         * modules/tmpfile: New file.
39291         * lib/tmpfile.c: New file.
39292         * m4/tmpfile.m4: New file.
39293         * MODULES.html.sh (func_all_modules): New section "Input/output".
39294
39295 2007-02-15  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
39298         (supports_delete_on_close): New function.
39299         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
39300
39301 2007-02-14  Bruno Haible  <bruno@clisp.org>
39302
39303         * modules/mbspcasecmp-tests: New file.
39304         * tests/test-mbspcasecmp.sh: New file.
39305         * tests/test-mbspcasecmp.c: New file.
39306
39307         New module mbspcasecmp.
39308         * modules/mbspcasecmp: New file.
39309         * lib/mbspcasecmp.c: New file.
39310         * lib/string_.h (strncasecmp): Change warning message.
39311         (mbspcasecmp): New declaration.
39312         * m4/mbspcasecmp.m4: New file.
39313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39314         GNULIB_MBSPCASECMP.
39315         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
39316         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
39317
39318 2007-02-14  Bruno Haible  <bruno@clisp.org>
39319
39320         * modules/mbsncasecmp-tests: New file.
39321         * tests/test-mbsncasecmp.sh: New file.
39322         * tests/test-mbsncasecmp.c: New file.
39323
39324         New module mbsncasecmp.
39325         * modules/mbsncasecmp: New file.
39326         * lib/mbsncasecmp.c: New file.
39327         * lib/string_.h (mbsncasecmp): New declaration.
39328         * m4/mbsncasecmp.m4: New file.
39329         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39330         GNULIB_MBSNCASECMP.
39331         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
39332         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
39333
39334 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
39335
39336         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
39337         Verify that it doesn't overlap with our flags.
39338         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
39339         do not have the desired effect in multibyte locales; instead, use
39340         mbscasecmp.
39341         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
39342         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
39343         we don't require GNU fnmatch ourselves (if our users require it, they
39344         should do so explicitly).
39345
39346         Fix regex code so it doesn't rely on strcasecmp.
39347         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
39348         Otherwise, include gnulib's langinfo.h.
39349         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
39350         undesirable behavior in non-C locales.  Instead, rely on localecharset.
39351         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
39352         * modules/regex (FILES): Remove m4/codeset.m4.
39353         (Depends-on): Add localcharset.  Remove strcase.
39354
39355 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39356
39357         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
39358         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
39359
39360 2007-02-13  Bruno Haible  <bruno@clisp.org>
39361
39362         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
39363         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39364
39365 2007-02-12  Bruno Haible  <bruno@clisp.org>
39366
39367         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39368         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
39369         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
39370         time warning rather than a link error.
39371
39372 2007-02-12  Bruno Haible  <bruno@clisp.org>
39373
39374         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
39375         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39376         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39377
39378 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39379
39380         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
39381         args, not 2.
39382
39383 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39384
39385         New module 'time', so that apps can include <time.h> as per
39386         POSIX and GNU instead of separate include files like time_r.h
39387         and timegm.h.  This implementation tries out a simpler approach
39388         for replacing decls in standard include files (as compared to
39389         the string module), somewhat as an experiment.
39390
39391         * config/srclist.txt: Comment out mktime.c for now.
39392         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
39393         since it doesn't apply any more.  Use generic wording instead.
39394         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
39395         'time'.
39396         * lib/time_.h, m4/time_h.m4, modules/time: New files.
39397         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
39398         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
39399         Don't include <sys/types.h>; no longer needed since we assume C89.
39400         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
39401         * lib/strftime.c: Likewise.
39402         * lib/time_r.c: Likewise.
39403         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
39404         * lib/nanosleep.c: Include <time.h> first, to check interface.
39405         * lib/strptime.c: Likewise.
39406         * lib/time_r.c: Likewise.
39407         * lib/timegm.c: Likewise.
39408         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
39409         needed.
39410         * lib/timegm.c: Don't include timegm.h; no longer needed.
39411         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
39412         time.h now handles any problems in that area.
39413         (struct timespec, nanosleep): Remove; time.h now arranges for these.
39414         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
39415         that time.h defines struct timespec.
39416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
39417         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
39418         handles that.
39419         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
39420         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
39421         needed.  Set REPLACE_LOCALTIME.
39422         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
39423         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
39424         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
39425         nanosleep; time_h.m4 now does that.  Don't require
39426         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
39427         module handles this now.
39428         * modules/getdate (Depends-on): Remove timespec.  Add time.
39429         * modules/nanosleep (Depends-on): Likewise.
39430         * modules/stat-time (Depends-on): Likewise.
39431         * modules/nanosleep (Include): Include time.h, not timespec.h.
39432         * modules/strptime (Files): Remove lib/strptime.h.
39433         (Depends-on): Add extensions, time.
39434         (Include): Include time.h, not strptime.h.
39435         * modules/time_r (Files): Remove lib/time_r.h.
39436         (Depends-on): Add time.
39437         (Include): Include time.h, not time_r.h.
39438         * modules/timegm: Likewise.
39439         * modules/timespec (Description): Now does timespec-related decls
39440         of our own, instead of struct timespec itself.
39441         (Depends-on): Add time; remove extensions.
39442         (Maintainer): Add self.
39443         * modules/utimecmp (Depends-on): Add time; remove timespec.
39444         * modules/utimens (Depends-on): Likewise.
39445         * modules/xnanosleep (Depends-on): Likewise.
39446
39447 2007-02-11  Bruno Haible  <bruno@clisp.org>
39448
39449         * lib/c-strstr.c: Include allocsa.h.
39450         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39451         * lib/c-strcasestr.c: Include allocsa.h.
39452         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39453         * lib/strcasestr.c: Include allocsa.h.
39454         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39455         * lib/mbsstr.c: Include allocsa.h.
39456         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39457         allocsa/freesa instead of malloc/free.
39458         * lib/mbscasestr.c: Include allocsa.h.
39459         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39460         allocsa/freesa instead of malloc/free.
39461         * modules/c-strstr (Depends-on): Add allocsa.
39462         * modules/c-strcasestr (Depends-on): Likewise.
39463         * modules/strcasestr (Depends-on): Likewise.
39464         * modules/mbsstr (Depends-on): Likewise.
39465         * modules/mbscasestr (Depends-on): Likewise.
39466
39467 2007-02-11  Bruno Haible  <bruno@clisp.org>
39468
39469         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
39470
39471         * modules/mbsspn-tests: New file.
39472         * tests/test-mbsspn.sh: New file.
39473         * tests/test-mbsspn.c: New file.
39474
39475 2007-02-11  Bruno Haible  <bruno@clisp.org>
39476
39477         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
39478
39479         * modules/mbspbrk-tests: New file.
39480         * tests/test-mbspbrk.sh: New file.
39481         * tests/test-mbspbrk.c: New file.
39482
39483 2007-02-11  Bruno Haible  <bruno@clisp.org>
39484
39485         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
39486         unneeded cast.
39487
39488         * modules/mbscspn-tests: New file.
39489         * tests/test-mbscspn.sh: New file.
39490         * tests/test-mbscspn.c: New file.
39491
39492 2007-02-11  Bruno Haible  <bruno@clisp.org>
39493
39494         * modules/mbscasecmp-tests: New file.
39495         * tests/test-mbscasecmp.sh: New file.
39496         * tests/test-mbscasecmp.c: New file.
39497
39498 2007-02-11  Bruno Haible  <bruno@clisp.org>
39499
39500         Ensure O(n) worst-case complexity of mbscasestr.
39501         * lib/mbscasestr.c: Include stdbool.h.
39502         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39503         functions.
39504         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
39505         the bookkeeping indicates that it's worth it.
39506         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
39507
39508         * modules/mbscasestr-tests: New file.
39509         * tests/test-mbscasestr1.c: New file.
39510         * tests/test-mbscasestr2.sh: New file.
39511         * tests/test-mbscasestr2.c: New file.
39512         * tests/test-mbscasestr3.sh: New file.
39513         * tests/test-mbscasestr3.c: New file.
39514         * tests/test-mbscasestr4.sh: New file.
39515         * tests/test-mbscasestr4.c: New file.
39516         * m4/locale-tr.m4: New file.
39517
39518 2007-02-11  Bruno Haible  <bruno@clisp.org>
39519
39520         Ensure O(n) worst-case complexity of mbsstr.
39521         * lib/mbsstr.c: Include stdbool.h.
39522         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39523         functions.
39524         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
39525         bookkeeping indicates that it's worth it.
39526         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
39527
39528         * modules/mbsstr-tests: New file.
39529         * tests/test-mbsstr1.c: New file.
39530         * tests/test-mbsstr2.sh: New file.
39531         * tests/test-mbsstr2.c: New file.
39532         * tests/test-mbsstr3.sh: New file.
39533         * tests/test-mbsstr3.c: New file.
39534         * m4/locale-fr.m4: New file.
39535
39536 2007-02-11  Bruno Haible  <bruno@clisp.org>
39537
39538         * lib/mbsrchr.c (mbsrchr): Fix bug.
39539
39540         * modules/mbsrchr-tests: New file.
39541         * tests/test-mbsrchr.sh: New file.
39542         * tests/test-mbsrchr.c: New file.
39543
39544 2007-02-11  Bruno Haible  <bruno@clisp.org>
39545
39546         * lib/mbschr.c (mbschr): Fix bug.
39547
39548         * modules/mbschr-tests: New file.
39549         * tests/test-mbschr.sh: New file.
39550         * tests/test-mbschr.c: New file.
39551         * m4/locale-zh.m4: New file.
39552
39553 2007-02-11  Bruno Haible  <bruno@clisp.org>
39554
39555         Support for copying multibyte string iterators.
39556         * lib/mbiter.h: Include <string.h>.
39557         (mbiter_multi_copy): New function.
39558         (mbi_copy): New macro.
39559         * lib/mbuiter.h: Include <string.h>.
39560         (mbuiter_multi_copy): New function.
39561         (mbui_copy): New macro.
39562
39563 2007-02-11  Bruno Haible  <bruno@clisp.org>
39564
39565         New module mbslen.
39566         * modules/mbslen: New file.
39567         * lib/mbslen.c: New file.
39568         * lib/string_.h (mbslen): New declaration.
39569         * m4/mbslen.m4: New file.
39570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39571         GNULIB_MBSLEN.
39572         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
39573         * MODULES.html.sh (Internationalization functions): Add mbslen.
39574
39575 2007-02-11  Bruno Haible  <bruno@clisp.org>
39576
39577         Ensure O(n) worst-case complexity of strcasestr substitute.
39578         * lib/strcasestr.c: Include stdbool.h.
39579         (knuth_morris_pratt): New function.
39580         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39581         bookkeeping indicates that it's worth it.
39582         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
39583
39584         * modules/strcasestr-tests: New file.
39585         * tests/test-strcasestr.c: New file.
39586
39587 2007-02-11  Bruno Haible  <bruno@clisp.org>
39588
39589         Ensure O(n) worst-case complexity of c_strcasestr.
39590         * lib/c-strcasestr.c: Include stdbool.h, string.h.
39591         (knuth_morris_pratt): New function.
39592         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
39593         the bookkeeping indicates that it's worth it.
39594         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
39595
39596         * modules/c-strcasestr-tests: New file.
39597         * tests/test-c-strcasestr.c: New file.
39598
39599 2007-02-11  Bruno Haible  <bruno@clisp.org>
39600
39601         Ensure O(n) worst-case complexity of c_strstr.
39602         * lib/c-strstr.c: Include stdbool.h, string.h.
39603         (knuth_morris_pratt): New function.
39604         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39605         bookkeeping indicates that it's worth it.
39606         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
39607
39608         * lib/c-strstr.c: Complete rewrite for maintainability.
39609
39610         * modules/c-strstr-tests: New file.
39611         * tests/test-c-strstr.c: New file.
39612
39613 2007-02-11  Bruno Haible  <bruno@clisp.org>
39614
39615         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
39616         5.2.1 and earlier, whereby \055 was treated just like the range
39617         delimiter '-'.
39618         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39619
39620 2007-02-08  Bruno Haible  <bruno@clisp.org>
39621
39622         * modules/regex (Depends-on): Add stdbool.
39623         Reported by Dalibor Topic <robilad@kaffe.org>.
39624
39625 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39626
39627         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39628         Prefer returning from main to exiting from it.
39629         Remove unnecessary parens after sizeof.
39630
39631 2007-02-05  Bruno Haible  <bruno@clisp.org>
39632
39633         New module mbssep.
39634         * modules/mbssep: New file.
39635         * lib/mbssep.c: New file.
39636         * lib/string_.h (strsep): Add a conditional link warning.
39637         (mbssep): New declaration.
39638         * m4/mbssep.m4: New file.
39639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39640         GNULIB_MBSSEP.
39641         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39642         * MODULES.html.sh (Internationalization functions): Add mbssep.
39643
39644 2007-02-05  Bruno Haible  <bruno@clisp.org>
39645
39646         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39647         Optimize search in case of 1 delimiter.
39648
39649 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39650
39651         * lib/acl.h: Include sys/types.h before sys/acl.h.
39652
39653 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39654
39655         Merge upstream fix for glibc bugzilla #3957:
39656
39657         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39658
39659         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39660         bit for RE_HAT_LISTS_NOT_NEWLINE.
39661         (build_charclass_op): Remove bogus comment.
39662
39663 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39664
39665         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39666
39667 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39668
39669         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39670         * lib/memmem.c [!defined _LIBC]: Include config.h.
39671
39672 2007-02-04  Bruno Haible  <bruno@clisp.org>
39673
39674         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39675         warning message.
39676
39677 2007-02-04  Bruno Haible  <bruno@clisp.org>
39678
39679         New module mbstok_r.
39680         * modules/mbstok_r: New file.
39681         * lib/mbstok_r.c: New file.
39682         * lib/string_.h (strtok_r): Change argument names to match the
39683         comments. Add a conditional link warning.
39684         (mbstok_r): New declaration.
39685         * m4/mbstok_r.m4: New file.
39686         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39687         GNULIB_MBSTOK_R.
39688         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39689         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39690
39691 2007-02-04  Bruno Haible  <bruno@clisp.org>
39692
39693         New module mbsspn.
39694         * modules/mbsspn: New file.
39695         * lib/mbsspn.c: New file.
39696         * lib/string_.h (strspn): Add a conditional link warning.
39697         (mbsspn): New declaration.
39698         * m4/mbsspn.m4: New file.
39699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39700         GNULIB_MBSSPN.
39701         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39702         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39703
39704 2007-02-04  Bruno Haible  <bruno@clisp.org>
39705
39706         New module mbspbrk.
39707         * modules/mbspbrk: New file.
39708         * lib/mbspbrk.c: New file.
39709         * lib/string_.h (strpbrk): Add a conditional link warning.
39710         (mbspbrk): New declaration.
39711         * m4/mbspbrk.m4: New file.
39712         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39713         GNULIB_MBSPBRK.
39714         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39715         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39716
39717 2007-02-04  Bruno Haible  <bruno@clisp.org>
39718
39719         New module mbscspn.
39720         * modules/mbscspn: New file.
39721         * lib/mbscspn.c: New file.
39722         * lib/string_.h (strcspn): Add a conditional link warning.
39723         (mbscspn): New declaration.
39724         * m4/mbscspn.m4: New file.
39725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39726         GNULIB_MBSCSPN.
39727         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39728         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39729
39730 2007-02-04  Bruno Haible  <bruno@clisp.org>
39731
39732         New module mbscasestr, reduced goal of strcasestr.
39733         * modules/mbscasestr: New file.
39734         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39735         (mbscasestr): Renamed from strcasestr.
39736         * lib/strcasestr.c: Don't include mbuiter.h.
39737         (strcasestr): Remove support for multibyte locales.
39738         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39739         Change the conditional link warning.
39740         (mbscasestr): New declaration.
39741         * m4/mbscasestr.m4: New file.
39742         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39743         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39744         REPLACE_STRCASESTR.
39745         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39747         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39748         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39749         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39750         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39751         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39752         (Depends-on): Remove mbuiter.
39753         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39754
39755 2007-02-04  Bruno Haible  <bruno@clisp.org>
39756
39757         Simplify handling of strncasecmp.
39758         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39759         the conditional link warning.
39760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39761         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39762         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39763         * modules/strcase (configure.ac): Don't invoke
39764         gl_STRING_MODULE_INDICATOR.
39765         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39766
39767 2007-02-04  Bruno Haible  <bruno@clisp.org>
39768
39769         New module mbscasecmp, reduced goal of strcasecmp.
39770         * modules/mbscasecmp: New file.
39771         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39772         (mbscasecmp): Renamed from strcasecmp.
39773         * lib/strcasecmp.c: Don't include mbuiter.h.
39774         (strcasecmp): Remove support for multibyte locales.
39775         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39776         Change the conditional link warning.
39777         (mbscasecmp): New declaration.
39778         * m4/mbscasecmp.m4: New file.
39779         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39780         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39781         REPLACE_STRCASECMP.
39782         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39784         GNULIB_MBSCASECMP.
39785         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39786         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39787         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39788         (Depends-on): Remove mbuiter.
39789         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39790
39791 2007-02-04  Bruno Haible  <bruno@clisp.org>
39792
39793         New module mbsstr. Remove module strstr.
39794         * modules/mbsstr: New file.
39795         * modules/strstr: Remove file.
39796         * lib/mbsstr.c: Renamed from lib/strstr.c.
39797         (mbsstr): Renamed from strstr.
39798         * lib/string_.h (strstr): Remove declaration. Change the conditional
39799         link warning.
39800         (mbsstr): New declaration.
39801         * m4/mbsstr.m4: New file.
39802         * m4/strstr.m4: Remove file.
39803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39804         REPLACE_STRSTR.
39805         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39806         Don't initialize GNULIB_STRSTR.
39807         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39808         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39809         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39810         (Support for systems lacking ANSI C 89): Remove strstr.
39811
39812 2007-02-04  Bruno Haible  <bruno@clisp.org>
39813
39814         New module mbsrchr.
39815         * modules/mbsrchr: New file.
39816         * lib/mbsrchr.c: New file.
39817         * lib/string_.h (strrchr): Add a conditional link warning.
39818         (mbsrchr): New declaration.
39819         * m4/mbsrchr.m4: New file.
39820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39821         GNULIB_MBSRCHR.
39822         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39823         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39824
39825 2007-02-04  Bruno Haible  <bruno@clisp.org>
39826
39827         New module mbschr.
39828         * modules/mbschr: New file.
39829         * lib/mbschr.c: New file.
39830         * lib/string_.h (strchr): Add a conditional link warning.
39831         (mbschr): New declaration.
39832         * m4/mbschr.m4: New file.
39833         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39834         GNULIB_MBSCHR.
39835         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39836         * MODULES.html.sh (Internationalization functions): Add mbschr.
39837
39838 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39839
39840         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39841
39842         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39843
39844 2007-02-04  Bruno Haible  <bruno@clisp.org>
39845
39846         New module description section 'configure.ac-early'.
39847         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39848         (func_get_autoconf_early_snippet): New function.
39849         (func_import, func_create_testdir): Use it. Remove special cases for
39850         modules 'extensions' and 'lock'.
39851         * modules/extensions (configure.ac-early): Require
39852         gl_USE_SYSTEM_EXTENSIONS.
39853         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39854
39855 2007-02-04  Bruno Haible  <bruno@clisp.org>
39856
39857         Make use of gcj-4.3's -fsource and -ftarget option.
39858         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39859         and if so try the options -fsource and -ftarget.
39860         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39861         source_version, ftarget_option, target_version arguments.
39862         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39863         (is_envjavac_oldgcj_14_14_usable): Renamed from
39864         is_envjavac_gcj_14_14_usable.
39865         (is_envjavac_oldgcj_14_13_usable): Renamed from
39866         is_envjavac_gcj_14_13_usable.
39867         (is_gcj_present): Update.
39868         (is_gcj_43, is_gcj43_usable): New functions.
39869         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39870         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39871         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39872         try the options -fsource and -ftarget.
39873
39874 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39875
39876         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39877         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39878         larger value.
39879
39880 2007-02-03  Jim Meyering  <jim@meyering.net>
39881
39882         Give tools a better chance to allocate space for very large buffers.
39883         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39884
39885         Make pwd and readlink work also when run with an unreadable parent dir
39886         on systems with openat support.
39887         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39888         provided getcwd function, even when we have openat support.
39889         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39890
39891 2007-02-02  Bruno Haible  <bruno@clisp.org>
39892
39893         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39894         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39895         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39896         portability problems if one of these functions is only used on specific
39897         platforms.
39898         Reported by Paul Eggert.
39899
39900 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39901
39902         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39903         is causing more trouble than it's curing.
39904         * lib/regex_internal.h (__mempcpy): Remove.
39905         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39906         (and make the code a tad smaller to boot).
39907         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39908
39909 2007-02-02  Jim Meyering  <jim@meyering.net>
39910
39911         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39912         section, not in the Makefile.am: one.
39913
39914 2007-02-02  Eric Blake  <ebb9@byu.net>
39915
39916         * lib/strchrnul.c: Always include config.h first.
39917
39918         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39919         gnulib strstr is not necessary here.
39920
39921 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39922
39923         * m4/socklen.m4: Fix typo.
39924
39925 2007-02-02  Eric Blake  <ebb9@byu.net>
39926
39927         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39928         * modules/netinet_in (Makefile.am): Likewise.
39929
39930 2007-02-01  Bruno Haible  <bruno@clisp.org>
39931
39932         * lib/string_.h (GL_LINK_WARNING): New macro.
39933         (strcasecmp, strstr, strcasestr): If provided by the system,
39934         conditionally define as a macro that leads to a warning instead of to
39935         an error.
39936         (strncasecmp): Conditionally define as a macro that leads to a warning.
39937
39938 2007-02-01  Karl Berry  <karl@gnu.org>
39939
39940         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39941
39942 2007-02-01  Bruno Haible  <bruno@clisp.org>
39943
39944         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39945         renamings.
39946
39947 2007-02-01  Eric Blake  <ebb9@byu.net>
39948
39949         * modules/regex (Depends-on): Revert dependence on mempcpy.
39950         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39951         module's definition of mempcpy.
39952         Reported by Paul Eggert.
39953
39954 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39955
39956         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39957         the symbol XYZ before redefining it.  This fixes a problem with
39958         programs that don't use XYZ, when compiled on systems that define
39959         XYZ to something else.
39960
39961 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39962
39963         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39964         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39965         writeable to group or other and (2) is intended to have a special
39966         mode bit that is set or cleared.  In such a case, the directory
39967         should be neither group- nor other-writeable until the special
39968         mode bits are right.
39969
39970 2007-01-31  Eric Blake  <ebb9@byu.net>
39971
39972         * modules/mountlist (Depends-on): Add strstr.
39973
39974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39975         bug.
39976         * modules/string (Makefile.am): Remove redundant replacement.
39977         * modules/regex (Depends-on): Add mempcpy.
39978
39979 2007-01-31  Bruno Haible  <bruno@clisp.org>
39980
39981         New module description field 'Link'.
39982         * gnulib-tool (func_usage): Document --extract-link-directive.
39983         (sed_extract_prog): Recognize 'Link' directive.
39984         (func_get_link_directive): New function.
39985         (func_import): Show summary of link directives.
39986         Handle --extract-link-directive option.
39987         * modules/acl (Link): New section.
39988         * modules/clock-time (Link): New section.
39989         * modules/euidaccess (Link): New section.
39990         * modules/gettext (Link): New section.
39991         * modules/iconv (Link): New section.
39992         * modules/lock (Link): New section.
39993         * modules/nanosleep (Link): New section.
39994         * modules/readline (Link): New section.
39995
39996 2007-01-27  Bruno Haible  <bruno@clisp.org>
39997
39998         Enforce the use of gnulib modules for unportable <string.h> functions.
39999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
40000         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
40001         (gl_HEADER_STRING_H_BODY): Require it.
40002         * lib/string_.h: If the gnulib module XYZ is not present, redefine
40003         the symbol XYZ to one that gives a link error.
40004         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
40005         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
40006         * modules/mempcpy (configure.ac): Likewise.
40007         * modules/memrchr (configure.ac): Likewise.
40008         * modules/stpcpy (configure.ac): Likewise.
40009         * modules/stpncpy (configure.ac): Likewise.
40010         * modules/strcase (configure.ac): Likewise.
40011         * modules/strcasestr (configure.ac): Likewise.
40012         * modules/strchrnul (configure.ac): Likewise.
40013         * modules/strdup (configure.ac): Likewise.
40014         * modules/strndup (configure.ac): Likewise.
40015         * modules/strnlen (configure.ac): Likewise.
40016         * modules/strpbrk (configure.ac): Likewise.
40017         * modules/strsep (configure.ac): Likewise.
40018         * modules/strstr (configure.ac): Likewise.
40019         * modules/strtok_r (configure.ac): Likewise.
40020
40021 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
40022
40023         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
40024
40025 2007-01-30  Jim Meyering  <jim@meyering.net>
40026
40027         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
40028
40029 2007-01-29  Bruno Haible  <bruno@clisp.org>
40030
40031         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
40032         * lib/execute.c: Likewise.
40033         * lib/pipe.c: Likewise.
40034         * lib/printf-args.h: Likewise.
40035         * lib/printf-args.c: Likewise.
40036         * lib/printf-parse.c: Likewise.
40037         * lib/vasnprintf.c: Likewise.
40038
40039 2007-01-29  Eric Blake  <ebb9@byu.net>
40040
40041         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
40042         declaration.
40043
40044 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
40045
40046         * lib/strptime.h (strptime): Use 'restrict' for args where
40047         POSIX requires this.
40048         * lib/strptime.c (strptime): Likewise.
40049         Change license notice from LGPL to GPL, since gnulib-tool will
40050         change this as needed.
40051         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
40052         defined.
40053         Include "strptime.h" first, to check interface.
40054         Do not #undef _LIBC and _NL_CURRENT.
40055         Do not include <stdlib.h>; no longer needed.
40056         Include "time_r.h" and declare ptime_locale_status
40057         only if _LIBC is not defined.
40058         (__P): Remove unused macro.
40059         (match_string): Bring back glibc version, but use it only if _LIBC
40060         is defined.
40061         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
40062         Remove unnecessary assertion and abort() call.
40063         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
40064         * m4/strptime.m4: Fix serial number comment.
40065         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
40066         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
40067         (Depends-on): Add time_r.
40068
40069 2007-01-29  Bruno Haible  <bruno@clisp.org>
40070
40071         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40072         strptime.
40073         * modules/strptime (Depends-on): Add stdbool.
40074         * lib/strptime.h: Include <time.h> always. Add comments.
40075
40076 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40077
40078         * modules/strptime: New file.
40079         * lib/strptime.h: New file.
40080         * lib/strptime.c: New file.
40081         * m4/strptime.m4: New file.
40082
40083 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40084
40085         * MODULES.html.sh: New module mpsort.
40086         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
40087
40088         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
40089         a circularity problem with HP-UX ia64 reported by Bob Proulx in
40090         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
40091         All uses changed.
40092         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
40093         All uses changed.
40094         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
40095         to _Restrict_.
40096         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
40097         the parameter matches the prototype.
40098
40099 2007-01-28  Jim Meyering  <jim@meyering.net>
40100
40101         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
40102         sys/time.h here, reverting that part of the previous patch:
40103         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
40104
40105 2007-01-28  Bruno Haible  <bruno@clisp.org>
40106
40107         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
40108         value of $(SYS_TIME_H).
40109         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
40110         remove it conditionally, too. [added by Jim Meyering]
40111         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
40112         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40113         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
40114         GETTIMEOFDAY_REPLACEMENT to 1.
40115
40116 2007-01-28  Bruno Haible  <bruno@clisp.org>
40117
40118         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
40119         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
40120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
40121         Set UNISTD_H instead of UNISTD_H2.
40122         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
40123
40124 2007-01-28  Bruno Haible  <bruno@clisp.org>
40125
40126         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
40127         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
40128
40129 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40130
40131         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
40132         (func_create_testdir): Ensure C locale for `grep' and `tr'
40133         character ranges.
40134         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
40135         ACLOCAL_AMFLAGS parsing state machine.
40136
40137 2007-01-27  Bruno Haible  <bruno@clisp.org>
40138
40139         * modules/unistr/base: Update.
40140
40141 2007-01-27  Bruno Haible  <bruno@clisp.org>
40142
40143         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
40144         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
40145         * modules/unistr/u32-mbtouc-unsafe: Renamed from
40146         modules/unistr/u32-mbtouc.
40147         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
40148         * lib/unistr.h: Update.
40149         * lib/linebreak.c: Update.
40150         * modules/unistr/u32-mbtouc: Renamed from
40151         modules/unistr/u32-mbtouc-safe.
40152         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
40153         * lib/unistr.h: Update.
40154         * lib/unistr/u32-to-u8.c: Update.
40155         * lib/unistr/u32-to-u16.c: Update.
40156
40157 2007-01-27  Bruno Haible  <bruno@clisp.org>
40158
40159         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
40160         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
40161         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
40162         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
40163         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
40164         * modules/unistr/u16-mbtouc-unsafe: Renamed from
40165         modules/unistr/u16-mbtouc.
40166         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
40167         * lib/unistr.h: Update.
40168         * lib/linebreak.c: Update.
40169         * modules/linebreak: Update.
40170         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
40171         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
40172         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
40173         * modules/unistr/u16-mbtouc: Renamed from
40174         modules/unistr/u16-mbtouc-safe.
40175         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
40176         * lib/unistr.h: Update.
40177         * lib/unistr/u16-to-u8.c: Update.
40178         * modules/unistr/u16-to-u8: Update.
40179         * lib/unistr/u16-to-u32.c: Update.
40180         * modules/unistr/u16-to-u32: Update.
40181
40182 2007-01-27  Bruno Haible  <bruno@clisp.org>
40183
40184         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
40185         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
40186         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
40187         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
40188         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
40189         * modules/unistr/u8-mbtouc-unsafe: Renamed from
40190         modules/unistr/u8-mbtouc.
40191         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
40192         * lib/unistr.h: Update.
40193         * lib/striconveh.c: Update.
40194         * modules/striconveh: Update.
40195         * lib/linebreak.c: Update.
40196         * modules/linebreak: Update.
40197         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
40198         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
40199         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
40200         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
40201         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
40202         * lib/unistr.h: Update.
40203         * lib/striconveh.c: Update.
40204         * modules/striconveh: Update.
40205         * lib/unistr/u8-to-u16.c: Update.
40206         * modules/unistr/u8-to-u16: Update.
40207         * lib/unistr/u8-to-u32.c: Update.
40208         * modules/unistr/u8-to-u32: Update.
40209
40210 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40211
40212         Sync from Libtool.
40213         * lib/argz.c: Do not include strings.h nor memory.h, include
40214         string.h unconditionally.  Patch by Simon Josefsson.
40215
40216 2007-01-27  Bruno Haible  <bruno@clisp.org>
40217
40218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
40219         from gl_HEADER_STRING_H_BODY.
40220         (gl_HEADER_STRING_H_BODY): Require it.
40221         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
40222         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
40223         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
40224         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
40225         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40226         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
40227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40228         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
40229         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
40230         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40231         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
40232         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
40233         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
40234         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40235         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
40236
40237 2007-01-27  Bruno Haible  <bruno@clisp.org>
40238
40239         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
40240         check_PROGRAMS into noinst_PROGRAMS.
40241         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
40242         check_PROGRAMS in this case.
40243         (func_import): Set for_test to false.
40244         (func_create_testdir): Set for_test to true.
40245
40246 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40247             Bruno Haible  <bruno@clisp.org>
40248
40249         * modules/strcasestr (Files): Remove lib/strcasestr.h.
40250         (Depends-on): Add string.
40251         (Includes): Use <string.h> instead of strcasestr.h.
40252         * modules/string (Makefile.am): Also substitute the value of
40253         REPLACE_STRCASESTR.
40254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
40255         assume strcasestr is declared in <string.h> not <strings.h>. Also
40256         set REPLACE_STRCASESTR.
40257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
40258         REPLACE_STRCASESTR.
40259         * lib/strcasestr.h: Remove file.
40260         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
40261         * lib/string_.h (strcasestr): New declaration.
40262
40263 2007-01-27  Bruno Haible  <bruno@clisp.org>
40264
40265         * lib/string_.h: Use 'extern'.
40266
40267 2007-01-27  Jim Meyering  <jim@meyering.net>
40268
40269         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
40270         of set-but-not-used local, "q".
40271
40272         * lib/mempcpy.c: Include <config.h> before <string.h>.
40273         This fixes a compilation error on HP-UX, due to the system's
40274         "restrict"-using mempcpy prototype.
40275
40276 2007-01-26  Bruno Haible  <bruno@clisp.org>
40277
40278         Small optimization.
40279         * lib/javacomp.c: Include c-strstr.h.
40280          (is_envjavac_gcj): Use c_strstr instead of strstr.
40281         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
40282
40283 2007-01-26  Bruno Haible  <bruno@clisp.org>
40284
40285         * MODULES.html.sh (Unicode string functions): Add the new modules.
40286
40287         * modules/uniconv/u32-strconv-to-locale: New file.
40288         * lib/uniconv/u32-strconv-to-locale.c: New file.
40289
40290         * modules/uniconv/u16-strconv-to-locale: New file.
40291         * lib/uniconv/u16-strconv-to-locale.c: New file.
40292
40293         * modules/uniconv/u8-strconv-to-locale: New file.
40294         * lib/uniconv/u8-strconv-to-locale.c: New file.
40295
40296         * modules/uniconv/u32-strconv-from-locale: New file.
40297         * lib/uniconv/u32-strconv-from-locale.c: New file.
40298
40299         * modules/uniconv/u16-strconv-from-locale: New file.
40300         * lib/uniconv/u16-strconv-from-locale.c: New file.
40301
40302         * modules/uniconv/u8-strconv-from-locale: New file.
40303         * lib/uniconv/u8-strconv-from-locale.c: New file.
40304
40305         * modules/uniconv/u32-strconv-to-enc: New file.
40306         * lib/uniconv/u32-strconv-to-enc.c: New file.
40307         * modules/uniconv/u32-strconv-to-enc-tests: New file.
40308         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
40309
40310         * modules/uniconv/u16-strconv-to-enc: New file.
40311         * lib/uniconv/u16-strconv-to-enc.c: New file.
40312         * lib/uniconv/u-strconv-to-enc.h: New file.
40313         * modules/uniconv/u16-strconv-to-enc-tests: New file.
40314         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
40315
40316         * modules/uniconv/u8-strconv-to-enc: New file.
40317         * lib/uniconv/u8-strconv-to-enc.c: New file.
40318         * modules/uniconv/u8-strconv-to-enc-tests: New file.
40319         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
40320
40321         * modules/uniconv/u32-strconv-from-enc: New file.
40322         * lib/uniconv/u32-strconv-from-enc.c: New file.
40323         * modules/uniconv/u32-strconv-from-enc-tests: New file.
40324         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
40325
40326         * modules/uniconv/u16-strconv-from-enc: New file.
40327         * lib/uniconv/u16-strconv-from-enc.c: New file.
40328         * modules/uniconv/u16-strconv-from-enc-tests: New file.
40329         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
40330
40331         * modules/uniconv/u8-strconv-from-enc: New file.
40332         * lib/uniconv/u8-strconv-from-enc.c: New file.
40333         * lib/uniconv/u-strconv-from-enc.h: New file.
40334         * modules/uniconv/u8-strconv-from-enc-tests: New file.
40335         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
40336
40337         * modules/uniconv/u32-conv-from-enc: New file.
40338         * lib/uniconv/u32-conv-from-enc.c: New file.
40339         * modules/uniconv/u32-conv-from-enc-tests: New file.
40340         * tests/uniconv/test-u32-conv-from-enc.c: New file.
40341
40342         * modules/uniconv/u16-conv-from-enc: New file.
40343         * lib/uniconv/u16-conv-from-enc.c: New file.
40344         * lib/uniconv/u-conv-from-enc.h: New file.
40345         * modules/uniconv/u16-conv-from-enc-tests: New file.
40346         * tests/uniconv/test-u16-conv-from-enc.c: New file.
40347
40348         * modules/uniconv/u8-conv-from-enc: New file.
40349         * lib/uniconv/u8-conv-from-enc.c: New file.
40350         * modules/uniconv/u8-conv-from-enc-tests: New file.
40351         * tests/uniconv/test-u8-conv-from-enc.c: New file.
40352
40353         * modules/uniconv/base: New file.
40354         * lib/uniconv.h: New file.
40355
40356 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
40357
40358         * doc/gnulib-tool.texi (Initial import): Update to match current
40359         behavior with strdup module.
40360         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
40361         * lib/memmem.h: Remove; all uses removed.  This is now done
40362         by <string.h>.
40363         * lib/mempcpy.h: Likewise.
40364         * lib/memrchr.h: Likewise.
40365         * lib/stpcpy.h: Likewise.
40366         * lib/stpncpy.h: Likewise.
40367         * lib/strcase.h: Likewise.
40368         * lib/strchrnul.h: Likewise.
40369         * lib/strdup.h: Likewise.
40370         * lib/strndup.h: Likewise.
40371         * lib/strnlen.h: Likewise.
40372         * lib/strpbrk.h: Likewise.
40373         * lib/strsep.h: Likewise.
40374         * lib/strstr.h: Likewise.
40375         * lib/strtok_r.h: Likewise.
40376         * lib/string_.h: New file.
40377         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
40378         Rely on <string.h> instead.
40379         * lib/canon-host.c: Likewise.
40380         * lib/chdir-long.c: Likewise.
40381         * lib/concatpath.c: Likewise.
40382         * lib/exclude.c: Likewise.
40383         * lib/fchdir.c: Likewise.
40384         * lib/getaddrinfo.c: Likewise.
40385         * lib/getcwd.c: Likewise.
40386         * lib/getsubopt.c: Likewise.
40387         * lib/glob.c: Likewise.
40388         * lib/hard-locale.c: Likewise.
40389         * lib/iconvme.c: Likewise.
40390         * lib/javacomp.c: Likewise.
40391         * lib/mempcpy.c: Likewise.
40392         * lib/memrchr.c: Likewise.
40393         * lib/regex_internal.h: Likewise.
40394         * lib/stpncpy.c: Likewise.
40395         * lib/strcasecmp.c: Likewise.
40396         * lib/strchrnul.c: Likewise.
40397         * lib/strdup.c: Likewise.
40398         * lib/striconv.c: Likewise.
40399         * lib/striconveh.c: Likewise.
40400         * lib/striconveha.c: Likewise.
40401         * lib/strncasecmp.c: Likewise.
40402         * lib/strndup.c: Likewise.
40403         * lib/strnlen.c: Likewise.
40404         * lib/strsep.c: Likewise.
40405         * lib/strstr.c: Likewise.
40406         * lib/strtok_r.c: Likewise.
40407         * lib/userspec.c: Likewise.
40408         * lib/w32spawn.h: Likewise.
40409         * lib/xstrndup.c: Likewise.
40410         * lib/mountlist.c (strstr): Remove decl.
40411         * m4/string_h.m4: New file.
40412         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
40413         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
40414         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
40415         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
40416         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
40417         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
40418         Set REPLACE_STRCASECMP if necessary.
40419         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
40420         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
40421         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
40422         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
40423         HAVE_DECL_STRDUP if necessary.
40424         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
40425         since gl_FUNC_STRNDUP does that now.
40426         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
40427         Check for decl here...
40428         (gl_PREREQ_STRNLEN): ... not here.
40429         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
40430         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
40431         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
40432         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
40433         necessary.
40434         * modules/string: New file.
40435         * modules/memmem (Files): Remove special-purpose include file.
40436         (Depends-on): Add string.
40437         (Include): Include <string.h>, not the removed file.
40438         * modules/mempcpy: Likewise.
40439         * modules/memrchr: Likewise.
40440         * modules/stpcpy: Likewise.
40441         * modules/stpncpy: Likewise.
40442         * modules/strcase: Likewise.
40443         * modules/strchrnul: Likewise.
40444         * modules/strdup: Likewise.
40445         * modules/strndup: Likewise.
40446         * modules/strnlen: Likewise.
40447         * modules/strpbrk: Likewise.
40448         * modules/strsep: Likewise.
40449         * modules/strstr: Likewise.
40450         * modules/strtok_r: Likewise.
40451         * tests/test-dirname.c: Don't include "strdup.h", since
40452         <string.h> now suffices.
40453         * tests/test-memmem.c: Don't include "memmem.h", since
40454         <string.h> now suffices.
40455
40456 2007-01-25  Bruno Haible  <bruno@clisp.org>
40457
40458         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
40459         *resultp is 0.
40460
40461         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
40462         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
40463         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
40464         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
40465
40466         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
40467         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
40468         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
40469         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
40470         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
40471         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
40472
40473 2007-01-24  Bruno Haible  <bruno@clisp.org>
40474
40475         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
40476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
40477         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
40478         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
40479         gl_FUNC_FTS_CORE.
40480         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
40481         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
40482         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40483         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
40484         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
40485         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
40486         gl_FUNC_FCHOWNAT.
40487         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
40488         gl_FUNC_STRFTIME.
40489         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
40490         Reported by Ralf Wildenhues.
40491
40492 2007-01-24  Bruno Haible  <bruno@clisp.org>
40493
40494         Drop AC_REQUIRE calls that are redundant with the module dependencies.
40495         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
40496         gl_GETADDRINFO.
40497         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
40498         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
40499         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
40500
40501 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
40502
40503         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
40504         Don't use 'exit'; just return from 'main'.
40505         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
40506
40507         * lib/fnmatch_.h: Readjust white space and comments to match
40508         glibc, to avoid spurious diffs.
40509
40510 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40511
40512         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
40513         2004-12-01 change by Jakub Jelinek, since this code won't compile
40514         if !LIBC.  Problem reported by Bob Proulx.
40515
40516 2007-01-23  Bruno Haible  <bruno@clisp.org>
40517
40518         * lib/striconveh.c: Include c-strcaseeq.h.
40519         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
40520         * modules/striconveh (Depends-on): Add c-strcaseeq.
40521
40522 2007-01-23  Bruno Haible  <bruno@clisp.org>
40523
40524         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
40525
40526         * modules/c-strcaseeq: New file.
40527         * lib/c-strcaseeq.h: New file.
40528
40529         * modules/streq: New file.
40530         * lib/streq.h: New file.
40531
40532 2007-01-23  Bruno Haible  <bruno@clisp.org>
40533
40534         * modules/striconveha-tests: New file.
40535         * tests/test-striconveha.c: New file.
40536
40537         * lib/striconveha.h: Include <stdbool.h>.
40538         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
40539         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
40540         (mem_iconveha_notranslit): Renamed from mem_iconveha.
40541         (mem_iconveha): New function.
40542         (str_iconveha_notranslit): Renamed from str_iconveha.
40543         (str_iconveha): New function.
40544         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
40545         c-strcase.
40546
40547 2007-01-23  Bruno Haible  <bruno@clisp.org>
40548
40549         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
40550         encodings without forgiving before trying any encoding with handler.
40551         (str_iconveha): Try all encodings without forgiving before trying any
40552         encoding with handler.
40553
40554 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40555
40556         Import the following changes from libc.
40557
40558         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40559
40560         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
40561
40562         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
40563
40564         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
40565         normal_bracket label.
40566
40567         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
40568
40569         [BZ #361]
40570         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
40571         to normal_bracket after fetching the next character.
40572
40573 2007-01-22  Bruno Haible  <bruno@clisp.org>
40574
40575         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
40576         argument.
40577         * lib/striconveh.c (iconv_carefully_1): New function.
40578         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
40579         argument.
40580         (str_cd_iconveh): Update.
40581         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
40582         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
40583         * tests/test-striconveh.c (MAGIC): New macro.
40584         (new_offsets): New function.
40585         (main): Test call with and without offsets.
40586
40587 2007-01-22  Bruno Haible  <bruno@clisp.org>
40588
40589         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
40590         * modules/sys_select (Makefile.am): Likewise.
40591         * modules/sys_socket (Makefile.am): Likewise.
40592         * modules/sys_time (Makefile.am): Likewise.
40593
40594 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40595
40596         * modules/gettimeofday (License): Change from GPL to LGPL, since
40597         gettimeofday is a library function.
40598
40599 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40600
40601         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
40602
40603 2007-01-21  Bruno Haible  <bruno@clisp.org>
40604
40605         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
40606
40607 2007-01-21  Bruno Haible  <bruno@clisp.org>
40608
40609         * modules/striconveha: New file.
40610         * lib/striconveha.h: New file.
40611         * lib/striconveha.c: New file.
40612         * MODULES.html.sh (Internationalization functions): Add striconveha.
40613         * lib/striconv.c (str_iconv): Optimize the case of an empty input
40614         string.
40615         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
40616
40617 2007-01-21  Bruno Haible  <bruno@clisp.org>
40618
40619         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40620         * lib/striconveh.c (str_iconveh): Likewise.
40621
40622 2007-01-21  Bruno Haible  <bruno@clisp.org>
40623
40624         * lib/striconveh.h (mem_iconveh): New declaration.
40625         * lib/striconveh.c (mem_iconveh): New function.
40626         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40627
40628 2007-01-21  Bruno Haible  <bruno@clisp.org>
40629
40630         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40631
40632         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40633         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40634         original result buffer.
40635         (str_cd_iconveh): Update.
40636         * tests/test-striconveh.c (main): Update.
40637
40638         * lib/striconv.h (mem_cd_iconv): Change specification.
40639         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40640         result buffer.
40641         (str_cd_iconv): Update.
40642         * tests/test-striconv.c (main): Update.
40643
40644 2007-01-21  Bruno Haible  <bruno@clisp.org>
40645
40646         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40647
40648 2007-01-20  Jim Meyering  <jim@meyering.net>
40649
40650         * lib/userspec.c (parse_with_separator): If a user or group string
40651         starts with "+", skip the corresponding name-to-ID look-up, since
40652         such a look-up must fail: user and group names may not include "+".
40653
40654 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40655
40656         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40657         since we now assume the sys_time module.
40658         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40659         check for sys/time.h; no longer needed.
40660         * modules/poll (Depends-on): Depend on sys_time.
40661
40662 2007-01-18  Bruno Haible  <bruno@clisp.org>
40663
40664         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40665         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40666
40667         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40668         gettimeofday.
40669
40670         * tests/test-gettimeofday.c: Include <time.h>.
40671         (dummy): Remove variable.
40672
40673         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40674         gl_HEADER_SYS_TIME_H.
40675         (gl_HEADER_SYS_TIME_H): New macro.
40676
40677         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40678         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40679         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40680         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40681         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40682         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40683         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40684         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40685         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40686         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40687         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40688
40689         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40690         last change; it caused a compilation error when cross-compiling to
40691         Cygwin.
40692
40693 2007-01-18  Jim Meyering  <jim@meyering.net>
40694
40695         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40696         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40697         than the race-prone "test -d sys || mkdir sys".
40698         (configure.ac): Use AC_PROG_MKDIR_P.
40699         * modules/sys_select: Likewise.
40700         * modules/sys_socket: Likewise.
40701         * modules/sys_time: Likewise.
40702
40703 2007-01-18  Eric Blake  <ebb9@byu.net>
40704
40705         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40706         replace gettimeofday.
40707         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40708         name, to avoid infinite recursion.
40709
40710 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40711
40712         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40713         module sys_time.
40714         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40715         assume timespec.h defines struct timeval.
40716         * lib/settime.c: Likewise.
40717         * lib/utimens.c: Likewise.
40718         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40719         since we now assume the gettimeofday module.
40720         * lib/tempname.c (__gen_tempname): Likewise.
40721         * lib/gettimeofday.h: Remove.
40722         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40723         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40724         Include <time.h>, for 'time()'.
40725         (localtime_buffer_addr): Also use this workaround if
40726         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40727         to simplify the uses.  All uses changed.
40728         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40729         that #undef is inside {}, and 'const' follows type name consistently.
40730         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40731         (gettimeofday): Do not use the maximum possible value for
40732         tv->tv_usec, since that might break usages other than ls.c.
40733         Instead, we'll leave ls.c alone.  This undoes today's patch
40734         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40735         we've never observed the problem but might as well keep the
40736         canary.
40737         * lib/nanosleep.c: Include timespec.h first, for interface check.
40738         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40739         now assume the sys_time module.
40740         * lib/tempname.c: Likewise.
40741         * lib/timespec.h: Likewise.
40742         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40743         needed.
40744         * lib/strftime.c: Likewise.
40745         * lib/timespec.h: Likewise.
40746         * lib/posixtm.c: Include posixtm.h first, for interface check.
40747         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40748         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40749         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40750         * lib/sys_time_.h: New file.
40751         * lib/timespec.h (struct timespec): Use long int, not long.
40752         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40753         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40754         Remove obsolescent call to AC_HEADER_TIME.
40755         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40757         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40758         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40759         Likewise.
40760         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40761         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40762         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40763         into the sys_time module.  Check for gettimeofday just once.
40764         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40765         for gettimeofday signature to just check the signature.  Merely
40766         compile it, since linking doesn't test signature.  Improve test for
40767         whether gettimeofday.o is actually needed.
40768         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40769         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40770         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40771         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40772         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40773         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40774         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40775         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40776         than worrying about sys/time.h.
40777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40778         Don't bother worrying about TIME_WITH_SYS_TIME.
40779         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40780         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40781         * m4/sys_time_h.m4: New file.
40782         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40783         Don't include sys/time.h.  Return from main rather than exiting.
40784         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40785         all uses changed.
40786         * modules/gethrxtime (Depends-on): Add sys_time.
40787         * modules/gettime (Depends-on): Likewise.
40788         * modules/gettimeofday (Depends-on): Likewise.
40789         * modules/nanosleep (Depends-on): Likewise.
40790         * modules/settime (Depends-on): Likewise.
40791         * modules/tempname (Depends-on): Likewise.
40792         * modules/utimens (Depends-on): Likewise.
40793         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40794         (Include:) Change back to <sys/time.h>.
40795         (Maintainer:) Add self.
40796         * modules/sys_time: New file.
40797         * modules/tempname (Depends-on): Add gettimeofday.
40798         * tests/test-gettimeofday.c: Include <sys/time.h>
40799         rather than gettimeofday.h.
40800
40801 2007-01-17  Bruno Haible  <bruno@clisp.org>
40802
40803         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40804         the license default to GPL.
40805         (func_create_testdir): Don't complain if a module is LGPL and its
40806         tests module depends on GPLed modules.
40807
40808 2007-01-17  Bruno Haible  <bruno@clisp.org>
40809
40810         * lib/gettimeofday.c (gettimeofday): Add code for the case
40811         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40812         maximum possible value for tv->tv_usec, rather than the minimum one.
40813
40814 2005-10-08  Martin Lambers  <marlam@marlam.de>
40815 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40816 2007-01-16  Bruno Haible  <bruno@clisp.org>
40817
40818         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40819         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40820         gl_FUNC_GETTIMEOFDAY.
40821         (Include): Add gettimeofday.h.
40822         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40823         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40824         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40825         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40826         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40827         * lib/gettimeofday.h: New file.
40828         * lib/gettimeofday.c: Include <sys/timeb.h>.
40829         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40830         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40831         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40832         fall back on time().
40833
40834         * tests/test-gettimeofday.c: New file.
40835         * modules/gettimeofday-tests: New file.
40836
40837 2007-01-16  Eric Blake  <ebb9@byu.net>
40838
40839         * modules/fnmatch (Depends-on): Depend on wchar.
40840         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40841         * m4/fnmatch.m4: Likewise.
40842         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40843         * m4/mbchar.m4: Likewise.
40844         * modules/mbswidth (Depends-on): Depend on wchar.
40845         * lib/mbswidth.c: Assume <wchar.h>.
40846         * m4/mbswidth.m4: Likewise.
40847         * modules/quotearg (Depends-on): Depend on wchar.
40848         * lib/quotearg.c: Assume <wchar.h>.
40849         * m4/quotearg.m4: Likewise.
40850         * modules/regex (Depends-on): Depend on wchar.
40851         * lib/regex_internal.h: Assume <wchar.h>.
40852         * m4/regex.m4: Likewise.
40853         * modules/stdint (Depends-on): Depend on wchar.
40854         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40855         * m4/stdint.m4: Likewise.
40856         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40857         * modules/strftime (Depends-on): Depend on wchar.
40858         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40859         * modules/strtol (Depends-on): Depend on wchar.
40860         * lib/strtol.c: Assume <wchar.h>.
40861         * modules/wcwidth (Depends-on): Depend on wchar.
40862         * lib/wcwidth.h: Assume <wchar.h>.
40863         * m4/wcwidth.m4: Likewise.
40864
40865 2007-01-16  Bruno Haible  <bruno@clisp.org>
40866
40867         * modules/csharpexec-script: New, created from...
40868         * modules/csharpexec: ... this.
40869
40870 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40871
40872         * modules/javaexec-script: New, created from...
40873         * modules/javaexec: ... this.
40874
40875 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40876
40877         * modules/poll (Dependencies): Add sys_select.
40878
40879 2007-01-15  Jim Meyering  <jim@meyering.net>
40880
40881         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40882         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40883         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40884         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40885
40886 2007-01-15  Bruno Haible  <bruno@clisp.org>
40887
40888         * modules/striconveh: New file.
40889         * lib/striconveh.h: New file.
40890         * lib/striconveh.c: New file.
40891         * MODULES.html.sh (Internationalization functions): Add striconveh.
40892
40893         * modules/striconveh-tests: New file.
40894         * tests/test-striconveh.c: New file.
40895
40896 2007-01-15  Bruno Haible  <bruno@clisp.org>
40897
40898         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40899         not from GNU libiconv or GNU libc.
40900
40901 2007-01-15  Bruno Haible  <bruno@clisp.org>
40902
40903         * doc/gnulib-intro.texi (Copyright): Explain the different license
40904         terms for module descriptions, autoconf macros, tests, documentation.
40905
40906 2007-01-14  Bruno Haible  <bruno@clisp.org>
40907
40908         * modules/striconv-tests: New file.
40909         * tests/test-striconv.c: New file.
40910
40911 2007-01-14  Bruno Haible  <bruno@clisp.org>
40912
40913         * modules/iconv-tests: New file.
40914         * tests/test-iconv.c: New file.
40915
40916 2007-01-14  Bruno Haible  <bruno@clisp.org>
40917
40918         * gnulib-tool (func_get_license): For test modules, use the license of
40919         the main module.
40920
40921 2007-01-14  Bruno Haible  <bruno@clisp.org>
40922
40923         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40924         if iconv is found to exist.
40925
40926 2007-01-14  Bruno Haible  <bruno@clisp.org>
40927
40928         * modules/c-ctype-tests: New file.
40929         * tests/test-c-ctype.c: New file.
40930
40931 2007-01-14  Bruno Haible  <bruno@clisp.org>
40932
40933         * modules/binary-io-tests: New file.
40934         * tests/test-binary-io.sh: New file.
40935         * tests/test-binary-io.c: New file.
40936
40937 2007-01-14  Bruno Haible  <bruno@clisp.org>
40938
40939         * modules/array-oset-tests: New file.
40940         * tests/test-array_oset.c: New file.
40941
40942 2007-01-14  Bruno Haible  <bruno@clisp.org>
40943
40944         * modules/array-list-tests: New file.
40945         * tests/test-array_list.c: New file.
40946
40947 2007-01-14  Bruno Haible  <bruno@clisp.org>
40948
40949         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40950         and make.
40951         Reported by Simon Josefsson in
40952         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40953
40954 2007-01-14  Bruno Haible  <bruno@clisp.org>
40955
40956         * modules/allocsa-tests: New file.
40957         * tests/test-allocsa.c: New file.
40958
40959 2007-01-14  Bruno Haible  <bruno@clisp.org>
40960
40961         * modules/fchdir (Depends-on): Add absolute-header.
40962         * modules/unistd (Depends-on): Likewise.
40963
40964 2006-12-30  Bruno Haible  <bruno@clisp.org>
40965
40966         * modules/fchdir: New file.
40967         * modules/unistd (Files): Add lib/unistd_.h.
40968         (Makefile.am): Generate unistd.h from unistd_.h.
40969         * lib/fchdir.c: New file.
40970         * lib/dirent_.h: New file.
40971         * lib/unistd_.h: New file.
40972         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40973         * m4/fchdir.m4: New file.
40974         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40975         (gl_HEADER_UNISTD): Invoke it.
40976         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40977         function.
40978         * lib/backupfile.c (opendir, closedir): Undefine.
40979         * lib/chown.c (open, close): Undefine.
40980         * lib/clean-temp.c (open, close): Undefine.
40981         * lib/copy-file.c (open, close): Undefine.
40982         * lib/execute.c (open, close): Undefine.
40983         * lib/fsusage.c (open, close): Undefine.
40984         * lib/gc-gnulib.c (open, close): Undefine.
40985         * lib/getcwd.c (opendir, closedir): Undefine.
40986         * lib/glob.c (opendir, closedir): Undefine.
40987         * lib/javacomp.c (open, close): Undefine.
40988         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40989         * lib/openat-proc.c (open, close): Undefine.
40990         * lib/pagealign_alloc.c (open, close): Undefine.
40991         * lib/pipe.c (open, close): Undefine.
40992         * lib/progreloc.c (open, close): Undefine.
40993         * lib/savedir.c (opendir, closedir): Undefine.
40994         * lib/utime.c (open, close): Undefine.
40995         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40996
40997 2007-01-10  Bruno Haible  <bruno@clisp.org>
40998
40999         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
41000
41001 2007-01-12  Eric Blake  <ebb9@byu.net>
41002
41003         Provide a robust <wchar.h>.  Further simplifications are now
41004         possible in other modules, but not included here.
41005         * modules/wchar: New module.
41006         * m4/wchar.m4: New file.
41007         * lib/wchar_.h: Likewise.
41008         * modules/mbchar (Depends-on): Depend on wchar, as the first use
41009         of the new module.
41010         * MODULES.html.sh (Extended multibyte and wide character utilities):
41011         New section.
41012
41013 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
41014
41015         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
41016         to a reasonable default for memory allocation.
41017         (xreadlink): Don't allocate a huge buffer, to work around a buggy
41018         file system that reports garbage st_size values for symlinks.
41019         Problem reported by Liyang Hu.
41020
41021 2007-01-11  Simon Josefsson  <simon@josefsson.org>
41022
41023         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
41024         Emacs .#* auto-save files).
41025
41026 2007-01-11  Bruno Haible  <bruno@clisp.org>
41027
41028         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
41029         directory.
41030
41031 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
41032
41033         Use @...@ consistently in lib/wctype_.h.
41034         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
41035         on it being set to 1 or 0.
41036         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
41037         go back to AC_SUBSTing it.
41038         * modules/wctype (Makefile.am): Undo previous change.
41039
41040 2007-01-10  Eric Blake  <ebb9@byu.net>
41041
41042         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
41043         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
41044         * modules/wctype (Makefile.am): Likewise.
41045         Reported by Chris McGuire.
41046
41047 2007-01-10  Jim Meyering  <jim@meyering.net>
41048
41049         fts.c: a small readability/maintainability improvement
41050         * lib/fts.c (fts_read): Make this code slightly more readable and
41051         maintainable by hoisting the "sp->fts_cur = p" assignments to
41052         immediately follow the statements that set P.  Derived from
41053         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
41054
41055 2007-01-10  Eric Blake  <ebb9@byu.net>
41056
41057         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
41058         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
41059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41060         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41061         Reported by Chris McGuire.
41062
41063 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41064
41065         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
41066         in sed script.
41067
41068 2007-01-09  Bruno Haible  <bruno@clisp.org>
41069
41070         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
41071         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
41072         variables.
41073         (func_module): Use them.
41074
41075 2007-01-09  Bruno Haible  <bruno@clisp.org>
41076
41077         * modules/unistr/base: New file.
41078         * lib/unistr.h: New file.
41079
41080         * modules/unistr/u8-to-u16: New file.
41081         * lib/unistr/u8-to-u16.c: New file.
41082
41083         * modules/unistr/u8-to-u32: New file.
41084         * lib/unistr/u8-to-u32.c: New file.
41085
41086         * modules/unistr/u16-to-u8: New file.
41087         * lib/unistr/u16-to-u8.c: New file.
41088
41089         * modules/unistr/u16-to-u32: New file.
41090         * lib/unistr/u16-to-u32.c: New file.
41091
41092         * modules/unistr/u32-to-u8: New file.
41093         * lib/unistr/u32-to-u8.c: New file.
41094
41095         * modules/unistr/u32-to-u16: New file.
41096         * lib/unistr/u32-to-u16.c: New file.
41097
41098         * modules/unistr/u8-check: New file.
41099         * modules/unistr/u16-check: New file.
41100         * modules/unistr/u32-check: New file.
41101         * lib/unistr/u8-check.c: New file.
41102         * lib/unistr/u16-check.c: New file.
41103         * lib/unistr/u32-check.c: New file.
41104
41105         * modules/unistr/u8-chr: New file.
41106         * modules/unistr/u16-chr: New file.
41107         * modules/unistr/u32-chr: New file.
41108         * lib/unistr/u8-chr.c: New file.
41109         * lib/unistr/u16-chr.c: New file.
41110         * lib/unistr/u32-chr.c: New file.
41111
41112         * modules/unistr/u8-cmp: New file.
41113         * modules/unistr/u16-cmp: New file.
41114         * modules/unistr/u32-cmp: New file.
41115         * lib/unistr/u8-cmp.c: New file.
41116         * lib/unistr/u16-cmp.c: New file.
41117         * lib/unistr/u32-cmp.c: New file.
41118
41119         * modules/unistr/u8-cpy: New file.
41120         * modules/unistr/u16-cpy: New file.
41121         * modules/unistr/u32-cpy: New file.
41122         * lib/unistr/u8-cpy.c: New file.
41123         * lib/unistr/u16-cpy.c: New file.
41124         * lib/unistr/u32-cpy.c: New file.
41125         * lib/unistr/u-cpy.h: New file.
41126
41127         * modules/unistr/u8-cpy-alloc: New file.
41128         * modules/unistr/u16-cpy-alloc: New file.
41129         * modules/unistr/u32-cpy-alloc: New file.
41130         * lib/unistr/u8-cpy-alloc.c: New file.
41131         * lib/unistr/u16-cpy-alloc.c: New file.
41132         * lib/unistr/u32-cpy-alloc.c: New file.
41133         * lib/unistr/u-cpy-alloc.h: New file.
41134
41135         * modules/unistr/u8-endswith: New file.
41136         * modules/unistr/u16-endswith: New file.
41137         * modules/unistr/u32-endswith: New file.
41138         * lib/unistr/u8-endswith.c: New file.
41139         * lib/unistr/u16-endswith.c: New file.
41140         * lib/unistr/u32-endswith.c: New file.
41141         * lib/unistr/u-endswith.h: New file.
41142
41143         * modules/unistr/u8-mblen: New file.
41144         * modules/unistr/u16-mblen: New file.
41145         * modules/unistr/u32-mblen: New file.
41146         * lib/unistr/u8-mblen.c: New file.
41147         * lib/unistr/u16-mblen.c: New file.
41148         * lib/unistr/u32-mblen.c: New file.
41149
41150         * modules/unistr/u8-mbtouc: New file.
41151         * modules/unistr/u16-mbtouc: New file.
41152         * modules/unistr/u32-mbtouc: New file.
41153         * lib/unistr/u8-mbtouc.c: New file.
41154         * lib/unistr/u16-mbtouc.c: New file.
41155         * lib/unistr/u32-mbtouc.c: New file.
41156
41157         * modules/unistr/u8-mbtouc-safe: New file.
41158         * modules/unistr/u16-mbtouc-safe: New file.
41159         * modules/unistr/u32-mbtouc-safe: New file.
41160         * lib/unistr/u8-mbtouc-safe.c: New file.
41161         * lib/unistr/u16-mbtouc-safe.c: New file.
41162         * lib/unistr/u32-mbtouc-safe.c: New file.
41163
41164         * modules/unistr/u8-move: New file.
41165         * modules/unistr/u16-move: New file.
41166         * modules/unistr/u32-move: New file.
41167         * lib/unistr/u8-move.c: New file.
41168         * lib/unistr/u16-move.c: New file.
41169         * lib/unistr/u32-move.c: New file.
41170         * lib/unistr/u-move.h: New file.
41171
41172         * modules/unistr/u8-next: New file.
41173         * modules/unistr/u16-next: New file.
41174         * modules/unistr/u32-next: New file.
41175         * lib/unistr/u8-next.c: New file.
41176         * lib/unistr/u16-next.c: New file.
41177         * lib/unistr/u32-next.c: New file.
41178
41179         * modules/unistr/u8-prev: New file.
41180         * modules/unistr/u16-prev: New file.
41181         * modules/unistr/u32-prev: New file.
41182         * lib/unistr/u8-prev.c: New file.
41183         * lib/unistr/u16-prev.c: New file.
41184         * lib/unistr/u32-prev.c: New file.
41185
41186         * modules/unistr/u8-set: New file.
41187         * modules/unistr/u16-set: New file.
41188         * modules/unistr/u32-set: New file.
41189         * lib/unistr/u8-set.c: New file.
41190         * lib/unistr/u16-set.c: New file.
41191         * lib/unistr/u32-set.c: New file.
41192         * lib/unistr/u-set.h: New file.
41193
41194         * modules/unistr/u8-startswith: New file.
41195         * modules/unistr/u16-startswith: New file.
41196         * modules/unistr/u32-startswith: New file.
41197         * lib/unistr/u8-startswith.c: New file.
41198         * lib/unistr/u16-startswith.c: New file.
41199         * lib/unistr/u32-startswith.c: New file.
41200         * lib/unistr/u-startswith.h: New file.
41201
41202         * modules/unistr/u8-stpcpy: New file.
41203         * modules/unistr/u16-stpcpy: New file.
41204         * modules/unistr/u32-stpcpy: New file.
41205         * lib/unistr/u8-stpcpy.c: New file.
41206         * lib/unistr/u16-stpcpy.c: New file.
41207         * lib/unistr/u32-stpcpy.c: New file.
41208         * lib/unistr/u-stpcpy.h: New file.
41209
41210         * modules/unistr/u8-stpncpy: New file.
41211         * modules/unistr/u16-stpncpy: New file.
41212         * modules/unistr/u32-stpncpy: New file.
41213         * lib/unistr/u8-stpncpy.c: New file.
41214         * lib/unistr/u16-stpncpy.c: New file.
41215         * lib/unistr/u32-stpncpy.c: New file.
41216         * lib/unistr/u-stpncpy.h: New file.
41217
41218         * modules/unistr/u8-strcat: New file.
41219         * modules/unistr/u16-strcat: New file.
41220         * modules/unistr/u32-strcat: New file.
41221         * lib/unistr/u8-strcat.c: New file.
41222         * lib/unistr/u16-strcat.c: New file.
41223         * lib/unistr/u32-strcat.c: New file.
41224         * lib/unistr/u-strcat.h: New file.
41225
41226         * modules/unistr/u8-strchr: New file.
41227         * modules/unistr/u16-strchr: New file.
41228         * modules/unistr/u32-strchr: New file.
41229         * lib/unistr/u8-strchr.c: New file.
41230         * lib/unistr/u16-strchr.c: New file.
41231         * lib/unistr/u32-strchr.c: New file.
41232
41233         * modules/unistr/u8-strcmp: New file.
41234         * modules/unistr/u16-strcmp: New file.
41235         * modules/unistr/u32-strcmp: New file.
41236         * lib/unistr/u8-strcmp.c: New file.
41237         * lib/unistr/u16-strcmp.c: New file.
41238         * lib/unistr/u32-strcmp.c: New file.
41239
41240         * modules/unistr/u8-strcpy: New file.
41241         * modules/unistr/u16-strcpy: New file.
41242         * modules/unistr/u32-strcpy: New file.
41243         * lib/unistr/u8-strcpy.c: New file.
41244         * lib/unistr/u16-strcpy.c: New file.
41245         * lib/unistr/u32-strcpy.c: New file.
41246         * lib/unistr/u-strcpy.h: New file.
41247
41248         * modules/unistr/u8-strcspn: New file.
41249         * modules/unistr/u16-strcspn: New file.
41250         * modules/unistr/u32-strcspn: New file.
41251         * lib/unistr/u8-strcspn.c: New file.
41252         * lib/unistr/u16-strcspn.c: New file.
41253         * lib/unistr/u32-strcspn.c: New file.
41254         * lib/unistr/u-strcspn.h: New file.
41255
41256         * modules/unistr/u8-strdup: New file.
41257         * modules/unistr/u16-strdup: New file.
41258         * modules/unistr/u32-strdup: New file.
41259         * lib/unistr/u8-strdup.c: New file.
41260         * lib/unistr/u16-strdup.c: New file.
41261         * lib/unistr/u32-strdup.c: New file.
41262         * lib/unistr/u-strdup.h: New file.
41263
41264         * modules/unistr/u8-strlen: New file.
41265         * modules/unistr/u16-strlen: New file.
41266         * modules/unistr/u32-strlen: New file.
41267         * lib/unistr/u8-strlen.c: New file.
41268         * lib/unistr/u16-strlen.c: New file.
41269         * lib/unistr/u32-strlen.c: New file.
41270         * lib/unistr/u-strlen.h: New file.
41271
41272         * modules/unistr/u8-strmblen: New file.
41273         * modules/unistr/u16-strmblen: New file.
41274         * modules/unistr/u32-strmblen: New file.
41275         * lib/unistr/u8-strmblen.c: New file.
41276         * lib/unistr/u16-strmblen.c: New file.
41277         * lib/unistr/u32-strmblen.c: New file.
41278
41279         * modules/unistr/u8-strmbtouc: New file.
41280         * modules/unistr/u16-strmbtouc: New file.
41281         * modules/unistr/u32-strmbtouc: New file.
41282         * lib/unistr/u8-strmbtouc.c: New file.
41283         * lib/unistr/u16-strmbtouc.c: New file.
41284         * lib/unistr/u32-strmbtouc.c: New file.
41285
41286         * modules/unistr/u8-strncat: New file.
41287         * modules/unistr/u16-strncat: New file.
41288         * modules/unistr/u32-strncat: New file.
41289         * lib/unistr/u8-strncat.c: New file.
41290         * lib/unistr/u16-strncat.c: New file.
41291         * lib/unistr/u32-strncat.c: New file.
41292         * lib/unistr/u-strncat.h: New file.
41293
41294         * modules/unistr/u8-strncmp: New file.
41295         * modules/unistr/u16-strncmp: New file.
41296         * modules/unistr/u32-strncmp: New file.
41297         * lib/unistr/u8-strncmp.c: New file.
41298         * lib/unistr/u16-strncmp.c: New file.
41299         * lib/unistr/u32-strncmp.c: New file.
41300
41301         * modules/unistr/u8-strncpy: New file.
41302         * modules/unistr/u16-strncpy: New file.
41303         * modules/unistr/u32-strncpy: New file.
41304         * lib/unistr/u8-strncpy.c: New file.
41305         * lib/unistr/u16-strncpy.c: New file.
41306         * lib/unistr/u32-strncpy.c: New file.
41307         * lib/unistr/u-strncpy.h: New file.
41308
41309         * modules/unistr/u8-strnlen: New file.
41310         * modules/unistr/u16-strnlen: New file.
41311         * modules/unistr/u32-strnlen: New file.
41312         * lib/unistr/u8-strnlen.c: New file.
41313         * lib/unistr/u16-strnlen.c: New file.
41314         * lib/unistr/u32-strnlen.c: New file.
41315         * lib/unistr/u-strnlen.h: New file.
41316
41317         * modules/unistr/u8-strpbrk: New file.
41318         * modules/unistr/u16-strpbrk: New file.
41319         * modules/unistr/u32-strpbrk: New file.
41320         * lib/unistr/u8-strpbrk.c: New file.
41321         * lib/unistr/u16-strpbrk.c: New file.
41322         * lib/unistr/u32-strpbrk.c: New file.
41323         * lib/unistr/u-strpbrk.h: New file.
41324
41325         * modules/unistr/u8-strrchr: New file.
41326         * modules/unistr/u16-strrchr: New file.
41327         * modules/unistr/u32-strrchr: New file.
41328         * lib/unistr/u8-strrchr.c: New file.
41329         * lib/unistr/u16-strrchr.c: New file.
41330         * lib/unistr/u32-strrchr.c: New file.
41331
41332         * modules/unistr/u8-strspn: New file.
41333         * modules/unistr/u16-strspn: New file.
41334         * modules/unistr/u32-strspn: New file.
41335         * lib/unistr/u8-strspn.c: New file.
41336         * lib/unistr/u16-strspn.c: New file.
41337         * lib/unistr/u32-strspn.c: New file.
41338         * lib/unistr/u-strspn.h: New file.
41339
41340         * modules/unistr/u8-strstr: New file.
41341         * modules/unistr/u16-strstr: New file.
41342         * modules/unistr/u32-strstr: New file.
41343         * lib/unistr/u8-strstr.c: New file.
41344         * lib/unistr/u16-strstr.c: New file.
41345         * lib/unistr/u32-strstr.c: New file.
41346         * lib/unistr/u-strstr.h: New file.
41347
41348         * modules/unistr/u8-strtok: New file.
41349         * modules/unistr/u16-strtok: New file.
41350         * modules/unistr/u32-strtok: New file.
41351         * lib/unistr/u8-strtok.c: New file.
41352         * lib/unistr/u16-strtok.c: New file.
41353         * lib/unistr/u32-strtok.c: New file.
41354         * lib/unistr/u-strtok.h: New file.
41355
41356         * modules/unistr/u8-uctomb: New file.
41357         * modules/unistr/u16-uctomb: New file.
41358         * modules/unistr/u32-uctomb: New file.
41359         * lib/unistr/u8-uctomb.c: New file.
41360         * lib/unistr/u16-uctomb.c: New file.
41361         * lib/unistr/u32-uctomb.c: New file.
41362
41363         * MODULES.html.sh (Unicode string functions): Add the new modules.
41364
41365 2007-01-08  Bruno Haible  <bruno@clisp.org>
41366
41367         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
41368         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
41369         subdirectories.
41370
41371 2007-01-08  Karl Berry  <karl@gnu.org>
41372
41373         * doc/error.texi: mention that main() fns must set program_name
41374         when progname is used.
41375
41376 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
41377
41378         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
41379         WCTYPE_H is empty, for the benefit of builds from non-distclean
41380         directories.  Problem reported by Eric Blake in
41381         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
41382
41383 2007-01-08  Bruno Haible  <bruno@clisp.org>
41384
41385         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
41386         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
41387         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
41388         PROVIDE_CANONICALIZE_FILENAME_MODE.
41389         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
41390
41391 2007-01-08  Bruno Haible  <bruno@clisp.org>
41392
41393         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
41394         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
41395         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
41396         * lib/fts.c: Likewise.
41397         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
41398
41399 2006-12-25  Bruno Haible  <bruno@clisp.org>
41400
41401         * modules/utf8-ucs4-safe: New file.
41402         * lib/utf8-ucs4-safe.h: New file.
41403         * lib/unistr/utf8-ucs4-safe.c: New file.
41404
41405         * modules/utf16-ucs4-safe: New file.
41406         * lib/utf16-ucs4-safe.h: New file.
41407         * lib/unistr/utf16-ucs4-safe.c: New file.
41408
41409         * MODULES.html.sh (Unicode string functions): Add the new modules.
41410
41411 2007-01-08  Bruno Haible  <bruno@clisp.org>
41412
41413         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
41414         (Depends-on): Add unitypes.
41415         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41416         (u8_mbtouc_aux): Move out to separate file.
41417         (u8_mbtouc): Use ucs4_t, uint8_t types.
41418         * lib/unistr/utf8-ucs4.c: New file.
41419
41420         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
41421         (Depends-on): Add unitypes.
41422         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41423         (u16_mbtouc_aux): Move out to separate file.
41424         (u16_mbtouc): Use ucs4_t, uint16_t types.
41425         * lib/unistr/utf16-ucs4.c: New file.
41426
41427         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
41428         (Depends-on): Add unitypes.
41429         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
41430         (u8_uctomb_aux): Move out to separate file.
41431         (u8_uctomb): Use ucs4_t, uint8_t types.
41432         * lib/unistr/ucs4-utf8.c: New file.
41433
41434         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
41435         (Depends-on): Add unitypes.
41436         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
41437         (u16_uctomb_aux): Move out to separate file.
41438         (u16_uctomb): Use ucs4_t, uint16_t types.
41439         * lib/unistr/ucs4-utf16.c: New file.
41440
41441 2006-12-25  Bruno Haible  <bruno@clisp.org>
41442
41443         * modules/unitypes: New file.
41444         * lib/unitypes.h: New file.
41445         * MODULES.html.sh (func_all_modules): New section "Unicode string
41446         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
41447         this section. Add unitypes.
41448
41449 2007-01-08  Bruno Haible  <bruno@clisp.org>
41450
41451         Avoid variable names that conflict with those from libtool.
41452         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
41453         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
41454         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
41455         library_names_spec to acl_library_names_spec, hardcode_* to
41456         acl_hardcode_*.
41457         Reported by Ralf Wildenhues.
41458
41459 2007-01-08  Bruno Haible  <bruno@clisp.org>
41460
41461         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
41462         definition.
41463         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
41464         definition.
41465         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
41466         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
41467         definition.
41468         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
41469         definition.
41470         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
41471         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
41472         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
41473         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
41474         definition.
41475         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
41476         definition.
41477         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
41478         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
41479         GC_USE_<algorithm>.
41480         * lib/gc-libgcrypt.c: Likewise.
41481         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
41482         * modules/gc-arctwo (configure.ac): Likewise.
41483         * modules/gc-des (configure.ac): Likewise.
41484         * modules/gc-hmac-md5 (configure.ac): Likewise.
41485         * modules/gc-hmac-sha1 (configure.ac): Likewise.
41486         * modules/gc-md2 (configure.ac): Likewise.
41487         * modules/gc-md4 (configure.ac): Likewise.
41488         * modules/gc-md5 (configure.ac): Likewise.
41489         * modules/gc-random (configure.ac): Likewise.
41490         * modules/gc-rijndael (configure.ac): Likewise.
41491         * modules/gc-sha1 (configure.ac): Likewise.
41492
41493 2007-01-08  Bruno Haible  <bruno@clisp.org>
41494
41495         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
41496         macro definition.
41497         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
41498         definition.
41499         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
41500         definition.
41501         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
41502         * modules/fcntl-safer (configure.ac): Likewise.
41503         * modules/fopen-safer (configure.ac): Likewise.
41504         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
41505         GNULIB_FWRITEERROR macro definition.
41506
41507 2007-01-08  Bruno Haible  <bruno@clisp.org>
41508
41509         * m4/gnulib-common.m4: New file.
41510         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
41511         (func_get_filelist): Add m4/gnulib-common.m4.
41512
41513 2007-01-08  Bruno Haible  <bruno@clisp.org>
41514
41515         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
41516         command.
41517
41518 2007-01-08  Jim Meyering  <jim@meyering.net>
41519
41520         Use a more robust test for a "can't happen" condition.
41521         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
41522         narrowed the st_size value.  Presuming the "can't happen" condition
41523         is true, that narrowing could conceivably convert an invalid st_size
41524         value into a valid one.  Instead, use a change based on Matthew
41525         Woehlke's original patch.
41526
41527         Slight readability improvement: use an assert-like macro
41528         in place of literal "abort ()" uses.
41529         * lib/fts.c (fts_assert): Define.
41530         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
41531         Use this macro instead of a bare 'abort'.
41532
41533 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41534
41535         Don't worry about using IRIX 5.3's wctype.h broken definitions;
41536         simply work around them.
41537         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
41538         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
41539         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
41540         declaring.
41541         Don't bother to define as macros, since the standard doesn't require it.
41542         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
41543         longer worry about IRIX 5.3.
41544         (HAVE_WCTYPE_CTMP_BUG): Remove.
41545
41546 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41547
41548         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
41549         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
41550         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41551         Problems reported by Georg Schwarz for IRIX 5.3.
41552
41553         * gnulib-tool (autoconf_minversion): Take the maximum version number
41554         found, not the minimum.  Problem reported by James Youngman.
41555
41556 2007-01-03  Karl Berry  <karl@gnu.org>
41557
41558         * doc/error.texi: new file, explaining interaction with progname.
41559         * doc/gnulib.texi: include it.  Update copyright.
41560
41561 2007-01-03  Simon Josefsson  <simon@josefsson.org>
41562
41563         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
41564         AC_CANONICAL_HOST, to improve autobuild outputs.
41565
41566 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
41567             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41568
41569         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
41570         sockets, server sockets, and other file descriptors.  Count errors
41571         to compute the return value.  Reorder the code a bit to be easier
41572         to follow.  Don't set event bits that were not requested (except
41573         POLLERR and POLLHUP).
41574
41575 2007-01-01  Bruno Haible  <bruno@clisp.org>
41576
41577         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
41578
41579 2007-01-03  Jim Meyering  <jim@meyering.net>
41580
41581         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
41582
41583 2007-01-02  Bruno Haible  <bruno@clisp.org>
41584
41585         * modules/settime (Include): Require timespec.h.
41586         * modules/nanosleep (Include): Likewise.
41587
41588 2007-01-01  Bruno Haible  <bruno@clisp.org>
41589
41590         * gnulib-tool (func_emit_copyright_notice): Bump year.
41591         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
41592
41593 2007-01-01  Bruno Haible  <bruno@clisp.org>
41594
41595         Improve support for OpenBSD.
41596         * build-aux/config.rpath (libname_spec): Export.
41597         (library_names_spec): New variable. Export.
41598         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
41599         library_names_spec from the config.rpath output. Locate shared library
41600         through the name pattern in library_names_spec.
41601
41602 2007-01-01  Eric Blake  <ebb9@byu.net>
41603
41604         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
41605
41606 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
41607
41608         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
41609         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
41610         assume the C locale, and avoid an "eval" that could cause trouble.
41611         Problem with SORT reported by Bob Proulx.
41612
41613         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
41614         Define.  Trivial patch from Henning Nielsen Lund, originally
41615         sent to bug-grep@gnu.org today.
41616
41617 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41618
41619         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41620         struct stat.  Problem reported by Henning Nielsen Lund.
41621         * lib/acl.c: Include acl.h first, to check interface.  Don't
41622         bother to include sys/types.h and sys/stat.h again.
41623
41624 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41625
41626         Import the following change from libc; problem reported by
41627         Sven Verdoolaege.
41628
41629         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41630
41631         [BZ #1373]
41632         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41633
41634 2006-12-28  Jim Meyering  <jim@meyering.net>
41635
41636         * build-aux/announce-gen: Do not assume that the package
41637         builds any of tar.gz, tar.bz2, and .xdelta files.
41638         Suggestion from Simon Josefsson.
41639
41640 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41641
41642         * modules/announce-gen: New file.
41643
41644 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41645
41646         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41647         handles its gotchas now.
41648         * lib/mbswidth.c: Likewise.
41649         * lib/wcwidth.h: Likewise.
41650         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41651         and iswcntrl; the wctype module does this stuff now.
41652         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41654         * modules/mbchar (Depends-on): Add wctype.
41655         * modules/mbswidth (Depends-on): Likewise.
41656         * modules/wcwidth (Depends-on): Likewise.
41657
41658 2006-12-27  Eric Blake  <ebb9@byu.net>
41659
41660         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41661         module uses more than what <wctype.h> is required to provide.
41662
41663 2006-12-26  Eric Blake  <ebb9@byu.net>
41664
41665         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41666
41667 2006-12-26  Eric Blake  <ebb9@byu.net>
41668
41669         * modules/absolute-header: New module.
41670         * modules/fcntl (Depends-on): Depend on it.
41671         * modules/inttypes (Depends-on): Likewise.
41672         * modules/stdint (Depends-on): Likewise.
41673         * modules/sys_stat (Depends-on): Likewise.
41674         * modules/wctype (Depends-on): Likewise.
41675         * MODULES.html.sh (Support for building libraries and
41676         executables): Document it.
41677
41678 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41679
41680         * gnulib-tool (SED): Remove, undoing previous change.
41681         The problem was that it broke coreutils on Solaris, because
41682         "sed --posix" leaked into a makefile.
41683         (sed): New alias, if 'alias' and GNU sed.
41684
41685 2006-12-24  Jim Meyering  <jim@meyering.net>
41686
41687         Work around an fchownat bug in glibc-2.4:
41688         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41689         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41690         in spite of the -P option.
41691         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41692         New macros.
41693         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41694         * modules/openat (Files): Add lib/fchownat.c.
41695         * lib/openat.c (fchownat): Don't define here.  Move to...
41696         * lib/fchownat.c: ...this new file.
41697
41698 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41699
41700         Fix bug reported by Bruno Haible in
41701         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41702         where quotearg.c didn't compile on Mac OS X 10.2 because it
41703         lacks <wchar.h> and wint_t.
41704         * lib/wctype_.h (__wctype_wint_t): New type.
41705         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41706         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41707         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41708         Arg is now of type __wctype_wint_t, not wint_t.
41709         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41710         substitute HAVE_WINT_T.
41711         * modules/wctype (Files): Add m4/wint_t.m4.
41712         (wctype.h): Substitute HAVE_WINT_T.
41713
41714 2006-12-23  Bruno Haible  <bruno@clisp.org>
41715
41716         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41717
41718 2006-12-23  Bruno Haible  <bruno@clisp.org>
41719
41720         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41721         S_ISLNK.
41722         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41723         mingw.
41724
41725 2006-12-22  Bruno Haible  <bruno@clisp.org>
41726
41727         * lib/copy-file.c: Include acl.h.
41728         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41729         Close the file descriptors only after being done with copy_acl.
41730         * modules/copy-file (Depends-on): Add acl.
41731
41732 2006-12-22  Bruno Haible  <bruno@clisp.org>
41733
41734         * gnulib-tool (SED): New variable.
41735         Use $SED instead of sed everywhere.
41736
41737 2006-12-22  Bruno Haible  <bruno@clisp.org>
41738
41739         * modules/no-c++: New file.
41740         * m4/no-c++.m4: New file.
41741         * MODULES.html.sh (Support for building libraries and executables):
41742         Add no-c++.
41743
41744 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41745
41746         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41747         Include <limits.h>, and use its INT_MAX to rewrite the
41748         j loop so that it does not overflow 'int'.  Problem reported by
41749         Ralf Wildenhues in
41750         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41751         Play it safe by shifting left by 1 rather than multiplying by 2,
41752         as GCC is less likely to optimize this away when the value
41753         is signed (when it assumes overflow leads to undefined behavior).
41754         Also, don't assume time_t uses two's complement.
41755
41756 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41757
41758         * MODULES.html.sh: New module wctype.
41759         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41760         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41761         <wctype.h>, since the new wctype module should fix this.
41762         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41763         the wctype module should arrange for it.
41764         * lib/regex_internal.h: Likewise.
41765         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41766         since the wctype module should handle this now.
41767         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41768         * modules/fnmatch (Depends-on): Add wctype.
41769         * modules/quotearg (Depends-on): Likewise.
41770         * modules/regex (Depends-on): Likewise.
41771
41772 2006-12-19  Bruno Haible  <bruno@clisp.org>
41773
41774         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41775         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41776
41777 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41778
41779         * modules/savewd (Depends-on): Fix dependency on fcntl.
41780
41781 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41782
41783         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41784         conforms to C99, rather than relying on the user's environment
41785         setting of STDINT_H.
41786
41787 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41788         and Eric Blake  <ebb9@byu.net>
41789
41790         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41791         This is more consistent with the other defines here.
41792         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41793         Port to z/OS.  Problem reported by Paul Gilmartin.
41794         Change local vars to use gl_ prefix rather than ac_.
41795         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41796         with other defines.
41797         * modules/double-slash-root: New module.
41798         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41799         (Depends-on): Add double-slash-root.
41800         * MODULES.html.sh (File system functions): Mention new module.
41801
41802 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41803
41804         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41805         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41806         This is for the benefit of gzip, which doesn't do i18n.
41807
41808 2006-12-12  Jim Meyering  <jim@meyering.net>
41809
41810         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41811         Reported by Andreas Schwab <schwab@suse.de>.
41812
41813 2006-12-12  Bruno Haible  <bruno@clisp.org>
41814
41815         Merge these changes.
41816         2006-09-05  Bruno Haible  <bruno@clisp.org>
41817         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41818         iconv_alloc succeeded.
41819         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41820         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41821         test for " && dest " at the end - dest is always != NULL there. Call
41822         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41823         with 2xNULL arguments, also to flush the state storage. Handle the
41824         IRIX iconv behaviour. Realloc the final result, to throw away unused
41825         memory.
41826
41827 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41828
41829         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41830         and fchmodat unconditionally, since glibc 2.4 has them.
41831         Problem reported by Arkadiusz Miskiewicz.
41832
41833 2006-12-10  Bruno Haible  <bruno@clisp.org>
41834
41835         * gnulib-tool (func_import): Show the include files only for those
41836         modules that are copied and specified.
41837         Reported by Karl Berry.
41838
41839 2006-12-08  Jim Meyering  <jim@meyering.net>
41840
41841         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41842         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41843
41844         * build-aux/announce-gen: Add two new options, both optional:
41845         --bootstrap-tools=TOOL_LIST
41846               a comma-separated list of tools, e.g.,
41847               autoconf,automake,bison,gnulib
41848         --gnulib-snapshot-date=DATE
41849               if gnulib is in the bootstrap tool list,
41850               then report this as the snapshot date.
41851               If not specified, use the current date/time.
41852               If you specify a date here, be sure it's UTC.
41853
41854 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41855
41856         * tests/test-argp-2.sh: Fix test to match actual output.
41857         (func_compare): Fix sed script to be portable.
41858
41859 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41860
41861         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41862         workaround for this case.  It is not autoconfigured now; offhand
41863         it's hard to see how to autoconfigure it.
41864
41865 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41866
41867         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41868         a directory that is about to be chowned.  Such a directory's
41869         initial file permissions should permit the owner only and this
41870         should not be changed until after the chown, since the group and
41871         other bits would be incorrect if they granted permission before
41872         the chown.
41873
41874         Fix porting problem for iswctype reported by Georg Schwarz in:
41875         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41876         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41877         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41878         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41879         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41880
41881 2006-12-03  Jim Meyering  <jim@meyering.net>
41882
41883         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41884         p->fts_statp may not yet be defined.
41885         (fts_read): Instead, set it in the caller, once p->fts_statp is
41886         sure to be defined, and corresponds to a top-level directory.
41887         This bug made du -x fail.  Here's the coreutils test case:
41888         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41889         Reported by Mike Frysinger.
41890
41891 2006-12-01  Jim Meyering  <jim@meyering.net>
41892
41893         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41894         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41895         Reported by Simon Josefsson.
41896
41897 2006-11-30  Jim Meyering  <jim@meyering.net>
41898
41899         * m4/warning.m4: Use the all-permissive copyright notice
41900         recommended by RMS (rather than LGPL).
41901         * m4/vararrays.m4: Likewise.
41902         * m4/flexmember.m4: Likewise.
41903
41904 2006-11-29  Bruno Haible  <bruno@clisp.org>
41905
41906         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41907         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41908         using +=.
41909         Reported by Simon Josefsson <simon@josefsson.org>.
41910
41911 2006-11-28  James Youngman <jay@gnu.org>
41912
41913         * README: Advise users that they might find the bug-gnulib@gnu.org
41914         and autotools-announce@gnu.org mailing lists useful.
41915
41916 2006-11-28  Bruno Haible  <bruno@clisp.org>
41917
41918         * m4/ptrdiff_max.m4: Remove file.
41919
41920 2006-11-21  Bruno Haible  <bruno@clisp.org>
41921
41922         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41923         _AC_COMPUTE_INT.
41924         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41925         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41926         _AC_COMPUTE_INT.
41927         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41928         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41929         _AC_COMPUTE_INT.
41930         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41931
41932 2006-11-28  Jim Meyering  <jim@meyering.net>
41933
41934         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41935         warning from "gcc -Wshadow" about shadowing the builtin.
41936
41937 2006-11-27  Bruno Haible  <bruno@clisp.org>
41938
41939         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41940         _AC_COMPUTE_INT.
41941         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41942
41943 2006-11-27  Bruno Haible  <bruno@clisp.org>
41944             Paul Eggert  <eggert@cs.ucla.edu>
41945
41946         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41947
41948 2006-11-26  Bruno Haible  <bruno@clisp.org>
41949
41950         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41951         noinst_LTLIBRARIES.
41952
41953 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41954             Bruno Haible  <bruno@clisp.org>
41955
41956         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41957         if compiling with "gcc -ansi".
41958
41959 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41960
41961         Fix some incompatibilities with gcc -ansi -pedantic.
41962         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41963         if compiling pedantically with GCC, unless it's C99 or later.
41964         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41965         it mishandles gcc -ansi -pedantic as well.
41966         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41967         if gcc -pedantic.
41968         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41969         initializers for struct if -pedantic, unless it's C99 or later.
41970
41971 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41972
41973         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41974         Don't close an fd more than once. Identical atimes indicate
41975         success, not failure.
41976
41977 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41978
41979         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41980
41981 2006-11-23  Jim Meyering  <jim@meyering.net>
41982
41983         * build-aux/announce-gen: New file.  From coreutils.
41984
41985 2006-11-22  Jim Meyering  <jim@meyering.net>
41986
41987         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41988         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41989         (fts_read): Use a temporary to narrow the overused st_size member
41990         before using it in a switch statement.  Reported by Matthew Woehlke.
41991
41992         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41993         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41994
41995 2006-11-20  Bruno Haible  <bruno@clisp.org>
41996
41997         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41998         changequote instead of pairs of brackets.
41999         Reported by Andreas Schwab <schwab@suse.de>.
42000
42001 2006-11-21  Jim Meyering  <jim@meyering.net>
42002
42003         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
42004         so as to remain compatible with older compilers.
42005         Patch from Michael Deutschmann.
42006
42007 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
42008
42009         * MODULES.html.sh (File system functions): Add openat.
42010
42011         * lib/openat.h (rpl_fstatat): New macro, if
42012         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
42013         (fstatat): Define to rpl_fstatat under the same conditions,
42014         unless COMPILING_FSTATAT.
42015         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
42016         seems to have the bug.
42017         * lib/fstatat.c: New file.
42018         * modules/openat (Files): Add it.
42019
42020 2006-11-20  Bruno Haible  <bruno@clisp.org>
42021
42022         * Makefile: New file.
42023
42024 2006-11-20  Jim Meyering  <jim@meyering.net>
42025
42026         The beginnings of syntax-related checks for gnulib.
42027         * lib/Makefile: New file.
42028         * lib/t-idcache: New script.  Ensure that the two halves of
42029         idcache.c stay in sync.
42030
42031         * lib/idcache.c: Adjust comments in user- and group- portions to
42032         be more accurate, and to be consistent with one another.
42033
42034 2006-11-20  Jim Meyering  <jim@meyering.net>
42035
42036         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
42037         continue using the flexible array member (thus, this module performs
42038         half as many malloc calls), with the addition that...
42039         (getgroup, getuser): Consistently record a non-match via an empty
42040         "name" string, and map an empty string match to a NULL return value.
42041         * modules/idcache (Depends-on): Re-add flexmember.
42042
42043         * lib/idcache.c (getuser): Remove all uses of the register keyword.
42044         (getuidbyname, getgroup, getgidbyname): Likewise.
42045
42046         Use cleaner syntax: NULL rather than 0.
42047         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
42048
42049 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
42050
42051         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
42052         It mishandled the case where the group was missing.
42053         Problem reported by Greg Schafer.
42054         * modules/idcache: Likewise.
42055
42056 2006-11-18  Jim Meyering  <jim@meyering.net>
42057
42058         * check-module (%exempt_header): Add exception for some
42059         conditionally-included headers.
42060
42061         * modules/i-ring (Depends-on): Add verify.
42062         (License): Change to LGPL.
42063
42064 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42065
42066         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
42067         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
42068         and inttostr.h.  Use snprintf rather than uinttostr, so that
42069         LGPLed code doesn't depend on GPLed.
42070
42071 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42072
42073         * modules/inline (License): Change from GPL to LGPL.
42074
42075 2006-11-17  Jim Meyering  <jim@meyering.net>
42076
42077         * modules/d-type (License): Switch to LGPL.
42078
42079 2006-11-15  Bruno Haible  <bruno@clisp.org>
42080
42081         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
42082
42083 2006-11-15  Eric Blake  <ebb9@byu.net>
42084
42085         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
42086         the module dependency.
42087
42088 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42089             Bruno Haible  <bruno@clisp.org>
42090
42091         * gnulib-tool (func_create_testdir): Add license consistency check.
42092
42093 2006-11-15  Eric Blake  <ebb9@byu.net>
42094
42095         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
42096         random "(cached)" in configure output.
42097
42098 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42099
42100         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
42101         test for conforming inttypes.h is both announced and cached.
42102
42103         * MODULES.html.sh (seen_modules, seen_files): New variables.
42104         (func_module): Rewrite to use a few less gnulib-tool and sed
42105         invocations.  Avoid a couple of quadratic algorithms for ...
42106         (missed_modules, missed_files): ... these, with ...
42107         (func_append, func_tmpdir): ... these new functions, from
42108         gnulib-tool.  Analogously, install traps for cleanup.
42109
42110         * tests/test-gc.c (main): Remove unused variables.
42111         * tests/test-read-file.c: Include stdlib.h, for 'free'.
42112
42113 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
42114
42115         * modules/inttostr (License): Change to LGPL.
42116
42117 2006-11-14  Eric Blake  <ebb9@byu.net>
42118
42119         * modules/tempname (License): Change to LGPL.
42120
42121 2006-11-14  Eric Blake  <ebb9@byu.net>
42122
42123         * doc/functions.texi (Function Portability): *printf functions on
42124         Cygwin now understand all POSIX size specifiers.
42125
42126 2006-11-14  Bruno Haible  <bruno@clisp.org>
42127
42128         * modules/c-ctype (License): Change to LGPL.
42129
42130 2006-11-12  Bruno Haible  <bruno@clisp.org>
42131
42132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42133         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
42134         for GNOME libraries, for which the include files are installed in
42135         subdirectories of $prefix/include.
42136
42137 2006-11-12  Bruno Haible  <bruno@clisp.org>
42138
42139         * m4/lib-link.m4: Require at least autoconf-2.54.
42140         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
42141         name to underscores for the --with option.
42142
42143 2006-11-13  Bruno Haible  <bruno@clisp.org>
42144
42145         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
42146         the tests directory.
42147         Reported by Ralf Wildenhues.
42148
42149 2006-11-13  Bruno Haible  <bruno@clisp.org>
42150
42151         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
42152         (func_emit_initmacro_end): Undo the override here.
42153         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
42154         Works around the famous automake error in coreutils.
42155
42156 2006-11-13  Eric Blake  <ebb9@byu.net>
42157
42158         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
42159         element, not its node.
42160
42161 2006-11-12  Bruno Haible  <bruno@clisp.org>
42162
42163         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
42164         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
42165
42166 2006-11-12  Bruno Haible  <bruno@clisp.org>
42167
42168         * gnulib-tool: New option --local-symlink.
42169         (func_usage): Document it.
42170         (lsymbolic): New variable.
42171         (func_import, func_create_testdir): If --symlink was not specified,
42172         test whether --local-symlink was specified and the file comes from
42173         the local_gnulib_dir.
42174
42175 2006-11-12  Bruno Haible  <bruno@clisp.org>
42176
42177         * gnulib-tool (func_ln): New function.
42178         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
42179
42180 2006-11-12  Bruno Haible  <bruno@clisp.org>
42181
42182         Finish support for source files in subdirectories.
42183         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
42184         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
42185         AUTOMAKE_OPTIONS.
42186         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
42187
42188 2006-11-12  Bruno Haible  <bruno@clisp.org>
42189
42190         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42191         EXTRA_lib_SOURCES augmentation.
42192         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
42193
42194 2006-11-12  Jim Meyering  <jim@meyering.net>
42195
42196         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
42197         file descriptors.  This also averts a failure on systems with
42198         native openat support when a traversed directory lacks "x" access.
42199         * lib/fts_.h: Include "i-ring.h"
42200         (struct FTS) [fts_fd_ring]: New member.
42201         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
42202         (FCHDIR): Add parentheses.
42203         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
42204         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
42205         When descending, rather than simply closing the previous
42206         fts_cwd_fd value, push that file descriptor onto the ring.
42207         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
42208         (fts_open): Initialize the new fd_ring member.
42209         (fts_close): Clear the ring.
42210         (fts_safe_changedir): When possible, use our new fd_ring to skip
42211         the diropen and fstat and dev/ino comparison that would normally
42212         accompany a virtual `chdir ("..")'.
42213
42214         * modules/fts (Depends-on): Add i-ring.
42215         * modules/i-ring: New module.
42216         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
42217         * m4/i-ring.m4: New file.
42218
42219 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42220
42221         * gnulib-tool (func_create_testdir): Fix replacement of
42222         `build-aux' in configure.ac.  Run autotools in gltests
42223         subdirectory.
42224         (func_create_testdir, func_create_megatestdir, test): There is
42225         no need for '--force' in most autotool invocations in a new
42226         tree.  Actually fail the whole test if any of the tools, or the
42227         configure or make stages fail.
42228
42229         Sync from Automake.
42230         * build-aux/gnupload: Revert last change.  Add pointer to upload
42231         instructions of the GNU Maintenance Instructions.
42232         Suggestion by Karl Berry.
42233
42234 2006-11-10  Jim Meyering  <jim@meyering.net>
42235
42236         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
42237
42238 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42239
42240         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
42241         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
42242         (bind_textdomain_codeset) [! ENABLE_NLS]:
42243         Evaluate all the arguments.  That way, callers get compatible behavior
42244         if the arguments have side effects.  Also, it avoids some GCC
42245         diagnostics in some cases; Joel E. Denny reported problems when Bison
42246         was configured with --enable-gcc-warnigs.
42247
42248 2006-11-10  Jim Meyering  <jim@meyering.net>
42249
42250         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
42251         relevant options in CFLAGS (like -O, -fno-inline) are taken into
42252         account.
42253
42254 2006-11-10  Jim Meyering  <jim@meyering.net>
42255
42256         * modules/inline: New file/module.
42257         * modules/xalloc (Files): Remove m4/inline.m4.
42258         (Depends-on): Add inline, instead.
42259         * modules/oset: Likewise.
42260         * modules/list: Likewise.
42261
42262 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42263
42264         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
42265         Problem reported by Matthew Woehlke.
42266
42267 2006-11-09  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/tempname.c (gen_tempname): Remove variant that invokes
42270         __gen_tempname.
42271         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
42272         __gen_tempname.
42273
42274 2006-11-08  Bruno Haible  <bruno@clisp.org>
42275
42276         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
42277         to 'yes' instead of 'cross-compiling'.
42278
42279 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
42280
42281         * lib/quotearg.h (quotearg_free): New decl.
42282         * lib/quotearg.c (quotearg_free): New function.
42283         (slot0, nslots, slotvec0, slotvec):
42284         Now file-scope so that quotearg_free can get at them.
42285
42286 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42287
42288         Sync from Automake.
42289         * build-aux/gnupload: Add missing 'gnu' to example URL.
42290         Report by Karl Berry.
42291
42292 2006-11-08  Bruno Haible  <bruno@clisp.org>
42293
42294         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
42295         Suggested by Paul Eggert.
42296
42297 2006-11-08  Jim Meyering  <jim@meyering.net>
42298
42299         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
42300         It's already included if !_LIBC.
42301         (fts_safe_changedir): Add a comment.
42302
42303 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
42304
42305         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
42306         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
42307         Matthew Woehlke.
42308
42309         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
42310         definitions up, to avoid colliding with change below.
42311         (static_inline) [HAVE_INLINE]: New macro.
42312         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
42313         Provide extern decls when !HAVE_INLINE.  Do not define unless
42314         static_inline is defined, either by us or by xmalloc.c.  Use
42315         static_inline rather than static inline.
42316         (XCALLOC): Optimize sizeof(T) = 1 case.
42317         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
42318
42319 2006-11-07  Bruno Haible  <bruno@clisp.org>
42320
42321         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
42322         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
42323         AC_C_INLINE.
42324         * modules/xalloc (Files): Add m4/inline.m4.
42325
42326 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42327
42328         * README: Fix typo.
42329         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
42330         (Miscellanous Notes): ...from this.
42331
42332 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
42333
42334         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
42335         Mention that offsetof should be used instead of sizeof.
42336         From Bruno Haible.
42337
42338 2006-11-07  Bruno Haible  <bruno@clisp.org>
42339
42340         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
42341
42342 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42343
42344         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
42345         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
42346         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
42347         (gl_tree_add_before, gl_tree_add_after):
42348         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
42349         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
42350         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
42351         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
42352         (gl_linked_add_after, gl_linked_add_at): Likewise.
42353         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
42354         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
42355         (gl_tree_add_before, gl_tree_add_after): Likewise.
42356         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
42357         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
42358         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42359
42360 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42361
42362         * lib/gl_oset.h: Use C comment style, not C++ comment style.
42363
42364 2006-11-06  Bruno Haible  <bruno@clisp.org>
42365
42366         * m4/inline.m4: New file.
42367         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
42368         * modules/list (Files): Add m4/inline.m4.
42369         * modules/oset (Files): Likewise.
42370
42371 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42372
42373         * lib/idcache.c: Include <stddef.h>, for offsetof.
42374         (struct userid.name): Change from char * to a flexible array member.
42375         All uses changed.
42376         * modules/idcache (Depends-on): Add flexmember.
42377
42378         * MODULES.html.sh (Core language properties): New module flexmember.
42379         * modules/flexmember, m4/flexmember.m4: New files.
42380
42381         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
42382         inline functions that are identical with the old xnmalloc_inline,
42383         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
42384         that we can avoid some unnecessary integer multiplications and
42385         divisions in the common case where the element size is known at
42386         compile time.
42387         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
42388         needed.
42389         (xnboundedmalloc): Remove.
42390         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
42391         arguments, for consistency with rest of this header.
42392         (xcharalloc): Rewrite using XNMALLOC.
42393         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
42394         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
42395         versions have been moved to lib/xalloc.h and renamed to be the
42396         non-*_inline versions.
42397         (xmalloc, xrealloc): Implement without reference to the xnmalloc
42398         and xnrealloc functions, since those functions are now inline and
42399         now call us.
42400         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
42401         renaming described above.
42402         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
42403         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
42404         captures the dependency in AC_C_INLINE.
42405
42406         New module canonicalize-lgpl, proposed by Charles Wilson in
42407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
42408         with a few small changes afterwards.
42409         * MODULES.html.sh (File system functions): New module
42410         canonicalize-lgpl.
42411         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
42412         and canonicalize_file_name.
42413         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
42414         * modules/canonicalize-lgpl: New files.
42415
42416 2006-11-05  Bruno Haible  <bruno@clisp.org>
42417
42418         * gnulib-tool (func_import, func_create_testdir): Create directories
42419         also for files in subdirectories of lib/.
42420
42421 2006-11-05  Bruno Haible  <bruno@clisp.org>
42422
42423         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
42424         ANSI C compliant.
42425
42426 2006-11-03  Bruno Haible  <bruno@clisp.org>
42427
42428         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
42429         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
42430         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
42431         (xnboundedmalloc): New inline function.
42432         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
42433         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
42434         xmalloc.
42435         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
42436         xmalloc.
42437         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
42438         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
42439         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
42440         xmalloc.
42441         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42442         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
42443         xmalloc.
42444         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
42445         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42446         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
42447         xmalloc.
42448         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42449         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
42450         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42451         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
42452         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
42453         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
42454         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
42455
42456 2006-11-03  Bruno Haible  <bruno@clisp.org>
42457
42458         * lib/c-ctype.h [C++]: Define functions without name mangling.
42459         * lib/fwriteerror.h [C++]: Likewise.
42460         * lib/gcd.h [C++]: Likewise.
42461         * lib/linebreak.h [C++]: Likewise.
42462
42463 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
42464
42465         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
42466         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
42467         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
42468         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42469         Check for functions and headers just once.
42470         Check for declaration of canonicalize_file_name.
42471         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
42472
42473 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42474
42475         * gnulib-tool (func_import): Fix typo in actioncmd.
42476
42477 2006-11-02  Bruno Haible  <bruno@clisp.org>
42478
42479         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
42480         newline sequence in the Makefile.am snippet as a space, like "make"
42481         does.
42482         Reported by Roger Persson <perrog@gmail.com>.
42483
42484 2006-11-01  Bruno Haible  <bruno@clisp.org>
42485
42486         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
42487         already declared in <string.h>.
42488         * lib/strcase.h (strncasecmp): Don't declare it if yes.
42489
42490 2006-11-01  Bruno Haible  <bruno@clisp.org>
42491
42492         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
42493         * lib/strcase.h: Include <string.h>.
42494         (strcasecmp): Define to rpl_strcasecmp here.
42495
42496 2006-11-01  Bruno Haible  <bruno@clisp.org>
42497
42498         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
42499
42500 2006-11-01  Eric Blake  <ebb9@byu.net>
42501
42502         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
42503
42504         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
42505
42506 2006-10-29  Bruno Haible  <bruno@clisp.org>
42507
42508         Make it compile in C++ mode.
42509         * lib/full-write.c (full_rw): Add a cast.
42510
42511 2006-11-01  Bruno Haible  <bruno@clisp.org>
42512
42513         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
42514         be POSIX compliant.
42515         Reported by Roger Persson <perrog@gmail.com>.
42516
42517 2006-11-01  Eric Blake  <ebb9@byu.net>
42518
42519         * lib/getopt_.h: Fix comments.
42520
42521 2006-10-31  Eric Blake  <ebb9@byu.net>
42522
42523         * modules/tmpdir (Depends-on): Add sys_stat.
42524         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
42525         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
42526         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
42527         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
42528         tempname.
42529
42530 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42531
42532         Avoid some C++ diagnostics reported by Bruno Haible.
42533         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
42534         xmalloc.
42535         (quotearg_alloc): Use xcharalloc rather than xmalloc.
42536         (struct slotvec): Move to top level.
42537         (quotearg_n_options): Rewrite to avoid xmalloc.
42538         * lib/xalloc.h (xcharalloc): New function.
42539         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
42540         [defined __cplusplus]: Add function template that provides result
42541         type propagation.  This part of the change is from Bruno Haible.
42542
42543 2006-10-29  Bruno Haible  <bruno@clisp.org>
42544
42545         Make it compile in C++ mode.
42546         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
42547         * lib/strnlen1.c (strnlen1): Cast memchr result.
42548         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
42549         * lib/clean-temp.c (string_equals, string_hash): Add casts.
42550         (create_temp_dir): Rename local variable 'template'.
42551         (compile_csharp_using_sscli): Add cast.
42552         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
42553         * lib/findprog.c (find_in_path): Likewise.
42554         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
42555         * lib/wait-process.c (register_slave_subprocess): Likewise.
42556
42557 2006-10-22  Bruno Haible  <bruno@clisp.org>
42558
42559         * modules/tsearch: New file.
42560         * lib/tsearch.h: New file.
42561         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
42562         * m4/tsearch.m4: New file.
42563         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
42564
42565 2006-10-29  Eric Blake  <ebb9@byu.net>
42566
42567         * lib/arcfour.c: Assume config.h.
42568         * lib/arctwo.c: Likewise.
42569         * lib/base64.c: Likewise.
42570         * lib/check-version.c: Likewise.
42571         * lib/crc.c: Likewise.
42572         * lib/des.c: Likewise.
42573         * lib/gc-gnulib.c: Likewise.
42574         * lib/gc-libgcrypt.c: Likewise.
42575         * lib/gc-pbkdf2-sha1.c: Likewise.
42576         * lib/getaddrinfo.c: Likewise.
42577         * lib/getdelim.c: Likewise.
42578         * lib/getline.c: Likewise.
42579         * lib/hmac-md5.c: Likewise.
42580         * lib/hmac-sha1.c: Likewise.
42581         * lib/iconvme.c: Likewise.
42582         * lib/md2.c: Likewise.
42583         * lib/md4.c: Likewise.
42584         * lib/memxor.c: Likewise.
42585         * lib/read-file.c: Likewise.
42586         * lib/readline.c: Likewise.
42587         * lib/rijndael-alg-fst.c: Likewise.
42588         * lib/rijndael-api-fst.c: Likewise.
42589         * lib/xgetdomainname.c: Likewise.
42590
42591 2006-10-28  Eric Blake  <ebb9@byu.net>
42592
42593         * lib/xstrndup.c: Assume config.h.
42594
42595 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42596
42597         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
42598         stat-macros.h is now for our own macros, whereas stat_h is for
42599         macros in the <sys/stat.h> name space.
42600         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
42601         (STAT_MACROS_H): Remove.
42602         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
42603         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
42604         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
42605         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
42606         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
42607         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
42608         Move these macros to ...
42609         * lib/stat_.h: here.  Don't include stat-macros.h.
42610         * lib/canonicalize.c: Don't include stat-macros.h.
42611         * lib/chown.c: Likewise.
42612         * lib/euidaccess.c: Likewise.
42613         * lib/file-type.c: Likewise.
42614         * lib/filemode.c: Likewise.
42615         * lib/glob.c: Likewise.
42616         * lib/isapipe.c: Likewise.
42617         * lib/lchown.c: Likewise.
42618         * lib/lstat.c: Likewise.
42619         * lib/mkdir-p.c: Likewise.
42620         * lib/rmdir.c: Likewise.
42621         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42622         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42623         unless mkdir isn't declared, to speed up 'configure'.
42624         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42625         would define all the S_* symbols.
42626         * modules/canonicalize (Depends-on):
42627         Depend on sys_stat, not stat-macros.
42628         * modules/chown: Likewise.
42629         * modules/euidaccess: Likewise.
42630         * modules/filemode: Likewise.
42631         * modules/file-type: Likewise.
42632         * modules/glob: Likewise.
42633         * modules/isapipe: Likewise.
42634         * modules/lchown: Likewise.
42635         * modules/lstat: Likewise.
42636         * modules/mkancesdirs: Likewise.
42637         * modules/rmdir: Likewise.
42638         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42639         * modules/modechange: Likewise.
42640         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42641         (configure.ac): Remove gl_STAT_MACROS.
42642         * modules/sys_stat (Depends-on): Remove stat-macros.
42643
42644 2006-10-27  Bruno Haible  <bruno@clisp.org>
42645
42646         * m4/signed.m4: Remove file.
42647         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42648         invocation.
42649         * modules/vasnprintf (Files): Remove m4/signed.m4.
42650
42651 2006-10-27  Bruno Haible  <bruno@clisp.org>
42652
42653         Update to GNU gettext 0.16.
42654         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42655         m4/inttypes-h.m4, m4/signed.m4.
42656         * m4/gettext.m4: Update to GNU gettext 0.16.
42657         * m4/intl.m4: New file, from GNU gettext.
42658         * m4/intldir.m4: New file, from GNU gettext.
42659         * config/srclist.txt: Update
42660
42661 2006-10-27  Eric Blake  <ebb9@byu.net>
42662
42663         * MODULES.html.sh: Document tempname.
42664         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42665         dependencies.
42666         (Files): Move lib/tempname.c...
42667         * modules/tempname: ...to this new module.
42668         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42669         (gl_PREREQ_TEMPNAME): Move...
42670         * m4/tempname.m4: ...to this new file.
42671         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42672         * modules/sys_stat (Depends-on): Add stat-macros.
42673         * lib/stat_.h (includes): Pick up stat macros.
42674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42675         if stat macros are broken.
42676         * lib/tempname.c (includes): No need to include "stat-macros.h".
42677         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42678         (direxists, __path_search) [!_LIBC]: Don't compile these in
42679         gnulib; the tmpdir module covers that.
42680         * lib/tempname.h: New file.
42681
42682 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42683
42684         * COPYING: Explain how gnulib-tool converts licence headers.
42685         Almost all wording by Eric Blake.
42686
42687 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42688
42689         * lib/mbchar.h (is_basic_table): Make read-only.
42690         * lib/mbchar.c (is_basic_table): Likewise.
42691         Reported by John Darrington.
42692
42693 2006-10-25  Bruno Haible  <bruno@clisp.org>
42694
42695         * lib/progname.h (set_program_name): Undefine before defining.
42696
42697 2006-10-25  Bruno Haible  <bruno@clisp.org>
42698
42699         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42700         false for non-gcc C++ compilers.
42701         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42702
42703 2006-10-24  Bruno Haible  <bruno@clisp.org>
42704
42705         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42706         iconv implementations like Irix iconv.
42707
42708 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42709
42710         * modules/vararrays: New file.
42711         * m4/vararrays.m4: New file, taken from diffutils.
42712         * MODULES.html.sh: New module vararrays.
42713
42714 2006-10-24  Karl Berry  <karl@gnu.org>
42715
42716         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42717         Don't call GNU Unix.
42718
42719 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42720
42721         * users.txt: Add Libtool.
42722
42723         Sync from Libtool:
42724
42725         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42726
42727         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42728         to gnulib's policy of including config.h unconditionally.
42729
42730 2006-10-24  Bruno Haible  <bruno@clisp.org>
42731
42732         * modules/wcwidth (Files): Add m4/wint_t.m4.
42733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42734         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42735
42736 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42737
42738         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42739         to pacify GCC with some -W flags enabled.  Problem reported by
42740         Bruno Haible.
42741
42742 2006-10-24  Jim Meyering  <jim@meyering.net>
42743
42744         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42745         Reported by Karl Berry.
42746
42747 2006-10-23  Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42750
42751 2006-10-24  Bruno Haible  <bruno@clisp.org>
42752
42753         * lib/gl_list.h: Use C comment style, not C++ comment style.
42754
42755 2006-10-23  Eric Blake  <ebb9@byu.net>
42756
42757         * lib/getaddrinfo.c (includes): Add missing include.
42758
42759 2006-10-23  Bruno Haible  <bruno@clisp.org>
42760             Paul Eggert  <eggert@cs.ucla.edu>
42761
42762         Ability to rename obstack_free.
42763         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42764         obstack_free.
42765         (obstack_free): Invoke the __obstack_free macro.
42766         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42767
42768 2006-10-23  Bruno Haible  <bruno@clisp.org>
42769             Paul Eggert  <eggert@cs.ucla.edu>
42770
42771         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42772         __argc, __argv from the declaration. (They are defined as macros on
42773         mingw.)
42774
42775 2006-10-22  Bruno Haible  <bruno@clisp.org>
42776
42777         * doc/gnulib-intro.texi: New file.
42778         * doc/gnulib.texi: Include it.
42779
42780 2006-10-21  Bruno Haible  <bruno@clisp.org>
42781
42782         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42783         "Introduction", "Miscellanous Notes", "Particular Modules".
42784
42785 2006-10-21  Bruno Haible  <bruno@clisp.org>
42786
42787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42788         Change mostlyclean-local rule to avoid sh syntax error from bash
42789         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42790
42791 2006-10-23  Jim Meyering  <jim@meyering.net>
42792
42793         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42794         in place of snprintf.
42795
42796         * modules/inttostr (Files): Add lib/uinttostr.c.
42797         * lib/uinttostr.c (inttostr): New file/function.
42798         * lib/inttostr.h (uinttostr): Declare.
42799         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42800         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42801         Add uinttostr.
42802         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42803
42804 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42805
42806         * lib/canonicalize.c (ELOOP): Define if not already defined.
42807         Problem reported by Bruno Haible in
42808         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42809
42810 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42811
42812         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42813         Problem reported by Perry Smith and Ville Laurikari.
42814
42815         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42816         uses.
42817
42818 2006-10-19  Bruno Haible  <bruno@clisp.org>
42819
42820         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42821         for mingw.
42822
42823 2006-10-19  Bruno Haible  <bruno@clisp.org>
42824
42825         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42826         Needed for mingw.
42827
42828 2006-10-19  Bruno Haible  <bruno@clisp.org>
42829
42830         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42831
42832 2006-10-19  Bruno Haible  <bruno@clisp.org>
42833
42834         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42835         it.
42836
42837 2006-10-19  Bruno Haible  <bruno@clisp.org>
42838
42839         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42840         invocation.
42841
42842 2006-10-19  Bruno Haible  <bruno@clisp.org>
42843
42844         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42845         mountlist by default.
42846
42847 2006-10-16  Bruno Haible  <bruno@clisp.org>
42848
42849         * lib/c-strstr.c: Include c-strstr.h.
42850
42851 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42852
42853         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42854         in a slash.
42855
42856 2006-10-18  Bruno Haible  <bruno@clisp.org>
42857
42858         * lib/lock.h [C++]: Wrap definitions in extern "C".
42859
42860 2006-10-18  Bruno Haible  <bruno@clisp.org>
42861
42862         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42863         gl_LIBOBJS list.
42864
42865 2006-10-18  Bruno Haible  <bruno@clisp.org>
42866
42867         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42868
42869 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42870
42871         * lib/xstrtol.h: Include gettext.h.
42872         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42873         Problem reported by Eric Blake.
42874         * modules/xstrtol (Depends-on): Add gettext-h.
42875
42876 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42877
42878         * lib/strftime.c (advance): New macro.
42879         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42880         incomplete type, so you can't add 0 to it.  Problem and patch
42881         reported by Eelco Dolstra for dietlibc.
42882
42883 2006-10-18  Jim Meyering  <jim@meyering.net>
42884
42885         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42886         type for a local, and rename it: s/up/user_proc/.
42887
42888 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42889
42890         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42891         READ_UTMP_USER_PROCESS.
42892         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42893
42894 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42895
42896         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42897         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42898
42899 2006-10-17  Eric Blake  <ebb9@byu.net>
42900
42901         * lib/sigprocmask.c (sigprocmask): Fix typo.
42902
42903         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42904
42905         * modules/clean-temp (Makefile.am): Don't add to make output...
42906         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42907         config.h.
42908
42909 2006-10-17  Bruno Haible  <bruno@clisp.org>
42910
42911         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42912         differently if DEFAULT_TEXT_DOMAIN is set.
42913
42914 2006-10-16  Bruno Haible  <bruno@clisp.org>
42915
42916         * lib/clean-temp.c: Include fwriteerror.h.
42917
42918 2006-10-16  Bruno Haible  <bruno@clisp.org>
42919
42920         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42921
42922 2006-10-16  Bruno Haible  <bruno@clisp.org>
42923
42924         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42925         * lib/sigprocmask.h: Include <sys/types.h>.
42926         (sigset_t): Use the system's definition if present.
42927
42928 2006-10-17  Eric Blake  <ebb9@byu.net>
42929
42930         * lib/xvasprintf.c (includes): Assume config.h.
42931         * lib/xasprintf.c (includes): Likewise.
42932
42933 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42934
42935         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42936         at least as wide as intmax_t.
42937
42938 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42939
42940         (Imported from Automake.)
42941         * build-aux/gnupload: Update to version 1.1 of directive file.
42942
42943 2006-10-16  Eric Blake  <ebb9@byu.net>
42944
42945         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42946         match Automake 1.10a.
42947
42948 2006-10-14  Bruno Haible  <bruno@clisp.org>
42949
42950         * modules/sigprocmask: New file.
42951         * lib/sigprocmask.h: New file.
42952         * lib/sigprocmask.c: New file.
42953         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42954         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42955         request sigprocmask.o.
42956         (gl_PREREQ_SIGPROCMASK): New macro.
42957         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42958         (Depends-on): Add sigprocmask.
42959         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42960         gt_SIGNALBLOCKING. Test for 'raise' only once.
42961         * lib/fatal-signal.c: Include sigprocmask.h.
42962         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42963         unblock_fatal_signals): Define always.
42964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42965         sigprocmask.
42966
42967 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42968
42969         Sync from Automake.
42970         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42971         which incorrectly sets the mode of an existing destination
42972         directory.  In some cases the unpatched install-sh could do the
42973         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42974         system.  We hope this is rare in practice, but it's clearly worth
42975         fixing.  Problem reported by Alex Unleashed in
42976         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42977         Also, don't bother to check for -m bugs unless we're using -m;
42978         suggested by Stepan Kasal.
42979
42980 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42981
42982         Sync from Automake.
42983         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42984         `-c' flag, so they appear at the same position as in %FASTDEP%
42985         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42986         which ignores unknown options only after the first non-option.
42987         Bug report against M4 by Nelson H. F. Beebe.
42988
42989 2006-10-13  Jim Meyering  <jim@meyering.net>
42990
42991         Fix a bug in yesterday's change.
42992         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42993         p->fts_statp->st_dev would be used uninitialized.
42994         Ensures that we always call fts_stat on the very first entry.
42995         Miklos Szeredi reported that find -xdev stopped working.
42996
42997 2006-10-12  Bruno Haible  <bruno@clisp.org>
42998
42999         * gnulib-tool (func_get_automake_snippet): Append an automatically
43000         computed EXTRA_DIST augmentation.
43001         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
43002         * modules/alloca-opt (Makefile.am): Likewise.
43003         * modules/allocsa (Makefile.am): Likewise.
43004         * modules/arcfour (Makefile.am): Likewise.
43005         * modules/arctwo (Makefile.am): Likewise.
43006         * modules/argmatch (Makefile.am): Likewise.
43007         * modules/argz (Makefile.am): Likewise.
43008         * modules/atexit (Makefile.am): Likewise.
43009         * modules/backupfile (Makefile.am): Likewise.
43010         * modules/byteswap (Makefile.am): Likewise.
43011         * modules/c-strtod (Makefile.am): Likewise.
43012         * modules/c-strtold (Makefile.am): Likewise.
43013         * modules/calloc (Makefile.am): Likewise.
43014         * modules/canon-host (Makefile.am): Likewise.
43015         * modules/canonicalize (Makefile.am): Likewise.
43016         * modules/chdir-long (Makefile.am): Likewise.
43017         * modules/chdir-safer (Makefile.am): Likewise.
43018         * modules/check-version (Makefile.am): Likewise.
43019         * modules/chown (Makefile.am): Likewise.
43020         * modules/cloexec (Makefile.am): Likewise.
43021         * modules/close-stream (Makefile.am): Likewise.
43022         * modules/closeout (Makefile.am): Likewise.
43023         * modules/crc (Makefile.am): Likewise.
43024         * modules/csharpexec (Makefile.am): Likewise.
43025         * modules/cycle-check (Makefile.am): Likewise.
43026         * modules/des (Makefile.am): Likewise.
43027         * modules/dev-ino (Makefile.am): Likewise.
43028         * modules/dirfd (Makefile.am): Likewise.
43029         * modules/dirname (Makefile.am): Likewise.
43030         * modules/dup2 (Makefile.am): Likewise.
43031         * modules/eealloc (Makefile.am): Likewise.
43032         * modules/error (Makefile.am): Likewise.
43033         * modules/euidaccess (Makefile.am): Likewise.
43034         * modules/exclude (Makefile.am): Likewise.
43035         * modules/exitfail (Makefile.am): Likewise.
43036         * modules/fcntl-safer (Makefile.am): Likewise.
43037         * modules/fcntl (Makefile.am): Likewise.
43038         * modules/file-type (Makefile.am): Likewise.
43039         * modules/fileblocks (Makefile.am): Likewise.
43040         * modules/filemode (Makefile.am): Likewise.
43041         * modules/filenamecat (Makefile.am): Likewise.
43042         * modules/fnmatch (Makefile.am): Likewise.
43043         * modules/fopen-safer (Makefile.am): Likewise.
43044         * modules/fpending (Makefile.am): Likewise.
43045         * modules/fprintftime (Makefile.am): Likewise.
43046         * modules/free (Makefile.am): Likewise.
43047         * modules/fsusage (Makefile.am): Likewise.
43048         * modules/ftruncate (Makefile.am): Likewise.
43049         * modules/fts (Makefile.am): Likewise.
43050         * modules/gc-arcfour (Makefile.am): Likewise.
43051         * modules/gc-des (Makefile.am): Likewise.
43052         * modules/gc-hmac-md5 (Makefile.am): Likewise.
43053         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
43054         * modules/gc-md4 (Makefile.am): Likewise.
43055         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
43056         * modules/gc-sha1 (Makefile.am): Likewise.
43057         * modules/gc (Makefile.am): Likewise.
43058         * modules/getaddrinfo (Makefile.am): Likewise.
43059         * modules/getcwd (Makefile.am): Likewise.
43060         * modules/getdelim (Makefile.am): Likewise.
43061         * modules/getdomainname (Makefile.am): Likewise.
43062         * modules/getgroups (Makefile.am): Likewise.
43063         * modules/gethostname (Makefile.am): Likewise.
43064         * modules/gethrxtime (Makefile.am): Likewise.
43065         * modules/getline (Makefile.am): Likewise.
43066         * modules/getloadavg (Makefile.am): Likewise.
43067         * modules/getlogin_r (Makefile.am): Likewise.
43068         * modules/getndelim2 (Makefile.am): Likewise.
43069         * modules/getopt (Makefile.am): Likewise.
43070         * modules/getpagesize (Makefile.am): Likewise.
43071         * modules/getpass-gnu (Makefile.am): Likewise.
43072         * modules/getpass (Makefile.am): Likewise.
43073         * modules/getsubopt (Makefile.am): Likewise.
43074         * modules/gettime (Makefile.am): Likewise.
43075         * modules/gettimeofday (Makefile.am): Likewise.
43076         * modules/getugroups (Makefile.am): Likewise.
43077         * modules/getusershell (Makefile.am): Likewise.
43078         * modules/glob (Makefile.am): Likewise.
43079         * modules/group-member (Makefile.am): Likewise.
43080         * modules/hard-locale (Makefile.am): Likewise.
43081         * modules/hash (Makefile.am): Likewise.
43082         * modules/hmac-md5 (Makefile.am): Likewise.
43083         * modules/hmac-sha1 (Makefile.am): Likewise.
43084         * modules/human (Makefile.am): Likewise.
43085         * modules/idcache (Makefile.am): Likewise.
43086         * modules/imaxabs (Makefile.am): Likewise.
43087         * modules/imaxdiv (Makefile.am): Likewise.
43088         * modules/inet_ntop (Makefile.am): Likewise.
43089         * modules/inet_pton (Makefile.am): Likewise.
43090         * modules/intprops (Makefile.am): Likewise.
43091         * modules/inttostr (Makefile.am): Likewise.
43092         * modules/inttypes (Makefile.am): Likewise.
43093         * modules/isapipe (Makefile.am): Likewise.
43094         * modules/javaversion (Makefile.am): Likewise.
43095         * modules/lchmod (Makefile.am): Likewise.
43096         * modules/lchown (Makefile.am): Likewise.
43097         * modules/localcharset (Makefile.am): Likewise.
43098         * modules/long-options (Makefile.am): Likewise.
43099         * modules/lstat (Makefile.am): Likewise.
43100         * modules/malloc (Makefile.am): Likewise.
43101         * modules/mathl (Makefile.am): Likewise.
43102         * modules/mbchar (Makefile.am): Likewise.
43103         * modules/md2 (Makefile.am): Likewise.
43104         * modules/md4 (Makefile.am): Likewise.
43105         * modules/md5 (Makefile.am): Likewise.
43106         * modules/memcasecmp (Makefile.am): Likewise.
43107         * modules/memchr (Makefile.am): Likewise.
43108         * modules/memcmp (Makefile.am): Likewise.
43109         * modules/memcoll (Makefile.am): Likewise.
43110         * modules/memcpy (Makefile.am): Likewise.
43111         * modules/memmem (Makefile.am): Likewise.
43112         * modules/memmove (Makefile.am): Likewise.
43113         * modules/mempcpy (Makefile.am): Likewise.
43114         * modules/memrchr (Makefile.am): Likewise.
43115         * modules/memset (Makefile.am): Likewise.
43116         * modules/memxor (Makefile.am): Likewise.
43117         * modules/mkancesdirs (Makefile.am): Likewise.
43118         * modules/mkdir-p (Makefile.am): Likewise.
43119         * modules/mkdir (Makefile.am): Likewise.
43120         * modules/mkdtemp (Makefile.am): Likewise.
43121         * modules/mkstemp (Makefile.am): Likewise.
43122         * modules/mktime (Makefile.am): Likewise.
43123         * modules/modechange (Makefile.am): Likewise.
43124         * modules/mountlist (Makefile.am): Likewise.
43125         * modules/nanosleep (Makefile.am): Likewise.
43126         * modules/obstack (Makefile.am): Likewise.
43127         * modules/openat (Makefile.am): Likewise.
43128         * modules/pagealign_alloc (Makefile.am): Likewise.
43129         * modules/pathmax (Makefile.am): Likewise.
43130         * modules/physmem (Makefile.am): Likewise.
43131         * modules/poll (Makefile.am): Likewise.
43132         * modules/posixtm (Makefile.am): Likewise.
43133         * modules/posixver (Makefile.am): Likewise.
43134         * modules/putenv (Makefile.am): Likewise.
43135         * modules/quote (Makefile.am): Likewise.
43136         * modules/quotearg (Makefile.am): Likewise.
43137         * modules/raise (Makefile.am): Likewise.
43138         * modules/read-file (Makefile.am): Likewise.
43139         * modules/readline (Makefile.am): Likewise.
43140         * modules/readlink (Makefile.am): Likewise.
43141         * modules/readtokens (Makefile.am): Likewise.
43142         * modules/readutmp (Makefile.am): Likewise.
43143         * modules/realloc (Makefile.am): Likewise.
43144         * modules/regex (Makefile.am): Likewise.
43145         * modules/rename-dest-slash (Makefile.am): Likewise.
43146         * modules/rename (Makefile.am): Likewise.
43147         * modules/rijndael (Makefile.am): Likewise.
43148         * modules/rmdir (Makefile.am): Likewise.
43149         * modules/rpmatch (Makefile.am): Likewise.
43150         * modules/safe-read (Makefile.am): Likewise.
43151         * modules/safe-write (Makefile.am): Likewise.
43152         * modules/same-inode (Makefile.am): Likewise.
43153         * modules/same (Makefile.am): Likewise.
43154         * modules/save-cwd (Makefile.am): Likewise.
43155         * modules/savedir (Makefile.am): Likewise.
43156         * modules/setenv (Makefile.am): Likewise.
43157         * modules/settime (Makefile.am): Likewise.
43158         * modules/sha1 (Makefile.am): Likewise.
43159         * modules/sig2str (Makefile.am): Likewise.
43160         * modules/snprintf (Makefile.am): Likewise.
43161         * modules/stat-macros (Makefile.am): Likewise.
43162         * modules/stat-time (Makefile.am): Likewise.
43163         * modules/stdbool (Makefile.am): Likewise.
43164         * modules/stdint (Makefile.am): Likewise.
43165         * modules/stdlib-safer (Makefile.am): Likewise.
43166         * modules/stpcpy (Makefile.am): Likewise.
43167         * modules/stpncpy (Makefile.am): Likewise.
43168         * modules/strcase (Makefile.am): Likewise.
43169         * modules/strcasestr (Makefile.am): Likewise.
43170         * modules/strchrnul (Makefile.am): Likewise.
43171         * modules/strcspn (Makefile.am): Likewise.
43172         * modules/strdup (Makefile.am): Likewise.
43173         * modules/strerror (Makefile.am): Likewise.
43174         * modules/strftime (Makefile.am): Likewise.
43175         * modules/strndup (Makefile.am): Likewise.
43176         * modules/strnlen (Makefile.am): Likewise.
43177         * modules/strpbrk (Makefile.am): Likewise.
43178         * modules/strsep (Makefile.am): Likewise.
43179         * modules/strstr (Makefile.am): Likewise.
43180         * modules/strtod (Makefile.am): Likewise.
43181         * modules/strtoimax (Makefile.am): Likewise.
43182         * modules/strtok_r (Makefile.am): Likewise.
43183         * modules/strtol (Makefile.am): Likewise.
43184         * modules/strtoll (Makefile.am): Likewise.
43185         * modules/strtoul (Makefile.am): Likewise.
43186         * modules/strtoull (Makefile.am): Likewise.
43187         * modules/strtoumax (Makefile.am): Likewise.
43188         * modules/strverscmp (Makefile.am): Likewise.
43189         * modules/sys_socket (Makefile.am): Likewise.
43190         * modules/sys_stat (Makefile.am): Likewise.
43191         * modules/sysexits (Makefile.am): Likewise.
43192         * modules/time_r (Makefile.am): Likewise.
43193         * modules/timegm (Makefile.am): Likewise.
43194         * modules/timespec (Makefile.am): Likewise.
43195         * modules/tmpfile-safer (Makefile.am): Likewise.
43196         * modules/trim (Makefile.am): Likewise.
43197         * modules/unistd-safer (Makefile.am): Likewise.
43198         * modules/unlinkdir (Makefile.am): Likewise.
43199         * modules/unlocked-io (Makefile.am): Likewise.
43200         * modules/userspec (Makefile.am): Likewise.
43201         * modules/utime (Makefile.am): Likewise.
43202         * modules/utimecmp (Makefile.am): Likewise.
43203         * modules/utimens (Makefile.am): Likewise.
43204         * modules/vasnprintf (Makefile.am): Likewise.
43205         * modules/vasprintf (Makefile.am): Likewise.
43206         * modules/vsnprintf (Makefile.am): Likewise.
43207         * modules/xalloc (Makefile.am): Likewise.
43208         * modules/xgetcwd (Makefile.am): Likewise.
43209         * modules/xnanosleep (Makefile.am): Likewise.
43210         * modules/xreadlink (Makefile.am): Likewise.
43211         * modules/xstrtod (Makefile.am): Likewise.
43212         * modules/xstrtol (Makefile.am): Likewise.
43213         * modules/xstrtold (Makefile.am): Likewise.
43214         * modules/yesno (Makefile.am): Likewise.
43215         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
43216
43217 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43218
43219         * modules/error (Makefile.am): Distribute files through
43220         EXTRA_DIST, not lib_SOURCES.
43221
43222 2006-10-12  Eric Blake  <ebb9@byu.net>
43223
43224         * modules/error (Makefile.am): Distribute files in /lib.
43225         * modules/obstack (Makefile.am): Likewise.
43226
43227 2006-10-12  Bruno Haible  <bruno@clisp.org>
43228
43229         * modules/acl (Makefile.am): Distribute all files in lib/ through
43230         EXTRA_DIST.
43231         * modules/arcfour (Makefile.am): Likewise.
43232         * modules/arctwo (Makefile.am): Likewise.
43233         * modules/argmatch (Makefile.am): Likewise.
43234         * modules/argz (Makefile.am): Likewise.
43235         * modules/atexit (Makefile.am): Likewise.
43236         * modules/backupfile (Makefile.am): Likewise.
43237         * modules/c-strtod (Makefile.am): Likewise.
43238         * modules/c-strtold (Makefile.am): Likewise.
43239         * modules/calloc (Makefile.am): Likewise.
43240         * modules/canon-host (Makefile.am): Likewise.
43241         * modules/canonicalize (Makefile.am): Likewise.
43242         * modules/chdir-long (Makefile.am): Likewise.
43243         * modules/chdir-safer (Makefile.am): Likewise.
43244         * modules/check-version (Makefile.am): Likewise.
43245         * modules/chown (Makefile.am): Likewise.
43246         * modules/cloexec (Makefile.am): Likewise.
43247         * modules/close-stream (Makefile.am): Likewise.
43248         * modules/closeout (Makefile.am): Likewise.
43249         * modules/crc (Makefile.am): Likewise.
43250         * modules/cycle-check (Makefile.am): Likewise.
43251         * modules/des (Makefile.am): Likewise.
43252         * modules/dirfd (Makefile.am): Likewise.
43253         * modules/dirname (Makefile.am): Likewise.
43254         * modules/dup2 (Makefile.am): Likewise.
43255         * modules/euidaccess (Makefile.am): Likewise.
43256         * modules/exclude (Makefile.am): Likewise.
43257         * modules/exitfail (Makefile.am): Likewise.
43258         * modules/fcntl-safer (Makefile.am): Likewise.
43259         * modules/file-type (Makefile.am): Likewise.
43260         * modules/fileblocks (Makefile.am): Likewise.
43261         * modules/filemode (Makefile.am): Likewise.
43262         * modules/filenamecat (Makefile.am): Likewise.
43263         * modules/fnmatch (Makefile.am): Likewise.
43264         * modules/fopen-safer (Makefile.am): Likewise.
43265         * modules/fpending (Makefile.am): Likewise.
43266         * modules/fprintftime (Makefile.am): Likewise.
43267         * modules/free (Makefile.am): Likewise.
43268         * modules/fsusage (Makefile.am): Likewise.
43269         * modules/ftruncate (Makefile.am): Likewise.
43270         * modules/fts (Makefile.am): Likewise.
43271         * modules/gc (Makefile.am): Likewise.
43272         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
43273         * modules/getaddrinfo (Makefile.am): Likewise.
43274         * modules/getcwd (Makefile.am): Likewise.
43275         * modules/getdelim (Makefile.am): Likewise.
43276         * modules/getdomainname (Makefile.am): Likewise.
43277         * modules/getgroups (Makefile.am): Likewise.
43278         * modules/gethostname (Makefile.am): Likewise.
43279         * modules/gethrxtime (Makefile.am): Likewise.
43280         * modules/getline (Makefile.am): Likewise.
43281         * modules/getloadavg (Makefile.am): Likewise.
43282         * modules/getlogin_r (Makefile.am): Likewise.
43283         * modules/getopt (Makefile.am): Likewise.
43284         * modules/getpass (Makefile.am): Likewise.
43285         * modules/getpass-gnu (Makefile.am): Likewise.
43286         * modules/getsubopt (Makefile.am): Likewise.
43287         * modules/gettime (Makefile.am): Likewise.
43288         * modules/gettimeofday (Makefile.am): Likewise.
43289         * modules/getugroups (Makefile.am): Likewise.
43290         * modules/getusershell (Makefile.am): Likewise.
43291         * modules/glob (Makefile.am): Likewise.
43292         * modules/group-member (Makefile.am): Likewise.
43293         * modules/hard-locale (Makefile.am): Likewise.
43294         * modules/hash (Makefile.am): Likewise.
43295         * modules/hmac-md5 (Makefile.am): Likewise.
43296         * modules/hmac-sha1 (Makefile.am): Likewise.
43297         * modules/human (Makefile.am): Likewise.
43298         * modules/idcache (Makefile.am): Likewise.
43299         * modules/imaxabs (Makefile.am): Likewise.
43300         * modules/imaxdiv (Makefile.am): Likewise.
43301         * modules/inet_ntop (Makefile.am): Likewise.
43302         * modules/inet_pton (Makefile.am): Likewise.
43303         * modules/inttostr (Makefile.am): Likewise.
43304         * modules/isapipe (Makefile.am): Likewise.
43305         * modules/lchown (Makefile.am): Likewise.
43306         * modules/long-options (Makefile.am): Likewise.
43307         * modules/lstat (Makefile.am): Likewise.
43308         * modules/malloc (Makefile.am): Likewise.
43309         * modules/mathl (Makefile.am): Likewise.
43310         * modules/mbchar (Makefile.am): Likewise.
43311         * modules/md2 (Makefile.am): Likewise.
43312         * modules/md4 (Makefile.am): Likewise.
43313         * modules/md5 (Makefile.am): Likewise.
43314         * modules/memcasecmp (Makefile.am): Likewise.
43315         * modules/memchr (Makefile.am): Likewise.
43316         * modules/memcmp (Makefile.am): Likewise.
43317         * modules/memcoll (Makefile.am): Likewise.
43318         * modules/memcpy (Makefile.am): Likewise.
43319         * modules/memmem (Makefile.am): Likewise.
43320         * modules/memmove (Makefile.am): Likewise.
43321         * modules/mempcpy (Makefile.am): Likewise.
43322         * modules/memrchr (Makefile.am): Likewise.
43323         * modules/memset (Makefile.am): Likewise.
43324         * modules/memxor (Makefile.am): Likewise.
43325         * modules/mkancesdirs (Makefile.am): Likewise.
43326         * modules/mkdir (Makefile.am): Likewise.
43327         * modules/mkdir-p (Makefile.am): Likewise.
43328         * modules/mkdtemp (Makefile.am): Likewise.
43329         * modules/mkstemp (Makefile.am): Likewise.
43330         * modules/mktime (Makefile.am): Likewise.
43331         * modules/modechange (Makefile.am): Likewise.
43332         * modules/mountlist (Makefile.am): Likewise.
43333         * modules/nanosleep (Makefile.am): Likewise.
43334         * modules/openat (Makefile.am): Likewise.
43335         * modules/pagealign_alloc (Makefile.am): Likewise.
43336         * modules/physmem (Makefile.am): Likewise.
43337         * modules/poll (Makefile.am): Likewise.
43338         * modules/posixtm (Makefile.am): Likewise.
43339         * modules/posixver (Makefile.am): Likewise.
43340         * modules/putenv (Makefile.am): Likewise.
43341         * modules/quote (Makefile.am): Likewise.
43342         * modules/quotearg (Makefile.am): Likewise.
43343         * modules/raise (Makefile.am): Likewise.
43344         * modules/read-file (Makefile.am): Likewise.
43345         * modules/readline (Makefile.am): Likewise.
43346         * modules/readlink (Makefile.am): Likewise.
43347         * modules/readtokens (Makefile.am): Likewise.
43348         * modules/readutmp (Makefile.am): Likewise.
43349         * modules/realloc (Makefile.am): Likewise.
43350         * modules/regex (Makefile.am): Likewise.
43351         * modules/rename (Makefile.am): Likewise.
43352         * modules/rename-dest-slash (Makefile.am): Likewise.
43353         * modules/rijndael (Makefile.am): Likewise.
43354         * modules/rmdir (Makefile.am): Likewise.
43355         * modules/rpmatch (Makefile.am): Likewise.
43356         * modules/safe-read (Makefile.am): Likewise.
43357         * modules/safe-write (Makefile.am): Likewise.
43358         * modules/same (Makefile.am): Likewise.
43359         * modules/save-cwd (Makefile.am): Likewise.
43360         * modules/savedir (Makefile.am): Likewise.
43361         * modules/setenv (Makefile.am): Likewise.
43362         * modules/settime (Makefile.am): Likewise.
43363         * modules/sha1 (Makefile.am): Likewise.
43364         * modules/sig2str (Makefile.am): Likewise.
43365         * modules/snprintf (Makefile.am): Likewise.
43366         * modules/stdlib-safer (Makefile.am): Likewise.
43367         * modules/stpcpy (Makefile.am): Likewise.
43368         * modules/stpncpy (Makefile.am): Likewise.
43369         * modules/strcase (Makefile.am): Likewise.
43370         * modules/strcasestr (Makefile.am): Likewise.
43371         * modules/strchrnul (Makefile.am): Likewise.
43372         * modules/strcspn (Makefile.am): Likewise.
43373         * modules/strdup (Makefile.am): Likewise.
43374         * modules/strerror (Makefile.am): Likewise.
43375         * modules/strftime (Makefile.am): Likewise.
43376         * modules/strndup (Makefile.am): Likewise.
43377         * modules/strnlen (Makefile.am): Likewise.
43378         * modules/strpbrk (Makefile.am): Likewise.
43379         * modules/strsep (Makefile.am): Likewise.
43380         * modules/strstr (Makefile.am): Likewise.
43381         * modules/strtod (Makefile.am): Likewise.
43382         * modules/strtoimax (Makefile.am): Likewise.
43383         * modules/strtok_r (Makefile.am): Likewise.
43384         * modules/strtol (Makefile.am): Likewise.
43385         * modules/strtoll (Makefile.am): Likewise.
43386         * modules/strtoul (Makefile.am): Likewise.
43387         * modules/strtoull (Makefile.am): Likewise.
43388         * modules/strtoumax (Makefile.am): Likewise.
43389         * modules/strverscmp (Makefile.am): Likewise.
43390         * modules/time_r (Makefile.am): Likewise.
43391         * modules/timegm (Makefile.am): Likewise.
43392         * modules/tmpfile-safer (Makefile.am): Likewise.
43393         * modules/unistd-safer (Makefile.am): Likewise.
43394         * modules/unlinkdir (Makefile.am): Likewise.
43395         * modules/userspec (Makefile.am): Likewise.
43396         * modules/utime (Makefile.am): Likewise.
43397         * modules/utimecmp (Makefile.am): Likewise.
43398         * modules/utimens (Makefile.am): Likewise.
43399         * modules/vasnprintf (Makefile.am): Likewise.
43400         * modules/vasprintf (Makefile.am): Likewise.
43401         * modules/vsnprintf (Makefile.am): Likewise.
43402         * modules/xalloc (Makefile.am): Likewise.
43403         * modules/xgetcwd (Makefile.am): Likewise.
43404         * modules/xnanosleep (Makefile.am): Likewise.
43405         * modules/xreadlink (Makefile.am): Likewise.
43406         * modules/xstrtod (Makefile.am): Likewise.
43407         * modules/xstrtol (Makefile.am): Likewise.
43408         * modules/xstrtold (Makefile.am): Likewise.
43409         * modules/yesno (Makefile.am): Likewise.
43410
43411 2006-10-12  Jim Meyering  <jim@meyering.net>
43412
43413         * m4/getloadavg.m4: Revert the change below.
43414
43415         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
43416         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
43417         fail with a symlink, which is what coreutils' ./bootstrap now
43418         creates by default.
43419
43420 2006-10-12  Bruno Haible  <bruno@clisp.org>
43421
43422         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
43423         mingw.
43424         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
43425         MSVC and mingw explicitly.
43426
43427 2006-10-11  Simon Josefsson  <jas@extundo.com>
43428             Bruno Haible  <bruno@clisp.org>
43429
43430         Add support for multiple gnulib-tool invocations in the scope of a
43431         single configure.ac file.
43432         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
43433         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
43434         with the same contents as the _LIBADD variable.
43435         (func_emit_initmacro_start, func_emit_initmacro_end,
43436         func_emit_initmacro_done): New functions.
43437         (func_import, func_create_testdir): Invoke them. Allow the identifiers
43438         gl_LIBOBJS and gl_LTLIBOBJS.
43439
43440 2006-10-11  Bruno Haible  <bruno@clisp.org>
43441
43442         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
43443         (func_create_testdir): Don't create po/Makefile.am, don't invoke
43444         autoreconf. Instead, invoke autopoint explicitly but move back the
43445         *.m4 files from gnulib.
43446
43447 2006-10-11  Bruno Haible  <bruno@clisp.org>
43448
43449         * gnulib-tool (func_usage): Make module names after --create-testdir
43450         optional.
43451         (func_create_testdir): If no module was specified, use nearly all
43452         modules.
43453
43454 2006-10-12  Jim Meyering  <jim@meyering.net>
43455
43456         Big performance improvement for fts-based tools that use FTS_NOSTAT.
43457         Avoid spurious inode-mismatch problems on non-POSIX file systems.
43458         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
43459         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
43460         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
43461         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
43462         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
43463         (fts_set_stat_required): New function.
43464         (fts_open): Defer the calls to fts_stat, if possible or requested.
43465         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
43466         into fts_stat itself.
43467         (fts_read): Perform any required (deferred) fts_stat call.
43468         (fts_build): Likewise, for the directory we're about to open and read.
43469         In the readdir loop, carefully decide whether each entry will require
43470         an eventual call to fts_stat, using dirent.d_type info if available.
43471         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
43472         a command line argument into this function.  Update all callers.
43473         Map a return value of FTS_DOT to FTS_D for a command line argument.
43474         * modules/fts (Depends-on): Add d-type.  Alphabetize.
43475         Thanks to Miklos Szeredi for his tenacity and for the initial
43476         bug report about "find" failing on a FUSE-based file system.
43477
43478         * lib/fts.c (fts_open): Use consistent indentation.
43479
43480 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43481
43482         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
43483         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
43484         reported by Jim Meyering.  All uses of cache variables renamed
43485         to match Autoconf's.
43486         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
43487         the other one.
43488
43489         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43490         Fix misspelling in diagnostic.
43491
43492 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43493
43494         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
43495         defined.  Problem reported by Matthew Woehlke.
43496
43497         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
43498         Add support for Tandem NonStop R series.
43499         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
43500         Use new macro.
43501
43502         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
43503         (has_trailing_slash): Omit size arg; all callers changed.
43504         Omit 'inline', since it doesn't help performance and we'd
43505         need to configure it.
43506         Don't count //, ///, etc. as having a trailing slash.
43507         As a side effect, this removes a C99ism reported by Matthew Woehlke.
43508         (rpl_rename_dest_slash): On failure, use rename's errno rather
43509         than (in some cases) an incorrect or junk errno.
43510         Simplify code by removing need to compute length; this does
43511         cause it to make two passes instead of one over the file name,
43512         but it's worth it.
43513
43514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
43515         change, since Autoconf's version may no longer be appropriate now
43516         that we are using CVS Autoconf's version.  Add support for Tandem.
43517
43518 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43519             Bruno Haible  <bruno@clisp.org>
43520
43521         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
43522         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
43523         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
43524         gl_AC_TYPE_LONG_LONG.
43525
43526         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
43527         instead of HAVE_LONG_LONG.
43528         * lib/printf-args.c (printf_fetchargs): Likewise.
43529         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43530         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43531         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
43532         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
43533         gl_AC_TYPE_LONG_LONG.
43534
43535 2006-10-11  Bruno Haible  <bruno@clisp.org>
43536
43537         * m4/longlong.m4: Add comments.
43538         * m4/ulonglong.m4: Likewise.
43539
43540 2006-10-10  Bruno Haible  <bruno@clisp.org>
43541
43542         Make it possible to #define stpcpy, strdup to aliases.
43543         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
43544         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
43545
43546 2006-10-10  Bruno Haible  <bruno@clisp.org>
43547
43548         Make it possible to #define gcd to an alias.
43549         * lib/gcd.c: Include config.h.
43550
43551 2006-10-10  Bruno Haible  <bruno@clisp.org>
43552
43553         Make it possible to #define c_isascii to an alias.
43554         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
43555         defined. Undefine the macros before defining them, to avoid gcc
43556         warnings.
43557         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
43558         define NO_C_CTYPE_MACROS early.
43559
43560 2006-10-10  Bruno Haible  <bruno@clisp.org>
43561
43562         Make it possible to #define set_program_name to an alias.
43563         * lib/progname.c: Don't undefine set_program_name; instead, undefine
43564         ENABLE_RELOCATABLE early.
43565
43566 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43567
43568         Port to Tandem NSK OSS, which has 64-bit signed int but at most
43569         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
43570         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
43571         More generally, don't assume that 64-bit signed int is available
43572         if unsigned int is, and vice versa.
43573         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
43574         unsigned symbols, not on their signed counterparts.
43575         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
43576         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
43577         (UINT64_C, UINTMAX_C):
43578         Likewise.
43579         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
43580         unsigned counterparts.
43581         (Have_long_long, Unsigned): New macros.
43582         (Int): Renamed from INT.
43583         (strtoimax): Use the new macros.
43584         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
43585         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
43586         * modules/inttypes (inttypes.h): Substitute
43587         HAVE_UNSIGNED_LONG_LONG_INT.
43588         * modules/stdint (stdint.h): Likewise.
43589         (Files): Add m4/ulonglong.m4.
43590
43591 2006-10-10  Bruno Haible  <bruno@clisp.org>
43592
43593         Fix a gcc -Wshadow warning.
43594         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
43595         to 'bucket'.
43596         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
43597         gl_linked_indexof_from_to): Likewise.
43598         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
43599         Likewise.
43600         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
43601         Likewise.
43602         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
43603         Reported by Eric Blake.
43604
43605 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43606
43607         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
43608         for NetBSD.  Problem reported by Bruno Haible.
43609
43610 2006-10-09  Jim Meyering  <jim@meyering.net>
43611
43612         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
43613         Patch from Bruno Haible.
43614
43615 2006-10-09  Jim Meyering  <jim@meyering.net>
43616
43617         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43618         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43619         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43620
43621 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43622
43623         Don't include <config.h> twice; this doesn't work in some cases,
43624         e.g., when config.h has "#define intmax_t long long int" and
43625         we include <config.h>, <inttypes.h>, <config.h> in that order.
43626         Problem reported by Matthew Woehlke in:
43627         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43628         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43629         * lib/fts-cycle.c: Don't include config.h.
43630         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43631         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43632         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43633         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43634         inttypes.h.
43635         * lib/xstrtoumax.c: Likewise.
43636         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43637         __strtol and the like, so that this module is more like its siblings.
43638         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43639         Remove; no longer needed now that we assume gnulib inttypes.h.
43640
43641 2006-10-08  Bruno Haible  <bruno@clisp.org>
43642
43643         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43644         option.
43645
43646 2006-10-07  Jim Meyering  <jim@meyering.net>
43647
43648         * modules/inttypes (inttypes.h): Revert what seems to have been
43649         an inadvertent part of today's change: use "|", not "/" in the
43650         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43651
43652 2006-10-07  Bruno Haible  <bruno@clisp.org>
43653
43654         * modules/sublist: New file.
43655
43656 2006-10-07  Bruno Haible  <bruno@clisp.org>
43657
43658         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43659         * modules/argz (argz.h): Likewise.
43660         * modules/arpa_inet (arpa/inet.h): Likewise.
43661         * modules/byteswap (byteswap.h): Likewise.
43662         * modules/configmake (configmake.h): Likewise.
43663         * modules/fcntl (fcntl.h): Likewise.
43664         * modules/fnmatch (fnmatch.h): Likewise.
43665         * modules/getopt (getopt.h): Likewise.
43666         * modules/glob (glob.h): Likewise.
43667         * modules/inttypes (inttypes.h): Likewise.
43668         * modules/netinet_in (netinet/in.h): Likewise.
43669         * modules/poll (poll.h): Likewise.
43670         * modules/stdbool (stdbool.h): Likewise.
43671         * modules/stdint (stdint.h): Likewise.
43672         * modules/sys_select (sys/select.h): Likewise.
43673         * modules/sys_socket (sys/socket.h): Likewise.
43674         * modules/sys_stat (sys/stat.h): Likewise.
43675         * modules/sysexits (sysexits.h): Likewise.
43676         * modules/unistd (unistd.h): Likewise.
43677         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43678         Add a "DO NOT EDIT" comment to the generated file.
43679         (func_import): Likewise for gnulib-comp.m4.
43680
43681 2006-10-07  Bruno Haible  <bruno@clisp.org>
43682
43683         * lib/gl_sublist.h: New file.
43684         * lib/gl_sublist.c: New file.
43685
43686 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43687
43688         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43689         name (relative to the original working directory) and the file
43690         name component (relative to the temporary working directory).  All
43691         callers changed.
43692         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43693         * lib/mkdir-p.c (make_dir_parents): Likewise.
43694         * lib/mkdir-p.h (make_dir_parents): Likewise.
43695
43696 2006-10-06  Eric Blake  <ebb9@byu.net>
43697
43698         Define several macros for use by the clean-temp module.
43699         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43700         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43701         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43702
43703         * lib/clean-temp.h (close_stream_temp): New declaration.
43704         * lib/clean-temp.c (includes): Pull in headers according to what
43705         other modules are in use.
43706         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43707
43708 2006-10-06  Bruno Haible  <bruno@clisp.org>
43709
43710         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43711         instead of fopen, fwriteerror.
43712
43713 2006-10-06  Bruno Haible  <bruno@clisp.org>
43714
43715         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43716         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43717         int.
43718         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43719         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43720         Return an error indicator.
43721         Suggested by Eric Blake.
43722
43723 2006-10-06  Bruno Haible  <bruno@clisp.org>
43724
43725         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43726         Reported by Eric Blake.
43727
43728 2006-10-06  Bruno Haible  <bruno@clisp.org>
43729
43730         * modules/closeout (Description): Mention stderr too.
43731
43732 2006-10-06  Bruno Haible  <bruno@clisp.org>
43733         and Paul Eggert  <eggert@cs.ucla.edu>
43734
43735         * lib/closeout.c (close_stdout): Also close stderr.
43736         * lib/closeout.h: Update comment.
43737
43738 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43739
43740         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43741         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43742         * lib/dirchownmod.c: Include lchown.h.
43743         * lib/lchown.c: Don't include files that lchown.h now includes.
43744         Don't declare chown, since lchown.h now does that.
43745         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43746         (lchown): Define to rpl_chown if lchown is declared but
43747         does not exist.  Declare using a prototype if lchown is not
43748         declared.  Add a copyright notice.
43749         * lib/mkstemp.h: Include <unistd.h>.
43750         * lib/openat.c: Include lchown.h.
43751
43752         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43753         we now test for that separately.
43754         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43755         rather than O_NOFOLLOW, when testing whether it's possible to
43756         avoid a race condition reliably.
43757         * lib/savewd.c (savewd_chdir): Likewise.
43758
43759         Remove macros that are no longer needed now that stdint.h is
43760         reliable.
43761         * lib/fsusage.c (UINTMAX_MAX): Remove.
43762         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43763         * lib/utimecmp.c (SIZE_MAX): Remove.
43764
43765         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43766
43767         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43768         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43769         O_NOATIME works.
43770
43771 2006-10-05  Bruno Haible  <bruno@clisp.org>
43772
43773         * lib/gl_list.h (gl_sortedlist_search_from_to,
43774         gl_sortedlist_indexof_from_to): New declarations.
43775         (gl_list_implementation): New fields sortedlist_search_from_to,
43776         sortedlist_indexof_from_to.
43777         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43778         inline functions.
43779         * lib/gl_list.c (gl_sortedlist_search_from_to,
43780         gl_sortedlist_indexof_from_to): New functions.
43781         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43782         function.
43783         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43784         (gl_array_sortedlist_search_from_to): New function.
43785         (gl_array_list_implementation): Update.
43786         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43787         function.
43788         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43789         (gl_carray_sortedlist_search_from_to): New function.
43790         (gl_carray_list_implementation): Update.
43791         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43792         gl_linked_sortedlist_indexof_from_to): New functions.
43793         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43794         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43795         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43796         gl_tree_sortedlist_indexof_from_to): New functions.
43797         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43798         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43799         Update.
43800         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43801         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43802         Update.
43803
43804 2006-10-05  Bruno Haible  <bruno@clisp.org>
43805
43806         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43807         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43808         (struct gl_list_implementation): Add fields search_from_to,
43809         indexof_from_to. Remove fields search, indexof.
43810         (gl_list_search): Use the search_from_to method.
43811         (gl_list_search_from, gl_list_search_from_to): New functions.
43812         (gl_list_indexof): Use the indexof_from_to method.
43813         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43814         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43815         (gl_list_search_from, gl_list_search_from_to): New functions.
43816         (gl_list_indexof): Use the indexof_from_to method.
43817         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43818         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43819         gl_array_indexof. Add start_index, end_index arguments.
43820         (gl_array_search_from_to): Renamed from gl_array_search. Add
43821         start_index, end_index arguments.
43822         (gl_array_remove, gl_array_list_implementation): Update.
43823         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43824         gl_carray_indexof. Add start_index, end_index arguments.
43825         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43826         start_index, end_index arguments.
43827         (gl_carray_remove, gl_carray_list_implementation): Update.
43828         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43829         gl_linked_search. Add start_index, end_index arguments.
43830         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43831         start_index, end_index arguments.
43832         (gl_linked_remove): Update.
43833         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43834         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43835         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43836         field to 'size_t'.
43837         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43838         gl_tree_search. Add start_index, end_index arguments.
43839         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43840         start_index, end_index arguments.
43841         (gl_tree_remove): Update.
43842         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43843         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43844         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43845         function.
43846         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43847         gl_tree_search. Add start_index, end_index arguments.
43848         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43849         start_index, end_index arguments.
43850         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43851         Update.
43852         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43853
43854 2006-10-05  Bruno Haible  <bruno@clisp.org>
43855
43856         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43857
43858         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43859         fwriteerror_temp): New declarations.
43860         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43861         (descriptors): New variable.
43862         (cleanup): First, close the descriptors.
43863         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43864         fclose_temp, fwriteerror_temp): New functions.
43865
43866 2006-10-04  Jim Meyering  <jim@meyering.net>
43867
43868         * lib/fts.c (fts_open): Tiny comment change.
43869
43870 2006-10-04  Bruno Haible  <bruno@clisp.org>
43871
43872         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43873         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43874         gl_LOCK_BODY.
43875         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43876         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43877         gl_LOCK_EARLY_BODY.
43878         (gl_LOCK): Require gl_LOCK_BODY.
43879
43880 2006-10-04  Bruno Haible  <bruno@clisp.org>
43881
43882         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43883         (gl_oset_search_atleast): New declaration.
43884         (struct gl_oset_implementation): Add field 'search_atleast'.
43885         (gl_oset_search_atleast): New inline function.
43886         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43887         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43888         (gl_array_oset_implementation): Update.
43889         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43890         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43891         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43892
43893 2006-10-04  Bruno Haible  <bruno@clisp.org>
43894
43895         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43896
43897 2006-10-03  Bruno Haible  <bruno@clisp.org>
43898
43899         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43900         from gl_avltreehash_list_implementation.
43901
43902 2006-10-03  Bruno Haible  <bruno@clisp.org>
43903
43904         * lib/gl_oset.c (gl_oset_add): Fix return type.
43905
43906 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43907
43908         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43909
43910 2006-10-02  Eric Blake  <ebb9@byu.net>
43911
43912         * modules/strnlen (Depends-on): Add extensions.
43913
43914 2006-10-02  Eric Blake  <ebb9@byu.net>
43915
43916         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43917         definition in 2.60+.
43918
43919 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43920
43921         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43922         checks.
43923
43924 2006-10-02  Bruno Haible  <bruno@clisp.org>
43925
43926         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43927         to the AUTOMAKE_OPTIONS.
43928         Reported by Jim Meyering.
43929
43930 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43931
43932         Work around bug in Solaris 10 /proc file system:
43933         /proc/self/fd/NNN/.. isn't the parent directory of
43934         the directory whose file descriptor is NNN.  This needs to
43935         be worked around at run time, not compile time, since a
43936         program might be built on Solaris 8, where things work, and
43937         run on Solaris 10.
43938         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43939         to use the following interface instead:
43940         (OPENAT_BUFFER_SIZE): New macro.
43941         (openat_proc_name): New function.
43942         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43943         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43944         Likewise.
43945         * lib/openat-proc.c: New file.
43946         * modules/openat (Files): Add lib/openat-proc.c.
43947         (Depends-on): Add same-inode, stdbool.
43948         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43949
43950 2006-09-29  Bruno Haible  <bruno@clisp.org>
43951
43952         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43953         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43954         argument. Set stdout_closed before testing for ferror, not after.
43955         (fwriteerror, fwriteerror_no_ebadf): New functions.
43956
43957 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43958
43959         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43960
43961 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43962
43963         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43964         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43965
43966 2006-09-28  Jim Meyering  <jim@meyering.net>
43967
43968         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43969         Include <unistd.h>.
43970
43971 2006-09-28  Bruno Haible  <bruno@clisp.org>
43972
43973         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43974         * modules/linkedhash-list (Depends-on): Likewise.
43975         * modules/rbtreehash-list (Depends-on): Likewise.
43976
43977 2006-09-28  Bruno Haible  <bruno@clisp.org>
43978
43979         * lib/strndup.h: Simplify the redefinition of strndup.
43980         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43981         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43982
43983 2006-09-28  Bruno Haible  <bruno@clisp.org>
43984
43985         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43986         * lib/gl_linkedhash_list.c: Likewise.
43987         * lib/gl_rbtreehash_list.c: Likewise.
43988
43989 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43990
43991         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43992         getaddrinfo.
43993
43994         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43995         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43996         it causes <stdio_ext.h> to cause a compile-time error.
43997         Problem reported by Nelson H. F. Beebe.
43998         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43999         of HAVE_DECL___PENDING.
44000
44001         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
44002         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
44003         declaration.
44004
44005 2006-09-27  Jim Meyering  <jim@meyering.net>
44006
44007         This file could end up with a definition for a function
44008         named __strndup, rather than rpl_strndup on a system with
44009         incomplete weak_alias support.
44010         * lib/strndup.c (strndup): Rename from __strndup.
44011         Remove #defines that used to map __strndup to strndup.
44012         Don't use K&R prototypes.
44013         Remove LIBC-related code, since this file is not sync'd with glibc.
44014         * lib/strndup.h: Revamp, accordingly.
44015         * m4/strndup.m4: Modernize.
44016
44017 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
44018
44019         * modules/savewd (Depends-on): Add 'raise'.
44020         * lib/savewd.c: Include <signal.h>, for 'raise'.
44021
44022 2006-09-26  Jim Meyering  <jim@meyering.net>
44023
44024         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
44025         when we detect Darwin 8.7.0's acl_get_file bug.
44026         Rearrange to perform the new (below) run-test while $LIBS
44027         contains any acl-related library.  Set USE_ACL at the end.
44028         (gl_ACL_GET_FILE): New function.
44029
44030 2006-09-26  Eric Blake  <ebb9@byu.net>
44031
44032         * lib/verror.c: Include <config.h> unconditionally.
44033
44034 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
44035
44036         * modules/clock-time (Maintainer): Add self.
44037         * modules/getlogin_r (Depends-on): Add extensions.
44038
44039 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44040
44041         * modules/clock-time: New module.
44042         * modules/nanosleep (Depends-on): Add clock-time.
44043         * modules/gethrxtime (Depends-on): Likewise.
44044         * modules/gettime (Depends-on): Likewise.
44045         * modules/settime (Depends-on): Likewise.
44046
44047         * modules/fts-lgpl: Depend on openat.
44048         * modules/mkancesdirs: Depend on savewd.
44049         * modules/mkdir-p: Likewise.
44050
44051 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44052
44053         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
44054
44055         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
44056         `gl_have_arbitrary_file_name_length_limit' to
44057         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
44058         actually works between configure runs.
44059
44060 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44061             Bruno Haible  <bruno@clisp.org>
44062
44063         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
44064
44065 2006-09-25  Jim Meyering  <jim@meyering.net>
44066
44067         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
44068         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
44069
44070 2006-09-25  Eric Blake  <ebb9@byu.net>
44071
44072         * gnulib-tool (func_import, func_create_testdir): Fix typos in
44073         exec's in 2006-09-18 patch when shuffling fds.
44074
44075 2006-09-25  Bruno Haible  <bruno@clisp.org>
44076
44077         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
44078         Reported by Jim Meyering.
44079
44080 2006-09-24  Jim Meyering  <jim@meyering.net>
44081
44082         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
44083         compare a pointer against a literal "0".  That caused failures with
44084         at least HP-UX's hpcc.
44085
44086 2006-09-22  Simon Josefsson  <jas@extundo.com>
44087
44088         * modules/gc-sha1:
44089         * modules/gc-md4:
44090         * modules/gc-hmac-sha1:
44091         * modules/gc-hmac-md5:
44092         * modules/gc-des:
44093         * modules/gc-arcfour: Distribute more files.
44094
44095 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44096
44097         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
44098         (gl_linked_iterator_from_to): Initialize struct completely.
44099         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
44100         (gl_tree_iterator_from_to): Likewise
44101         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
44102         * lib/gl_array_list.c [lint] (gl_array_iterator)
44103         (gl_array_iterator_from_to): Likewise.
44104         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
44105         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
44106         (gl_carray_iterator_from_to): Likewise.
44107
44108         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
44109         * lib/md4.c (md4_process_block): Remove unused variable.
44110         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
44111         parentheses for clarity.
44112
44113 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44114
44115         * modules/bison-i18n (Depends-on): Add gettext.
44116
44117 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44118
44119         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
44120         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44121         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
44122         also add missing comma that caused broken test.
44123         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
44124         stdlib.h, for `abort'.
44125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
44126         variables.
44127         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
44128         include unistd.h if present, for `rmdir'.
44129         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
44130         variables.
44131         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
44132         in the process include standard headers for prototypes.
44133         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
44134         gets declared on GNU/Linux.
44135         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
44136         unistd.h, for `rmdir'.
44137         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
44138
44139         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
44140         always true.
44141         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
44142
44143         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
44144
44145 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44146
44147         * gnulib-tool (func_version): Create output all at once.  This
44148         may help avoid triggering unnecessary SIGPIPEs, and at any
44149         rate it doesn't hurt.
44150
44151 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44152             Bruno Haible  <bruno@clisp.org>
44153
44154         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
44155         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44156         * m4/signed.m4 (bh_C_SIGNED): Likewise.
44157
44158         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
44159         (gl_FUNC_VASPRINTF): Invoke it.
44160
44161 2006-09-22  Bruno Haible  <bruno@clisp.org>
44162
44163         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
44164         getloadavg.c as first argument.
44165
44166 2006-09-22  Bruno Haible  <bruno@clisp.org>
44167
44168         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
44169         at the beginning of the gl_INIT macro.
44170         * modules/getloadavg (configure.ac): Pass $gl_source_base to
44171         gl_GETLOADAVG.
44172
44173 2006-09-22  Bruno Haible  <bruno@clisp.org>
44174
44175         * gnulib-tool (func_create_megatestdir): Don't include the config-h
44176         module.
44177         Suggested by Ralf Wildenhues.
44178
44179 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
44180
44181         Import this patch from libc:
44182
44183         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
44184
44185         * lib/regex_internal.c (re_string_reconstruct): Handle
44186         offset < pstr->valid_raw_len && pstr->offsets_needed case.
44187         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
44188         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
44189         re_string_context_at.
44190
44191         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
44192         now requires it.
44193         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
44194         gl_REGEX now does it for us.
44195         (gl_REGEX): Add test taken from
44196         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
44197
44198         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
44199         Check that large offsets work.  Modernize Autoconf usages.
44200         Prefer "yes" to mean a good thing rather than a bad.
44201         Don't put "#define mkstemp" in config.h, as this might interfere
44202         with standard system headers that "#define mkstemp mkstemp64".
44203
44204         * modules/mkstemp (Depends-on): Add extensions, so that
44205         mkstemp is visible on some platforms.
44206         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
44207         (Include): Change to "mkstemp.h" from <stdlib.h>.
44208         (Files): Add mkstemp.h.
44209
44210         * lib/mkstemp.h: New file, since some standard headers
44211         #define mkstemp.
44212         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
44213         Include "mkstemp.h".
44214         Make the _LIBC code resemble glibc original more,
44215         e.g., use K&R style.
44216         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
44217         (mkstemp): Remove, since mkstemp.h does this for us.
44218         * lib/stdlib--.h: Include mkstemp.h.
44219
44220         Import this patch from libc:
44221
44222         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
44223
44224         * lib/tempname.c (__gen_tempname): Change attempts_min
44225         into a macro.  Use preprocessor to decide how to initialize
44226         attempts [Coverity CID 67].
44227
44228 2006-09-20  Bruno Haible  <bruno@clisp.org>
44229
44230         * lib/mkdtemp.c: Import from libc.
44231         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
44232                 * sysdeps/posix/tempname.c (__gen_tempname): Change
44233                 attempts_min into a macro.  Use preprocessor to decide how to
44234                 initialize attempts [Coverity CID 67].
44235         2001-11-27  Paul Eggert  <eggert@twinsun.com>
44236                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
44237                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
44238
44239 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44240
44241         * gnulib-tool (func_exit): New function, to allow to pass the
44242         exit status portably through the trap.  Use everywhere.
44243         (--help, --version): Signal a write error.
44244         (trap): catch SIGPIPE, for write errors.
44245         Exit at the end of the trap, with the correct exit status.
44246
44247 2006-09-19  Karl Berry  <karl@gnu.org>
44248
44249         * doc/gnulib.texi: note about the license texinfo files.
44250
44251 2006-09-19  Eric Blake  <ebb9@byu.net>
44252
44253         * gnulib-tool: Avoid space-tab.
44254
44255 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44256
44257         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
44258         that prevented coreutils 6.1 from building.  Problem reported
44259         by Petter Reinholdtsen.
44260
44261 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44262
44263         * gnulib-tool (avoidlist): Fix typo that broke options like
44264         --avoid=lock that are used by coreutils bootstrap.
44265
44266 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
44267
44268         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
44269         more systematically.
44270
44271 2006-09-18  Jim Meyering  <jim@meyering.net>
44272
44273         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
44274
44275 2006-09-18  Bruno Haible  <bruno@clisp.org>
44276
44277         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
44278
44279 2006-09-18  Bruno Haible  <bruno@clisp.org>
44280
44281         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
44282         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
44283         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
44284         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
44285         * m4/gettext.m4: Require autoconf >= 2.52.
44286         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
44287         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
44288         of gl_cv_header_inttypes_h.
44289
44290 2006-09-18  Bruno Haible  <bruno@clisp.org>
44291
44292         * lib/javaversion.c: Include configmake.h.
44293
44294 2006-09-18  Bruno Haible  <bruno@clisp.org>
44295
44296         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
44297         avoid that the while loops be executed in a subshell.
44298
44299 2006-09-18  Bruno Haible  <bruno@clisp.org>
44300
44301         * MODULES.html.sh (func_module): Break long lines.
44302         Suggested by Bruce Korb <bkorb@gnu.org>.
44303
44304 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44305
44306         Speed up by a factor of 1.12.
44307         * gnulib-tool (nl): New variable.
44308         (func_import): Rewrite include directive extraction to only read each
44309         directive once.
44310
44311 2006-09-17  Bruno Haible  <bruno@clisp.org>
44312
44313         * modules/javaversion (Makefile.am): Remove DEFS setting.
44314         (Depends-on): Add configmake, for PKGDATADIR definition.
44315
44316 2006-09-17  Bruno Haible  <bruno@clisp.org>
44317
44318         * gnulib-tool (func_create_testdir): Rewrite all files at once.
44319
44320 2006-09-17  Bruno Haible  <bruno@clisp.org>
44321
44322         * gnulib-tool (func_append): New function, stolen from libtool.m4.
44323         (func_modules_transitive_closure, func_modules_add_dummy,
44324         func_modules_to_filelist, func_import, func_create_testdir,
44325         func_create_megatestdir, ...): Use it wherever possible.
44326         Suggested by Ralf Wildenhues.
44327
44328 2006-09-16  Karl Berry  <karl@gnu.org>
44329
44330         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
44331         to avoid sectioning errors.
44332         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
44333         [ifinfo]: blank line after @center-ed titles.
44334         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
44335         Spell FSF address consistently with others.
44336         (These changes approved by rms.)
44337
44338 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44339
44340         Speed up by a factor of 1.61.
44341         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
44342         already checked module names again.
44343
44344 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44345
44346         Speed up by a factor of 1.13.
44347         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
44348         for new_files, and the input to func_add_or_update.
44349
44350 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44351
44352         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
44353         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
44354
44355 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44356
44357         * modules/mkancesdirs (Depends-on): Add fcntl.
44358         * modules/savewd: New file.
44359         * MODULES.html.sh (File system functions): Add savewd.
44360
44361         * modules/configmake (Makefile.am): Add support for the
44362         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
44363
44364 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44365
44366         * m4/savewd.m4: New file.
44367
44368 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44369
44370         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
44371         (dirchownmod): New arg FD.  All callers changed.
44372         Use FD rather than opening the directory ourself, as opening is
44373         now the caller's responsibility.
44374         * lib/dirchownmod.h: Likewise.
44375         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
44376         hosts that require <sys/types.h> before <sys/stat.h>.  Include
44377         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
44378         (test_dir): Remove.
44379         (mkancesdirs): Return length of prefix of FILE that has already
44380         been made, or -2 if there is a child doing the work.  Redo
44381         algorithm so that it is O(N) rather than O(N**2).  Optimize away
44382         ".", and treat ".." specially since it might stray back into
44383         already-created areas.  Use a subprocess if necessary.  New arg
44384         WD; all users changed.  MAKE_DIR function should now return 1
44385         if it creates a directory that is not readable.  Return -2 if
44386         a child process is spun off.
44387         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
44388         Adjust signature to match code.
44389         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
44390         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
44391         all users changed.
44392         * lib/savewd.c, lib/savewd.h: New files.
44393
44394 2006-09-15  Jim Meyering  <jim@meyering.net>
44395
44396         * modules/rename-dest-slash: New module.
44397         * MODULES.html.sh (posix_compat): Add it here.
44398
44399         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
44400
44401 2006-09-15  Jim Meyering  <jim@meyering.net>
44402
44403         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
44404         file.
44405
44406         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
44407
44408 2006-09-15  Jim Meyering  <jim@meyering.net>
44409
44410         * lib/rename-dest-slash.c (has_trailing_slash): Use
44411         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
44412         (rpl_rename_dest_slash): Perform the cheaper trailing slash
44413         test before testing whether SRC is a directory.
44414         Suggestions from Bruno Haible.
44415
44416         Avoid a warning about an unused variable.
44417         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
44418         into the #ifdef block where it's used.
44419
44420         * lib/rename-dest-slash.c: New file.
44421
44422 2006-09-14  Bruno Haible  <bruno@clisp.org>
44423
44424         * lib/allocsa.c: Include <config.h> unconditionally.
44425         * lib/asnprintf.c: Likewise.
44426         * lib/asprintf.c: Likewise.
44427         * lib/c-strcasecmp.c: Likewise.
44428         * lib/c-strcasestr.c: Likewise.
44429         * lib/c-strncasecmp.c: Likewise.
44430         * lib/c-strstr.c: Likewise.
44431         * lib/classpath.c: Likewise.
44432         * lib/clean-temp.c: Likewise.
44433         * lib/concatpath.c: Likewise.
44434         * lib/copy-file.c: Likewise.
44435         * lib/csharpcomp.c: Likewise.
44436         * lib/csharpexec.c: Likewise.
44437         * lib/execute.c: Likewise.
44438         * lib/fatal-signal.c: Likewise.
44439         * lib/findprog.c: Likewise.
44440         * lib/fwriteerror.c: Likewise.
44441         * lib/gl_array_list.c: Likewise.
44442         * lib/gl_array_oset.c: Likewise.
44443         * lib/gl_avltree_list.c: Likewise.
44444         * lib/gl_avltree_oset.c: Likewise.
44445         * lib/gl_avltreehash_list.c: Likewise.
44446         * lib/gl_carray_list.c: Likewise.
44447         * lib/gl_linked_list.c: Likewise.
44448         * lib/gl_linkedhash_list.c: Likewise.
44449         * lib/gl_list.c: Likewise.
44450         * lib/gl_oset.c: Likewise.
44451         * lib/gl_rbtree_list.c: Likewise.
44452         * lib/gl_rbtree_oset.c: Likewise.
44453         * lib/gl_rbtreehash_list.c: Likewise.
44454         * lib/imaxabs.c: Likewise.
44455         * lib/imaxdiv.c: Likewise.
44456         * lib/javacomp.c: Likewise.
44457         * lib/javaexec.c: Likewise.
44458         * lib/javaversion.c: Likewise.
44459         * lib/linebreak.c: Likewise.
44460         * lib/localcharset.c: Likewise.
44461         * lib/lock.c: Likewise.
44462         * lib/mbchar.c: Likewise.
44463         * lib/mbswidth.c: Likewise.
44464         * lib/mkdtemp.c: Likewise.
44465         * lib/pipe.c: Likewise.
44466         * lib/printf-args.c: Likewise.
44467         * lib/printf-parse.c: Likewise.
44468         * lib/progname.c: Likewise.
44469         * lib/progreloc.c: Likewise.
44470         * lib/readlink.c: Likewise.
44471         * lib/sh-quote.c: Likewise.
44472         * lib/stpcpy.c: Likewise.
44473         * lib/stpncpy.c: Likewise.
44474         * lib/strcasecmp.c: Likewise.
44475         * lib/strcasestr.c: Likewise.
44476         * lib/strcspn.c: Likewise.
44477         * lib/striconv.c: Likewise.
44478         * lib/strncasecmp.c: Likewise.
44479         * lib/strnlen1.c: Likewise.
44480         * lib/strstr.c: Likewise.
44481         * lib/strtok_r.c: Likewise.
44482         * lib/tls.c: Likewise.
44483         * lib/tmpdir.c: Likewise.
44484         * lib/unicodeio.c: Likewise.
44485         * lib/unsetenv.c: Likewise.
44486         * lib/vasnprintf.c: Likewise.
44487         * lib/vasprintf.c: Likewise.
44488         * lib/wait-process.c: Likewise.
44489         * lib/xallocsa.c: Likewise.
44490         * lib/xsetenv.c: Likewise.
44491         * lib/xstriconv.c: Likewise.
44492
44493 2006-09-13  Simon Josefsson  <jas@extundo.com>
44494
44495         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
44496         that internally, suggested by Ralf Wildenhues
44497         <Ralf.Wildenhues@gmx.de>.
44498
44499 2006-09-13  Simon Josefsson  <jas@extundo.com>
44500
44501         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
44502         @LIBOBJS@.
44503         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44504
44505 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44506
44507         * lib/_fpending.c: Include <config.h> unconditionally, since we no
44508         longer worry about uses that don't define HAVE_CONFIG_H.
44509         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
44510         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
44511         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
44512         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
44513         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
44514         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
44515         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
44516         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
44517         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
44518         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
44519         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
44520         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
44521         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
44522         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
44523         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
44524         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
44525         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
44526         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
44527         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
44528         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
44529         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
44530         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
44531         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
44532         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
44533         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
44534         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
44535         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
44536         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
44537         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
44538         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
44539         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
44540         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
44541         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
44542         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
44543         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
44544         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
44545         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
44546         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
44547         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
44548         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
44549         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
44550         Likewise.
44551
44552 2006-09-13  Eric Blake  <ebb9@byu.net>
44553
44554         * lib/getopt.c: Fix typo in last commit.
44555
44556 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44557
44558         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
44559         dgettext.
44560
44561 2006-09-12  Jim Meyering  <jim@meyering.net>
44562
44563         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
44564         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
44565         Reported by Nelson H. F. Beebe.
44566
44567 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44568
44569         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
44570         program_invocation_name and program_invocation_short_name are
44571         initialized.
44572         * lib/argp-namefrob.h: Move declarations of program_invocation_name
44573         and program_invocation_short_name to argp.h, so they are visible
44574         to user programs.
44575         * lib/argp.h: Likewise
44576
44577 2006-09-10  Bruno Haible  <bruno@clisp.org>
44578
44579         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44580         m4/inttypes_h.m4, m4/uintmax_t.m4.
44581
44582 2006-09-10  Bruno Haible  <bruno@clisp.org>
44583
44584         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
44585         gl_AC_TYPE_UINTMAX_T.
44586
44587 2006-09-10  Bruno Haible  <bruno@clisp.org>
44588
44589         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
44590
44591 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44592
44593         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
44594         convention.  Text proposed by Bruno Haible.
44595         (struct argp_option): Document the use of N_() wrappers.
44596
44597         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
44598         '\v', and translate the two parts separately, instead of feeding
44599         the whole string to gettext.  This allows to exclude
44600         '\v' from the strings visible to the translator by writing doc
44601         strings as N_("..") "\v" N_("..").
44602
44603 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
44604
44605         * config/srclist.txt: Undo latest change; the bug was fixed.
44606
44607 2006-09-09  Bruno Haible  <bruno@clisp.org>
44608
44609         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
44610         assignments if building a library without libtool.
44611         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
44612         in func_emit_lib_Makefile_am.
44613         (func_import): When building a static library libfoo.a, arrange to
44614         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
44615         (func_create_testdir): Likewise.
44616         * modules/gc (configure.ac, Makefile.am): If building statically,
44617         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44618         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44619         * modules/striconv (configure.ac, Makefile.am): Likewise.
44620         Based on a suggestion by Ralf Wildenhues.
44621
44622 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44623
44624         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44625         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44626         Also:
44627
44628         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44629         Add year_2050_test to catch glibc bug 2821
44630         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44631
44632         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44633         Prefer #ifdef to #if.
44634
44635         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44636         Return from 'main' instead of calling 'exit'.
44637
44638 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44639
44640         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44641         returned the maximum time_t value rather than (time_t) -1.
44642         Problem originally reported by William Bardwell
44643         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44644
44645         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44646         Moved to here ...
44647         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44648         ... from here.
44649
44650 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44651
44652         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44653         2821 is fixed.
44654
44655 2006-09-08  Jim Meyering  <jim@meyering.net>
44656
44657         Don't make generated files read-only.  That would bother too many
44658         people.  However, do retain the ability to work when targets are
44659         read-only: remove the destination and temporary files before writing
44660         them (when generated via sed or echo), or by using the -f option for
44661         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44662         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44663         * modules/byteswap, modules/configmake, modules/fcntl:
44664         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44665         * modules/localcharset, modules/netinet_in, modules/poll:
44666         * modules/stdbool, modules/stdint, modules/sys_select:
44667         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44668
44669 2006-09-08  Jim Meyering  <jim@meyering.net>
44670
44671         Avoid new build failure on FreeBSD 6.0.
44672         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44673         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44674         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44675
44676 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44677
44678         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44679
44680 2006-09-07  Jim Meyering  <jim@meyering.net>
44681
44682         Fix global typo in last change: use chmod u-w, not chmod u-x.
44683         Spotted by Paul Eggert and Bruce Korb.
44684         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44685         * modules/byteswap, modules/configmake, modules/fcntl:
44686         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44687         * modules/localcharset, modules/netinet_in, modules/poll:
44688         * modules/stdbool, modules/stdint, modules/sys_select:
44689         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44690
44691 2006-09-06  Jim Meyering  <jim@meyering.net>
44692
44693         Make generated files be read-only.
44694         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44695         Ensure that each generated file is now read-only.
44696         * modules/argz: Likewise.
44697         * modules/arpa_inet: Likewise.
44698         * modules/byteswap: Likewise.
44699         * modules/configmake: Likewise.
44700         * modules/fcntl: Likewise.
44701         * modules/fnmatch: Likewise.
44702         * modules/getopt: Likewise.
44703         * modules/glob: Likewise.
44704         * modules/inttypes: Likewise.
44705         * modules/netinet_in: Likewise.
44706         * modules/poll: Likewise.
44707         * modules/stdbool: Likewise.
44708         * modules/stdint: Likewise.
44709         * modules/sys_select: Likewise.
44710         * modules/sys_socket: Likewise.
44711         * modules/sys_stat: Likewise.
44712         * modules/sysexits: Likewise.
44713         * modules/localcharset: Same as above, but continue using temporary
44714         file named "t-$@" (why different?) rather than the "$@-t" used
44715         everywhere else.
44716
44717         * modules/sysexits (Makefile.am): Replace literal occurrences
44718         of "sysexit.h" more readable, and more consistent, "$@".
44719
44720 2006-09-06  Bruno Haible  <bruno@clisp.org>
44721
44722         * modules/striconv: New file.
44723         * modules/xstriconv: New file.
44724         * MODULES.html.sh (Internationalization functions): Add striconv,
44725         xstriconv.
44726
44727 2006-09-06  Bruno Haible  <bruno@clisp.org>
44728
44729         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44730         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44731         not using libtool correctly.
44732
44733 2006-09-06  Bruno Haible  <bruno@clisp.org>
44734
44735         * lib/striconv.h: New file.
44736         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44737         iconvstring.c.
44738         * lib/xstriconv.h: New file.
44739         * lib/xstriconv.c: New file.
44740
44741 2006-09-06  Bruno Haible  <bruno@clisp.org>
44742
44743         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44744         lib_..._LDFLAGS.
44745
44746 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44747
44748         * lib/argz_.h: Sync from Libtool.
44749
44750         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44751                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44752
44753         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44754
44755 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44756
44757         * modules/trim: New file.
44758
44759 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44760
44761         * lib/trim.h: New file.
44762         * lib/trim.c: New file.
44763
44764 2006-09-05  Bruno Haible  <bruno@clisp.org>
44765
44766         * MODULES.html.sh (String handling): Add trim.
44767
44768 2006-09-04  Karl Berry  <karl@gnu.org>
44769
44770         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44771         until next release.
44772
44773 2006-09-03  Bruno Haible  <bruno@clisp.org>
44774
44775         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44776         correctly.
44777
44778 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44779
44780         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44781         not gl_GETLOADAVG.  Omit unneeded semicolons.
44782         Problems reported by Ralf Wildenhues in
44783         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44784         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44785         at the end, which is the usual gnulib style.
44786
44787         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44788         of doing all the work ourselves.
44789         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44790         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44791
44792 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44793
44794         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44795         Problem reported by Ralf Wildenhues in
44796         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44797
44798         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44799         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44800
44801 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44802
44803         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44804         yesterday's patch by changing test -n to test -z.
44805
44806 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44807
44808         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44809         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44810         the former is now obsolescent.
44811
44812         * modules/chdir-long (Depends-on): Add fcntl.
44813
44814 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44815
44816         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44817         obsolescent, and programs should use gnulib instead.
44818         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44819         but with prefixes changed.
44820
44821 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44822
44823         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44824         or stdbool.h, because they might not exist while configuring.
44825
44826         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44827         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44828         does that for us.
44829         (O_DIRECTORY): Remove.
44830
44831 2006-08-31  Eric Blake  <ebb9@byu.net>
44832
44833         * gnulib-tool: Don't let emacs change spaces to TAB.
44834
44835 2006-08-31  Bruno Haible  <bruno@clisp.org>
44836
44837         * gnulib-tool: When calling func_import more than once, do it in a
44838         subshell.
44839         Reported by Eric Blake <ebb9@byu.net>.
44840
44841 2006-08-31  Bruno Haible  <bruno@clisp.org>
44842
44843         * gnulib-tool (nl): Remove variable.
44844         (sed_transform_lib_file): Use more robust test for config-h module.
44845         (func_import): Fix typo in 2006-08-25 patch.
44846
44847 2006-08-31  Bruno Haible  <bruno@clisp.org>
44848
44849         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44850         specified, augment Makefile.am variables instead of assigning them.
44851
44852 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44853
44854         Work around a bug in both the Linux and SunOS 64-bit kernels:
44855         nanosleep mishandles sleeps for longer than 2**31 seconds.
44856         Problem reported by Frank v Waveren in
44857         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44859         Check for nanosleep bug.
44860         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44861
44862 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44863
44864         Work around a bug in both the Linux and SunOS 64-bit kernels:
44865         nanosleep mishandles sleeps for longer than 2**31 seconds.
44866         Problem reported by Frank v Waveren in
44867         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44868         * lib/nanosleep.c (BILLION): New constant.
44869         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44870         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44871         implementation.
44872
44873 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44874
44875         * modules/nanosleep (Depends-on): Add gettime.
44876
44877 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44878         and Simon Josefsson  <jas@extundo.com>
44879         and Oskar Liljeblad  <oskar@osk.mine.nu>
44880
44881         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44882         * gnulib-tool (func_import): New license type 'unmodifiable license
44883         text'.
44884         * modules/fdl: Use it.  Longer description.
44885         * module/gpl, module/lgpl: New files.
44886
44887 2006-08-30  Jim Meyering  <jim@meyering.net>
44888
44889         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44890         shadowing the parameter.
44891
44892 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44893
44894         Sync from Libtool:
44895
44896         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44897
44898         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44899         sharing with gnulib.  Report by Eric Blake.
44900
44901 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44902
44903         * modules/isapipe: New file.
44904         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44905
44906 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44907
44908         * modules/configmake (Makefile.am): Add a comment, and omit
44909         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44910         by Bruno Haible.
44911
44912 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44913
44914         * m4/isapipe.m4: New file.
44915
44916 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44917
44918         * lib/isapipe.c, lib/isapipe.h: New files.
44919
44920 2006-08-29  Jim Meyering  <jim@meyering.net>
44921
44922         * modules/configmake (Makefile.am): Make configmake.h depend on
44923         Makefile.  Otherwise, a stale configmake.h could hang around.
44924
44925 2006-08-29  Eric Blake  <ebb9@byu.net>
44926
44927         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44928         resolution of upstream bug 3044.
44929
44930 2006-08-29  Bruno Haible  <bruno@clisp.org>
44931
44932         * modules/localcharset (Depends-on): Add configmake.
44933         (Makefile.am): Remove setting of LIBDIR through DEFS.
44934
44935 2006-08-29  Bruno Haible  <bruno@clisp.org>
44936
44937         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44938         defined.
44939
44940 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44941
44942         * modules/fcntl: New file.
44943         * modules/chdir-safer (Depends-on): Add fcntl.
44944         * modules/fts: Likewise.
44945         * modules/mkdir-p: Likewise.
44946
44947         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44948         This undoes the most recent change, since we're now addressing the
44949         problem in a different way.
44950
44951         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44952         into output, since the output might be called Makefile.am even
44953         if $makefile_name is something different.
44954         (func_import): Use $makefile_am rather than
44955         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44956         empty.
44957
44958         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44959
44960 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44961
44962         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44963         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44964         recent change to stdint.m4, since we're now addressing the problem in a
44965         different way.
44966
44967 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44968
44969         * m4/fcntl_h.m4: New file.
44970
44971 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44972
44973         * lib/fcntl_.h: New file.
44974         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44975         the fcntl module.
44976         * lib/dirchownmod.c: Likewise.
44977         * lib/fts.c: Likewise.
44978
44979         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44980         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44981         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44982         just before including <inttypes.h>, to avoid circular inclusion.
44983
44984 2006-08-28  Jim Meyering  <jim@meyering.net>
44985
44986         * doc/visibility.texi: Actually read and correct the grammar of the
44987         sentence affected by yesterday's change.
44988
44989 2006-08-28  Eric Blake  <ebb9@byu.net>
44990
44991         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44992         needs wrapper.
44993
44994 2006-08-28  Eric Blake  <ebb9@byu.net>
44995
44996         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44997
44998 2006-08-28  Eric Blake  <ebb9@byu.net>
44999
45000         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
45001
45002 2006-08-28  Bruno Haible  <bruno@clisp.org>
45003
45004         * modules/c-strstr: New file, from GNU gettext.
45005         * MODULES.html.sh (String handling): Add c-strstr.
45006
45007 2006-08-28  Bruno Haible  <bruno@clisp.org>
45008
45009         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
45010         macros.
45011         Reported by Eric Blake.
45012
45013 2006-08-28  Bruno Haible  <bruno@clisp.org>
45014
45015         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
45016         (VASNPRINTF): Return a string of length > INT_MAX without failing.
45017         * lib/vasprintf.c: Include errno.h, limits.h.
45018         (EOVERFLOW): New fallback definition.
45019         (vasprintf): Test here whether the string length is > INT_MAX.
45020         * lib/vsnprintf.c: Include errno.h, limits.h.
45021         (EOVERFLOW): New fallback definition.
45022         (vsnprintf): Fix bug when generated string was too long for the buffer.
45023         Test here whether the string length is > INT_MAX.
45024
45025 2006-08-28  Bruno Haible  <bruno@clisp.org>
45026
45027         * lib/inttypes_.h (SCNX*): Remove definitions.
45028         Reported by Eric Blake.
45029
45030 2006-08-28  Bruno Haible  <bruno@clisp.org>
45031
45032         * lib/c-strstr.h: New file, from GNU gettext.
45033         * lib/c-strstr.c: New file, from GNU gettext.
45034
45035 2006-08-28  Bruno Haible  <bruno@clisp.org>
45036
45037         * gnulib-tool: Reorder some statements.
45038
45039 2006-08-28  Bruno Haible  <bruno@clisp.org>
45040
45041         * gnulib-tool: New option --makefile-name.
45042         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
45043         $makefile_name.
45044         (func_import): Write $makefile_name to the cache file, and read it from
45045         there unless explicitly specified. Use $makefile_name as file name
45046         instead of Makefile.am. Adjust the recommendations accordingly.
45047
45048 2006-08-28  Bruno Haible  <bruno@clisp.org>
45049
45050         * gnulib-tool (func_verify_module): Check against misapplying patch.
45051
45052 2006-08-28  Bruno Haible  <bruno@clisp.org>
45053
45054         * gnulib-tool (func_relativize, func_relconcat): New functions.
45055         Give an error if --local-dir is given with --update.
45056         Remove trailing slashes from $local_gnulib_dir.
45057         (func_import): Store the relativized $local_gnulib_dir in
45058         gnulib-cache.m4, and read it from there if not specified explicitly.
45059
45060 2006-08-28  Bruno Haible  <bruno@clisp.org>
45061
45062         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
45063         is the current directory. Respect also $local_gnulib_dir.
45064
45065 2006-08-28  Bruno Haible  <bruno@clisp.org>
45066             Simon Josefsson  <jas@extundo.com>
45067
45068         BeOS portability.
45069         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
45070
45071 2006-08-27  Jim Meyering  <jim@meyering.net>
45072
45073         * doc/visibility.texi: Remove duplicate word: "pointer".
45074
45075 2006-08-26  Bruno Haible  <bruno@clisp.org>
45076
45077         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
45078         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
45079         (Makefile.am): Create inttypes.h from inttypes_.h.
45080         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
45081
45082         * modules/imaxabs: New file.
45083
45084         * modules/imaxdiv: New file.
45085
45086 2006-08-26  Bruno Haible  <bruno@clisp.org>
45087
45088         * m4/inttypes.m4: New file.
45089         * m4/_inttypes_h.m4: Remove file.
45090         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
45091         PRI_MACROS_BROKEN.
45092         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
45093
45094         * m4/imaxabs.m4: New file.
45095
45096         * m4/imaxdiv.m4: New file.
45097
45098 2006-08-26  Bruno Haible  <bruno@clisp.org>
45099
45100         * lib/inttypes_.h: New file.
45101         * lib/inttypes.h: Remove file.
45102         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
45103
45104         * lib/imaxabs.c: New file.
45105
45106         * lib/imaxdiv.c: New file.
45107
45108 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
45109
45110         New config-h module, so that "make" output needn't be cluttered
45111         by -DHAVE_CONFIG_H.
45112         * MODULES.html.sh (Support for building libraries and executables):
45113         Add config-h.
45114         * modules/config-h: New file.
45115         * gnulib-tool (nl, sed_transform_lib_file): New vars.
45116         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
45117         the config-h module is used.
45118
45119         New configmake module, so that "make" output needn't be cluttered
45120         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
45121         * MODULES.html.sh (Support for building libraries and executables):
45122         Add configmake.
45123         * modules/configmake: New file.
45124
45125 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
45126
45127         * m4/config-h.m4: New file.
45128
45129 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
45130
45131         * config/srclist.txt: Add elisp-comp.
45132
45133 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
45134
45135         * MODULES.html.sh (Support for building libraries and executables):
45136         Add elisp-comp.
45137         * build-aux/elisp-comp: New file.
45138         * modules/elisp-comp: New file.
45139
45140 2006-08-24  Bruno Haible  <bruno@clisp.org>
45141
45142         * gnulib-tool (func_create_testdir): Use non-default values of
45143         sourcebase and m4base.
45144
45145 2006-08-24  Bruno Haible  <bruno@clisp.org>
45146
45147         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
45148         HTML structure.
45149
45150 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
45151
45152         * modules/openat (Depends-on): Add lchown.
45153
45154 2006-08-23  Bruno Haible  <bruno@clisp.org>
45155
45156         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
45157         of gl_LOCK_EARLY instead of gl_LOCK.
45158
45159 2006-08-23  Bruno Haible  <bruno@clisp.org>
45160
45161         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
45162         on OSF/1 to no.
45163         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
45164
45165 2006-08-23  Bruno Haible  <bruno@clisp.org>
45166
45167         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
45168         as unusable.
45169
45170         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
45171         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
45172         (gl_LOCK): New macro.
45173
45174 2006-08-22  Simon Josefsson  <jas@extundo.com>
45175
45176         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
45177         to md5 module.
45178
45179 2006-08-22  Simon Josefsson  <jas@extundo.com>
45180
45181         * MODULES.html.sh: Add "Support for maintaining and release
45182         projects".
45183
45184         * build-aux/gnupload: New file, from coreutils.
45185
45186 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
45187
45188         Avoid the need for AC_LIBSOURCES in m4 macros.
45189         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
45190         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
45191         * modules/check-version (EXTRA_DIST): Add check-version.h.
45192         * modules/crc (EXTRA_DIST): Add crc.h.
45193         * modules/des (EXTRA_DIST): Add des.h.
45194         * modules/gc (EXTRA_DIST): Add gc.h.
45195         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
45196         * modules/getline (EXTRA_DIST): Add getline.h.
45197         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
45198         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
45199         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
45200         * modules/md2 (EXTRA_DIST): Add md2.h.
45201         * modules/md4 (EXTRA_DIST): Add md4.h.
45202         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
45203         * modules/read-file (EXTRA_DIST): Add read-file.h.
45204         * modules/readline (EXTRA_DIST): Add readline.h.
45205         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
45206         rijndael-api-fst.h.
45207
45208 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
45209
45210         * m4/rijndael.m4 (gl_ARCFOUR):
45211         * m4/arctwo.m4 (gl_ARCTWO):
45212         * m4/check-version.m4 (gl_CHECK_VERSION):
45213         * m4/crc.m4 (gl_CRC):
45214         * m4/des.m4 (gl_DES):
45215         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
45216         * m4/gc.m4 (gl_GC):
45217         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
45218         * m4/getline.m4 (gl_FUNC_GETLINE):
45219         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
45220         * m4/hmac-md5.m4 (gl_HMAC_MD5):
45221         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
45222         * m4/md2.m4 (gl_MD2):
45223         * m4/md4.m4 (gl_MD4):
45224         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
45225         * m4/read-file.m4 (gl_FUNC_READ_FILE):
45226         * m4/readline.m4 (gl_FUNC_READLINE):
45227         * m4/rijndael.m4 (gl_RIJNDAEL):
45228         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
45229         to get the necessary .h files and whatnot.
45230
45231 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
45232
45233         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
45234         gnulib rather than the other way around.
45235         * config/srclistvars.sh (COREUTILS): Remove.
45236
45237 2006-08-22  Jim Meyering  <jim@meyering.net>
45238
45239         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
45240
45241         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
45242
45243 2006-08-22  Eric Blake  <ebb9@byu.net>
45244
45245         * modules/regexprops-generic: New file.
45246         * MODULES.html.sh (Support for building documentation): List it.
45247
45248 2006-08-22  Eric Blake  <ebb9@byu.net>
45249
45250         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
45251         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45252         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
45253         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
45254
45255 2006-08-22  Bruno Haible  <bruno@clisp.org>
45256
45257         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
45258         and lib_LTLIBRARIES like the other lib_* variables.
45259
45260 2006-08-22  Bruno Haible  <bruno@clisp.org>
45261
45262         * build-aux/x-to-1.in: New file, from GNU gettext.
45263
45264 2006-08-22  Bruno Haible  <bruno@clisp.org>
45265
45266         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
45267         <utmpx.h> exists.
45268
45269 2006-08-22  Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
45272         <utmpx.h> exists.
45273
45274 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45275
45276         BeOS portability.
45277         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
45278         exist.
45279         Problem reported by Bruno Haible.
45280
45281 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45282
45283         Avoid the need for AC_LIBSOURCES in m4 macros.
45284         * modules/acl (EXTRA_DIST): Add acl.h.
45285         * modules/argmatch (Files): Add m4/argmatch.m4.
45286         (configure.ac): Add gl_ARGMATCH.
45287         (EXTRA_DIST): Renamed from lib_SOURCES, for
45288         consistency with the other modules.  Remove argmatch.c.
45289         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
45290         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
45291         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
45292         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
45293         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
45294         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
45295         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
45296         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
45297         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
45298         * modules/closeout (EXTRA_DIST): Add closeout.h.
45299         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
45300         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
45301         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
45302         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
45303         dirname.h; remove basename.c and stripslash.c.
45304         * modules/exclude (EXTRA_DIST): Add exclude.h.
45305         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
45306         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
45307         * modules/file-type (EXTRA_DIST): Add file-type.h.
45308         * modules/filemode (EXTRA_DIST): Add filemode.h.
45309         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
45310         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
45311         * modules/fpending (EXTRA_DIST): Add __fpending.h.
45312         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
45313         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
45314         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
45315         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
45316         * modules/getdate (EXTRA_DIST): Add getdate.c.
45317         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
45318         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
45319         * modules/getpass (EXTRA_DIST): Add getpass.h.
45320         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
45321         * modules/group-member (EXTRA_DIST): Add group-member.h.
45322         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
45323         * modules/hash (EXTRA_DIST): Add hash.h.
45324         * modules/human (EXTRA_DIST): Add human.h.
45325         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
45326         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
45327         * modules/lchown (EXTRA_DIST): Add lchown.h.
45328         * modules/long-options (EXTRA_DIST): Add long-options.h.
45329         * modules/lstat (EXTRA_DIST): Add lstat.h.
45330         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
45331         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
45332         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
45333         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
45334         * modules/memxor (EXTRA_DIST): Add memxor.h.
45335         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
45336         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
45337         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
45338         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
45339         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
45340         * modules/physmem (EXTRA_DIST): Add physmem.h.
45341         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
45342         * modules/posixver (EXTRA_DIST): Add posixver.h.
45343         * modules/quote (EXTRA_DIST): Add quote.h.
45344         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
45345         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
45346         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
45347         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
45348         regex_internal.h regexec.c.
45349         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
45350         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
45351         * modules/same (EXTRA_DIST): Add same.h.
45352         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
45353         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
45354         * modules/savedir (EXTRA_DIST): Add savedir.h.
45355         * modules/sha1 (EXTRA_DIST): Add sha1.h.
45356         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
45357         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
45358         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
45359         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
45360         * modules/strdup (EXTRA_DIST): Add strdup.h.
45361         * modules/strftime (EXTRA_DIST): Add strftime.h.
45362         * modules/strndup (EXTRA_DIST): Add strndup.h.
45363         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
45364         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
45365         * modules/time_r (EXTRA_DIST): Add time_r.h.
45366         * modules/timespec (EXTRA_DIST): Add timespec.h.
45367         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
45368         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
45369         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
45370         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
45371         * modules/userspec (EXTRA_DIST): Add userspec.h.
45372         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
45373         * modules/utimens (EXTRA_DIST): Add utimens.h.
45374         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
45375         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
45376         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
45377         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
45378         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
45379         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
45380         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
45381         * modules/yesno (EXTRA_DIST): Add yesno.h.
45382
45383 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45384
45385         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
45386
45387         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
45388         * m4/dev-ino.m4, same-inode.m4: Remove.
45389
45390         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
45391         * m4/acl.m4 (AC_FUNC_ACL):
45392         * m4/backupfile.m4 (gl_BACKUPFILE):
45393         * m4/c-strtod.m4 (gl_C99_STRTOLD):
45394         * m4/canon-host.m4 (gl_CANON_HOST):
45395         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45396         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
45397         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
45398         * m4/cloexec.m4 (gl_CLOEXEC):
45399         * m4/close-stream.m4 (gl_CLOSE_STREAM):
45400         * m4/closeout.m4 (gl_CLOSEOUT):
45401         * m4/dirfd.m4 (gl_FUNC_DIRFD):
45402         * m4/dirname.m4 (gl_DIRNAME):
45403         * m4/exclude.m4 (gl_EXCLUDE):
45404         * m4/exitfail.m4 (gl_EXITFAIL):
45405         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
45406         * m4/file-type.m4 (gl_FILE_TYPE):
45407         * m4/filemode.m4 (gl_FILEMODE):
45408         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
45409         * m4/fpending.m4 (gl_FUNC_FPENDING):
45410         * m4/fprintftime.m4 (gl_FPRINTFTIME):
45411         * m4/fts.m4 (gl_FUNC_FTS):
45412         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
45413         * m4/getdate.m4 (gl_GETDATE):
45414         * m4/gethrxtime.m4 (gl_GETHRXTIME):
45415         * m4/getpagesize.m4 (gl_GETPAGESIZE):
45416         * m4/getpass.m4 (gl_FUNC_GETPASS):
45417         * m4/gettime.m4 (gl_GETTIME):
45418         * m4/getugroups.m4 (gl_GETUGROUPS):
45419         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
45420         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
45421         * m4/hard-locale.m4 (gl_HARD_LOCALE):
45422         * m4/hash.m4 (gl_HASH):
45423         * m4/idcache.m4 (gl_IDCACHE):
45424         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
45425         * m4/lchown.m4 (gl_FUNC_LCHOWN):
45426         * m4/long-options.m4 (gl_LONG_OPTIONS):
45427         * m4/lstat.m4 (gl_FUNC_LSTAT):
45428         * m4/md5.m4 (gl_MD5):
45429         * m4/memcasecmp.m4 (gl_MEMCASECMP):
45430         * m4/memcoll.m4 (gl_MEMCOLL):
45431         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
45432         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
45433         * m4/memxor.m4 (gl_MEMXOR):
45434         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
45435         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
45436         * m4/modechange.m4 (gl_MODECHANGE):
45437         * m4/mountlist.m4 (gl_MOUNTLIST):
45438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45439         * m4/openat.m4 (gl_FUNC_OPENAT):
45440         * m4/pathmax.m4 (gl_PATHMAX):
45441         * m4/physmem.m4 (gl_PHYSMEM):
45442         * m4/posixtm.m4 (gl_POSIXTM):
45443         * m4/posixver.m4 (gl_POSIXVER):
45444         * m4/quote.m4 (gl_QUOTE):
45445         * m4/quotearg.m4 (gl_QUOTEARG):
45446         * m4/readtokens.m4 (gl_READTOKENS):
45447         * m4/readutmp.m4 (gl_READUTMP):
45448         * m4/regex.m4 (gl_REGEX):
45449         * m4/safe-read.m4 (gl_SAFE_READ):
45450         * m4/safe-write.m4 (gl_SAFE_WRITE):
45451         * m4/same.m4 (gl_SAME):
45452         * m4/save-cwd.m4 (gl_SAVE_CWD):
45453         * m4/savedir.m4 (gl_SAVEDIR):
45454         * m4/settime.m4 (gl_SETTIME):
45455         * m4/sha1.m4 (gl_SHA1):
45456         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
45457         * m4/stat-macros.m4 (gl_STAT_MACROS):
45458         * m4/stat-time.m4 (gl_STAT_TIME):
45459         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
45460         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
45461         * m4/strdup.m4 (gl_FUNC_STRDUP):
45462         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
45463         * m4/strndup.m4 (gl_FUNC_STRNDUP):
45464         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
45465         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
45466         * m4/time_r.m4 (gl_TIME_R):
45467         * m4/timespec.m4 (gl_TIMESPEC):
45468         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
45469         * m4/unlinkdir.m4 (gl_UNLINKDIR):
45470         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
45471         * m4/userspec.m4 (gl_USERSPEC):
45472         * m4/utimecmp.m4 (gl_UTIMECMP):
45473         * m4/utimens.m4 (gl_UTIMENS):
45474         * m4/xalloc.m4 (gl_XALLOC):
45475         * m4/xgetcwd.m4 (gl_XGETCWD):
45476         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
45477         * m4/xreadlink.m4 (gl_XREADLINK):
45478         * m4/xstrtod.m4 (gl_XSTRTOD):
45479         * m4/yesno.m4 (gl_YESNO):
45480         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
45481         to get the necessary .h files and whatnot.
45482
45483 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
45484             Bruno Haible  <bruno@clisp.org>
45485
45486         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
45487         /bin/sh understanding of '!' conditional negation.
45488
45489 2006-08-21  Jim Meyering  <jim@meyering.net>
45490
45491         * modules/openat (Depends-on): Really alphabetize.
45492
45493         * modules/acl (Depends-on): Add error and quote.
45494
45495         * check-module (find_included_lib_files): Add at-func.c to the
45496         ok-to-include-more-than-once white list.
45497
45498         * modules/openat (Depends-on): Add lstat.  Alphabetize.
45499
45500 2006-08-21  Bruno Haible  <bruno@clisp.org>
45501
45502         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45503         Emit a pkgdata_DATA variable only if some snippets add contents to it.
45504         Reported by Martin Lambers <marlam@marlam.de>.
45505
45506 2006-08-21  Bruno Haible  <bruno@clisp.org>
45507
45508         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
45509         specify an installation location, don't emit a noinst_LIBRARIES or
45510         noinst_LTLIBRARIES assignment.
45511
45512 2006-08-21  Bruno Haible  <bruno@clisp.org>
45513
45514         BeOS portability.
45515         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
45516         BeOS has mbrtowc() but no <wctype.h>.
45517
45518 2006-08-21  Bruno Haible  <bruno@clisp.org>
45519
45520         BeOS portability.
45521         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
45522         exist.
45523
45524 2006-08-21  Bruno Haible  <bruno@clisp.org>
45525
45526         BeOS portability.
45527         * lib/mbchar.h: Include <wctype.h> only if it exists.
45528
45529 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45530
45531         Remove files that are no longer needed by their respective modules.
45532         * m4/obstack.m4: Remove.
45533         * m4/strerror_r.m4: Remove.
45534         * m4/uint32_t.m4: Remove.
45535         * m4/uintptr_t.m4: Remove.
45536         * m4/ullong_max.m4: Remove.
45537         * m4/xstrtoimax.m4: Remove.
45538         * m4/xstrtoumax.m4: Remove.
45539
45540         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
45541         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
45542         dependencies now capture this.
45543
45544         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
45545         Do not use AC_LIBSOURCES, since gnulib modules now do this.
45546         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
45547         * m4/human.m4 (gl_HUMAN): Likewise.
45548         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
45549         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
45550
45551         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
45552
45553         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
45554         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
45555         stdint.
45556         * m4/human.m4 (gl_HUMAN): Likewise.
45557         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
45558         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
45559         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45560         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45561         * m4/xstrtol (gl_XSTRTOL): Likewise.
45562
45563         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
45564         AC_TYPE_LONG_LONG_INT.
45565         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45566         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
45567         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
45568         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45569
45570         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
45571         on stdbool.
45572
45573         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
45574         (gl_PREREQ_XSTRTOUL): Remove.
45575
45576         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
45577
45578         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
45579         mode.
45580
45581 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45582
45583         Add and change modules to make it easier for coreutils to use
45584         gnulib-tool.
45585         * modules/backupfile (Files): Remove m4/d-ino.m4.
45586         (Depends-on): Add d-ino.
45587         * modules/cycle-check (Depends-on): Add stdint.
45588         (lib_SOURCES): Add cycle-check.h.
45589         * modules/d-ino: New module.
45590         * modules/d-type: New module.
45591         * modules/error (Files): Remove m4/strerror_r.m4.
45592         * modules/filemode (Files): Add m4/st_dm_mode.m4.
45593         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
45594         m4/inttypes_h.m4, m4/uintmax_t.m4.
45595         (Depends-on): Add stdint.
45596         (lib_SOURCES): Add fsusage.h.
45597         * modules/getcwd (Files): Remove d-ino.m4.
45598         (Depends-on): Add d-ino.
45599         * modules/getndelim2 (Depends-on): Add stdint.
45600         * modules/glob (Files): Remove m4/d-type.m4.
45601         (Depends-on): Add d-type.
45602         * modules/host-os: New module.
45603         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
45604         m4/inttypes_h.m4, m4/uintmax_t.m4.
45605         * Depends-on: Add stdint.
45606         (lib_SOURCES): Add human.h.
45607         * modules/inttostr (Files): Remove m4/intmax_t.m4,
45608         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
45609         m4/uintmax_t.m4, m4/ulonglong.m4.
45610         (Depends-on): Add stdint.
45611         (EXTRA_DIST): Add inttostr.h.
45612         * modules/lchmod: New module.
45613         * modules/link-follow: New module.
45614         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
45615         (Depends-on): Add lchmod.
45616         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
45617         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45618         (Depends-on): Add stdint.
45619         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45620         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45621         (Depends-on): Add stdint.
45622         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45623         * modules/perl: New module.
45624         * modules/regex (Depends-on): Add stdint.
45625         * modules/rmdir-errno: New module.
45626         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45627         m4/intmax_t.m4.
45628         (Depends-on): Add stdint.
45629         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45630         m4/uintmax_t.m4.
45631         (Depends-on): Add stdint.
45632         * modules/unlink-busy: New module.
45633         * modules/utimecmp (Depends-on): Add stdint.
45634         * modules/uptime: New module.
45635         * modules/winsz-ioctl: New module.
45636         * modules/winsz-termios: New module.
45637         * modules/xnanosleep (Depends-on): Add nanosleep.
45638         * modules/ullong_max: Remove.
45639         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45640         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45641         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45642         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45643         (Depends-on): Add inttypes.
45644         (lib_SOURCES): Add xstrtol.h.
45645         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45646         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45647         * MODULES.html.sh: Move 'assert' into the assert section.
45648         Move 'dummy' into the linking section.
45649         Remove ullong_max.
45650         Add section for compatibility checks for POSIX:2001 functions,
45651         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45652         winsz-ioctl, and winsz-termios into it.
45653         Add lchmod.
45654         Add top-level Misc section and put host-os, perl, and uptime
45655         into it.
45656
45657 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45658
45659         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45660         now assume the stdint module.  Do not include inttypes.h.
45661         * lib/fsusage.h: Likewise.
45662         * lib/getndelim2.c: Likewise.
45663         * lib/human.h: Likewise.
45664         * lib/inttostr.h: Likewise.
45665         * lib/obstack.c: Likewise.
45666         * lib/regex_internal.h: Likewise.
45667         * lib/tempname.c: Likewise.
45668         * lib/utimecmp.c: Likewise.
45669         * lib/xstrtol.h: Likewise.
45670
45671         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45672
45673         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45674         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45675         * lib/xtime.h: Likewise.
45676
45677 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45678
45679         * modules/openat (Files): Add lib/fchmodat.c.
45680         Fixes problem reported by Jay Youngman.
45681
45682 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45683
45684         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45685         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45686
45687 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45688             Bruno Haible  <bruno@clisp.org>
45689
45690         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45691         and is a script that invokes bison. Tighten the code. Add comments.
45692
45693 2006-08-18  Jim Meyering  <jim@meyering.net>
45694
45695         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45696         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45697         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45698         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45699
45700 2006-08-18  Bruno Haible  <bruno@clisp.org>
45701
45702         * modules/bison-i18n: New file.
45703         * MODULES.html.sh (Internationalization functions): Add it.
45704
45705 2006-08-18  Bruno Haible  <bruno@clisp.org>
45706
45707         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45708         sys/statvfs.h. When getmntinfo was found, check its declaration and
45709         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45710
45711 2006-08-18  Bruno Haible  <bruno@clisp.org>
45712
45713         * m4/bison-i18n.m4: New file, from bison.
45714
45715 2006-08-18  Bruno Haible  <bruno@clisp.org>
45716
45717         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45718         (ME_DUMMY): Treat "kernfs" as a dummy.
45719         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45720
45721 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45722
45723         Update from coreutils.
45724
45725         2006-08-15  Jim Meyering  <jim@meyering.net>
45726
45727         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45728
45729         2006-01-17  Jim Meyering  <jim@meyering.net>
45730
45731         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45732
45733         2006-01-11  Jim Meyering  <jim@meyering.net>
45734
45735         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45736         Check for the lchmod function.
45737
45738 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45739
45740         Update from coreutils.
45741
45742         * lib/__fpending.h: Add copyright notice.
45743         * lib/fprintftime.h: Likewise.
45744         * lib/savedir.c: Use (C) in copyright notice.
45745         * lib/savedir.h: Likewise.
45746
45747         2006-08-15  Jim Meyering  <jim@meyering.net>
45748
45749         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45750         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45751         in support of the EXPECTED_ERRNO macro.
45752         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45753         definitions.  Instead, define the appropriate symbols and include
45754         "at-func.c".
45755         * lib/mkdirat.c (mkdirat): Likewise.
45756         * lib/fchmodat.c (fchmodat): Likewise.
45757         (ENOSYS): Remove definition.
45758         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45759         it.  Don't include "unistd--.h" -- it wasn't ever used.
45760
45761         2006-01-17  Jim Meyering  <jim@meyering.net>
45762
45763         Rewrite fts.c not to change the current working directory,
45764         by using openat, fstatat, fdopendir, etc..
45765
45766         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45767         (HAVE_OPENAT_SUPPORT): Define.
45768         [_LIBC] (fchdir): Don't undef or define; no longer used.
45769         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45770         Now, this `function' always succeeds, and consumes its file descriptor
45771         parameter -- so callers must not close such FDs.  Update callers.
45772         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45773         (diropen): Add parameter, SP.  Adjust all callers.
45774         Implement using diropen_fd, rather than open.
45775         (fts_open): Initialize new member, fts_cwd_fd.
45776         Remove fts_rft-setting code.
45777         (fts_close): Close fts_cwd_fd, if necessary.
45778         (__opendir2): Define in terms of opendir or opendirat,
45779         depending on whether the FST_NOCHDIR flag is set.
45780         (fts_build): Since fts_safe_changedir consumes its FD, and since
45781         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45782         and close the dup'd file descriptor upon failure.
45783         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45784         (fts_safe_changedir): Tweak semantics to reflect that this function
45785         now calls cwd_advance_fd and hence consumes its FD argument.
45786         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45787         [struct FTS] (fts_rft): Remove now-unused member.
45788         [struct FTS] (fts_cycle.state): Improve comment.
45789
45790         * lib/openat.c (openat_needs_fchdir): New function.
45791         * lib/openat.h (openat_needs_fchdir): Declare it.
45792
45793 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45794
45795         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45796         Problem and fix reported by Pádraig Brady in
45797         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45798
45799 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45800
45801         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45802
45803 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45804
45805         * lib/memcoll.c (memcoll): Optimize for the common case where the
45806         arguments are bytewise equal.
45807
45808 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45809
45810         * doc/regexprops-generic.texi: Add a copyright notice.
45811
45812 2006-08-15  Bruno Haible  <bruno@clisp.org>
45813
45814         * modules/tmpdir (License): Change to LGPL.
45815
45816 2006-08-15  Bruno Haible  <bruno@clisp.org>
45817
45818         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45819         module.
45820
45821 2006-08-14  Simon Josefsson  <jas@extundo.com>
45822
45823         * config/srclist.txt: Add gnupload.
45824
45825 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45826
45827         Change copyright notice from LGPL 2 to GPL 2, since that's the
45828         standard form used in the gnulib repository.
45829         * tests/test-lock.c: Likewise.
45830         * tests/test-stdint.c: Likewise.
45831         * tests/test-tls.c: Likewise.
45832
45833         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45834         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45835         Add copyright notice.
45836
45837         * check-module: Add copyright notice.  Output a copyright
45838         notice if "--version" is specified.
45839         * modules/COPYING: New file.
45840         * tests/test-getaddrinfo.c: Add copyright notice.
45841         * tests/test-verify.c: Likewise.
45842
45843 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45844
45845         Change copyright notice from LGPL 2 to GPL 2, since that's the
45846         standard form used in the gnulib repository.
45847         * lib/lock.c: LGPL -> GPL.
45848         * lib/lock.h: Likewise.
45849         * lib/strnlen1.c: Likewise.
45850         * lib/strnlen1.h: Likewise.
45851         * lib/tls.c: Likewise.
45852         * lib/tls.h: Likewise.
45853         * lib/tmpdir.c: Likewise.
45854
45855         * lib/TODO: Remove; this belongs only in coreutils.
45856
45857 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45858
45859         Add copyright notices to long-enough files that lack them, since
45860         otherwise the files aren't clearly free.  Use the same notice that
45861         getdate.texi already uses.
45862         * doc/alloca-opt.texi: Add copyright notice.
45863         * doc/alloca.texi: Likewise.
45864         * doc/ctime.texi: Likewise.
45865         * doc/functions.texi: Likewise.
45866         * doc/gcd.texi: Likewise.
45867         * doc/gnulib-tool.texi: Likewise.
45868         * doc/inet_ntoa.texi: Likewise.
45869         * doc/visibility.texi: Likewise.
45870
45871         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45872         * doc/quote.texi: Add copyright notice.
45873
45874         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45875         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45876         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45877         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45878         is now obsolete, and give a pointer to the Sun list.
45879         Add copyright notice.
45880
45881 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45882
45883         * config/srclistvars.sh: Add copyright notice.
45884
45885 2006-08-14  Eric Blake  <ebb9@byu.net>
45886
45887         Import the following change from libc:
45888
45889         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45890
45891         Upstream bug 2997.
45892         * lib/misc/error.c: Add space between program name and message if file
45893         name is missing.
45894
45895 2006-08-12  Karl Berry  <karl@gnu.org>
45896
45897         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45898         remove, these originate in gnulib now.
45899
45900 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45901
45902         * doc/Makefile (standards.info standards.html standards.dvi):
45903         Also depend on make-stds.texi.
45904
45905 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45906
45907         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45908         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45909
45910         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45911         in wchar_t.  Problem reported by Eric Blake.
45912
45913         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45914         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45915         Also, help the compiler to keep LEN in a register.
45916
45917 2006-08-11  Eric Blake  <ebb9@byu.net>
45918
45919         * users.txt: Sort.  Add tar.
45920
45921 2006-08-11  Bruno Haible  <bruno@clisp.org>
45922
45923         * users.txt: New file.
45924
45925 2006-08-11  Bruno Haible  <bruno@clisp.org>
45926
45927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45928         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45929
45930 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45931
45932         * modules/snprintf (Depends-on): Remove minmax.
45933         (Maintainer): Add self and Bruno.
45934
45935 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45936
45937         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45938         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45939         (EOVERFLOW): Define if the system does not.
45940         Do not include "minmax.h"; it wasn't used.
45941         (snprintf): Don't assume size_t promotes to an unsigned type.
45942         Fix bug when generated string was too long for the buffer: the
45943         buffer's contents are supposed to be the initial prefix of the
45944         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45945         exceeds INT_MAX; do the check ourselves.
45946
45947         Import the following changes from libc:
45948
45949         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45950
45951         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45952         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45953         set wc to the byte which couldn't be converted.
45954         (re_string_reconstruct): Don't clear valid_raw_len before calling
45955         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45956         tip_context using re_string_context_at.
45957
45958         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45959
45960         * lib/posix/regex.h: g++ still cannot handled [restrict].
45961
45962         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45963
45964         * lib/posix/regex.h: Remove special handling for VMS.
45965
45966 2006-08-10  Jim Meyering  <jim@meyering.net>
45967
45968         * modules/same-inode: New module.
45969         * modules/dev-ino: New module.
45970         * modules/cycle-check: Depend on these modules, rather than simply
45971         including their .h files.
45972         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45973         required via m4/cycle-check.m4.
45974         * modules/same: Depend on new same-inode module, rather than
45975         including same-inode.h.
45976         * modules/chdir-safer: New file.
45977
45978         * modules/chown (Depends-on): Add stat-macros.
45979
45980 2006-08-10  Jim Meyering  <jim@meyering.net>
45981
45982         * m4/cycle-check.m4: New file.
45983         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45984         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45985
45986 2006-08-10  Eric Blake  <ebb9@byu.net>
45987
45988         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45989         in from original proposal.
45990
45991 2006-08-10  Eric Blake  <ebb9@byu.net>
45992         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45993
45994         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45995         namespace.
45996
45997 2006-08-10  Bruno Haible  <bruno@clisp.org>
45998
45999         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
46000         as well.
46001
46002 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46003
46004         Sync from coreutils.
46005
46006         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
46007
46008         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
46009         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
46010
46011 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46012
46013         * modules/restrict: Remove; no longer needed now that we assume
46014         Autoconf 2.59 or later.
46015         * MODULES.html.sh: Remove 'restrict'.
46016         * modules/argp (Depends-on): Remove 'restrict'.
46017         * modules/base64 (Depends-on): Likewise.
46018         * modules/gc (Depends-on): Likewise.
46019         * modules/getaddrinfo (Depends-on): Likewise.
46020         * modules/glob (Depends-on): Likewise.
46021         * modules/inet_ntop (Depends-on): Likewise.
46022         * modules/inet_pton (Depends-on): Likewise.
46023         * modules/memxor (Depends-on): Likewise.
46024         * modules/regex (Depends-on): Likewise.
46025         * modules/strtok_r (Depends-on): Likewise.
46026         * modules/time_r (Depends-on): Likewise.
46027
46028 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46029
46030         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
46031         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
46032         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46033         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
46034         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
46035         * m4/memxor.m4 (gl_MEMXOR): Likewise.
46036         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
46037         gl_C_RESTRICT replaced by AC_C_RESTRICT.
46038
46039         Merge from coreutils.
46040         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
46041         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
46042         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46043         * m4/time_r.m4 (gl_TIME_R): Likewise.
46044
46045 2006-08-09  Karl Berry  <karl@gnu.org>
46046
46047         * config/srclist.txt: no more gettext-tools, per Bruno.
46048
46049 2006-08-08  Eric Blake  <ebb9@byu.net>
46050
46051         * modules/verror: New module.
46052         * MODULES.html.sh: Document it.
46053
46054 2006-08-08  Eric Blake  <ebb9@byu.net>
46055
46056         * lib/verror.h, lib/verror.c: New files.
46057
46058 2006-08-08  Eric Blake  <ebb9@byu.net>
46059
46060         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
46061         verror_at_line output complies with GNU Coding Standards even when
46062         file is NULL.
46063
46064 2006-08-07  Bruno Haible  <bruno@clisp.org>
46065
46066         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
46067         versions of AIX.
46068         Reported by Ralf Wildenhues.
46069
46070 2006-08-07  Bruno Haible  <bruno@clisp.org>
46071
46072         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
46073         in an AC_DEFUN. Needed so that the autoconf snippets can use
46074         AC_REQUIRE.
46075
46076 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46077
46078         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46079         Initialize pkgdata_DATA.
46080         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
46081         overriding it.
46082
46083 2006-08-06  Eric Blake  <ebb9@byu.net>
46084
46085         * lib/error.h: Fold in some upstream changes from glibc.
46086         * lib/error.c: Likewise.
46087
46088 2006-08-04  Bruno Haible  <bruno@clisp.org>
46089
46090         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46091         Make the mostlyclean-local rule depend on mostlyclean-generic.
46092         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
46093
46094 2006-07-31  Bruno Haible  <bruno@clisp.org>
46095
46096         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
46097         <stdlib.h>, <string.h>.
46098
46099 2006-07-30  Bruno Haible  <bruno@clisp.org>
46100
46101         * modules/readlink (License): Change to LGPL.
46102
46103 2006-07-30  Bruno Haible  <bruno@clisp.org>
46104
46105         * modules/javaversion (Makefile.am): Distribute javaversion.java and
46106         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
46107         set PKGDATADIR to point to it.
46108
46109 2006-07-30  Bruno Haible  <bruno@clisp.org>
46110
46111         * modules/csharpexec (configure.ac): Comment out macro invocation.
46112         * modules/javaexec (configure.ac): Likewise.
46113         * modules/javacomp-script (configure.ac): Likewise.
46114
46115         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
46116
46117 2006-07-30  Bruno Haible  <bruno@clisp.org>
46118
46119         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
46120         linked-list.
46121
46122 2006-07-30  Bruno Haible  <bruno@clisp.org>
46123
46124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
46125
46126 2006-07-30  Bruno Haible  <bruno@clisp.org>
46127
46128         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46129         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
46130         get removed.
46131
46132 2006-07-29  Bruno Haible  <bruno@clisp.org>
46133
46134         Make it possible for gnulib-tool to work with locally modified or
46135         augmented gnulib repositories.
46136         * gnulib-tool (func_usage): Document --local-dir option.
46137         (local_gnulib_dir): New variable.
46138         Handle --local-dir option.
46139         (func_lookup_file): New function.
46140         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
46141         (func_get_description, func_get_filelist, func_get_description,
46142         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
46143         func_get_automake_snippet, func_get_include_directive,
46144         func_get_license, func_get_maintainer): Use func_lookup_file.
46145         (func_import, func_create_testdir): Use func_lookup_file.
46146
46147 2006-07-29  Bruno Haible  <bruno@clisp.org>
46148
46149         * modules/setenv (Depends-on): Add unistd.
46150
46151 2006-07-29  Bruno Haible  <bruno@clisp.org>
46152
46153         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
46154
46155 2006-07-29  Bruno Haible  <bruno@clisp.org>
46156
46157         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
46158
46159 2006-07-29  Bruno Haible  <bruno@clisp.org>
46160
46161         * gnulib-tool (import, update): If there is no Makefile.am, look at
46162         aclocal.m4, instead of bailing out.
46163
46164 2006-07-29  Bruno Haible  <bruno@clisp.org>
46165
46166         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
46167         Categorize the options by when they are useful.
46168
46169 2006-07-29  Bruno Haible  <bruno@clisp.org>
46170
46171         * gnulib-tool (func_usage): Document option --no-libtool.
46172         Handle option --no-libtool.
46173         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
46174         for changed semantics of $libtool variable.
46175         (func_import): Likewise. If libtool is not used, show this through
46176         an option --no-libtool.
46177         (func_create_testdir): Update.
46178
46179 2006-07-29  Bruno Haible  <bruno@clisp.org>
46180
46181         * gnulib-tool (func_import): Extend error message about missing
46182         --doc-base.
46183
46184 2006-07-29  Bruno Haible  <bruno@clisp.org>
46185
46186         * gnulib-tool (func_import): Don't create the $docbase directory if
46187         there is no file to store there.
46188
46189 2006-07-29  Bruno Haible  <bruno@clisp.org>
46190
46191         * gnulib-tool (autoconf_minversion): If a --dir option is given and
46192         relevant, look for configure.ac there, not in the current directory.
46193         Also use a simple search for AC_PREREQ, not "autoconf --trace".
46194
46195 2006-07-29  Bruno Haible  <bruno@clisp.org>
46196
46197         * gnulib-tool (SORT): New variable.
46198         (func_usage): Undocument --assume-autoconf option.
46199         Remove --assume-autoconf option handling.
46200         (autoconf_minversion): Determine from the contents of configure.ac.
46201         (func_import): Remove autoconf_minversion handling.
46202         Suggested by Eric Blake.
46203
46204 2006-07-29  Bruno Haible  <bruno@clisp.org>
46205
46206         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
46207
46208 2006-07-29  Bruno Haible  <bruno@clisp.org>
46209
46210         * config/srclist.txt (*setenv.[ch]): Remove rules.
46211
46212 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46213
46214         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
46215
46216 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46217
46218         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
46219         arpa/inet.h.
46220
46221 2006-07-28  Simon Josefsson  <jas@extundo.com>
46222
46223         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
46224         * modules/inet_pton (Depends-on): Likewise.
46225
46226 2006-07-28  Simon Josefsson  <jas@extundo.com>
46227
46228         * m4/netinet_in_h.m4: New file.
46229
46230 2006-07-28  Simon Josefsson  <jas@extundo.com>
46231
46232         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
46233         #include's.
46234
46235 2006-07-28  Simon Josefsson  <jas@extundo.com>
46236
46237         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
46238         #include's.
46239
46240 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
46241
46242         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
46243         setgid on directories only if they set these bits.
46244         * lib/modechange.h: Remove obsolete comment about masks.
46245
46246 2006-07-28  Eric Blake  <ebb9@byu.net>
46247
46248         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
46249         macro expansion.
46250
46251 2006-07-28  Bruno Haible  <bruno@clisp.org>
46252
46253         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
46254
46255 2006-07-28  Bruno Haible  <bruno@clisp.org>
46256
46257         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
46258
46259 2006-07-28  Bruno Haible  <bruno@clisp.org>
46260
46261         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46262         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46263         Define fallbacks.
46264         Avoids link error on FreeBSD 4.x.
46265         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46266
46267         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
46268         encoding.
46269         * lib/mbswidth.c (iswcntrl): Likewise.
46270
46271 2006-07-27  Bruno Haible  <bruno@clisp.org>
46272
46273         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
46274         test.
46275
46276 2006-07-27  Bruno Haible  <bruno@clisp.org>
46277
46278         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
46279         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
46280         defined.
46281
46282 2006-07-26  Eric Blake  <ebb9@byu.net>
46283
46284         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
46285
46286 2006-07-26  Eric Blake  <ebb9@byu.net>
46287
46288         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
46289         like mingw that lack mkstemp.
46290         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
46291         avoid compilation warning on mingw.
46292
46293 2006-07-26  Bruno Haible  <bruno@clisp.org>
46294
46295         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
46296         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
46297         INT_FAST*_MIN, INTPTR_MIN.
46298
46299 2006-07-25  Bruno Haible  <bruno@clisp.org>
46300
46301         * modules/version-etc (Depends-on): Add stdarg.
46302
46303 2006-07-25  Bruno Haible  <bruno@clisp.org>
46304
46305         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
46306         complex commands.
46307
46308 2006-07-25  Bruno Haible  <bruno@clisp.org>
46309
46310         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
46311         defined in <stdarg.h> or config.h.
46312
46313 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46314
46315         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
46316         (gl_STDIO_SAFER): Remove.
46317
46318 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46319
46320         * MODULES.html.sh (File stream based Input/Output):
46321         Add fopen-safer, tmpfile-safer; remove stdio-safer.
46322         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
46323         * modules/fopen-safer, modules/tmpfile-safer: New files.
46324         * modules/stdio-safer: Remove.
46325
46326 2006-07-24  Bruno Haible  <bruno@clisp.org>
46327
46328         * modules/tmpdir: New file.
46329         * MODULES.html.sh (File system functions): Add it.
46330
46331 2006-07-24  Bruno Haible  <bruno@clisp.org>
46332
46333         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
46334         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
46335
46336 2006-07-24  Bruno Haible  <bruno@clisp.org>
46337
46338         * modules/clean-temp: New file.
46339
46340 2006-07-24  Bruno Haible  <bruno@clisp.org>
46341
46342         * m4/tmpdir.m4: New file, from GNU gettext.
46343
46344 2006-07-24  Bruno Haible  <bruno@clisp.org>
46345
46346         * lib/tmpdir.h: New file, from GNU gettext.
46347         * lib/tmpdir.c: New file, from GNU gettext.
46348
46349 2006-07-24  Bruno Haible  <bruno@clisp.org>
46350
46351         * lib/clean-temp.h: New file, from GNU gettext.
46352         * lib/clean-temp.c: New file, from GNU gettext.
46353
46354 2006-07-23  Eric Blake  <ebb9@byu.net>
46355
46356         * modules/stdio-safer (Files): Add tmpfile-safer.c.
46357         (Depends-on): Add binary-io.
46358
46359 2006-07-23  Eric Blake  <ebb9@byu.net>
46360
46361         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
46362
46363 2006-07-23  Eric Blake  <ebb9@byu.net>
46364
46365         * lib/tmpfile-safer.c: New file.
46366         * lib/stdio-safer.h (fopen_safer): Add prototype.
46367         * lib/stdio--.h (tmpfile): Make safer.
46368
46369 2006-07-23  Bruno Haible  <bruno@clisp.org>
46370
46371         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
46372         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
46373         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
46374         gl_linked_remove_at): Use it.
46375
46376 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46377         and Simon Josefsson <jas@extundo.com>
46378
46379         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
46380
46381         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
46382
46383 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46384
46385         * modules/close-stream: New file.
46386         * modules/closeout (Description): Make it clear that it exits
46387         with a diagnostic on error.
46388         (Depends-on): Add close-stream.  Remove fpending, stdbool.
46389         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
46390
46391 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46392
46393         * m4/close-stream.m4: New file.
46394
46395 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46396
46397         * lib/close-stream.c, lib/close-stream.h: New files.
46398
46399 2006-07-22  Bruno Haible  <bruno@clisp.org>
46400
46401         Merge from GNU gettext 0.15.
46402
46403         2006-05-01  Bruno Haible  <bruno@clisp.org>
46404
46405                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
46406
46407         2006-07-22  Bruno Haible  <bruno@clisp.org>
46408
46409                 * modules/javaversion: New file.
46410                 * MODULES.html.sh (Java): Add javaversion.
46411
46412         2006-03-12  Bruno Haible  <bruno@clisp.org>
46413
46414                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
46415
46416         2005-12-04  Bruno Haible  <bruno@clisp.org>
46417
46418                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
46419                 (untested).
46420
46421         2006-06-21  Bruno Haible  <bruno@clisp.org>
46422
46423                 Avoid warnings from recent versions of mcs.
46424                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
46425                 -o, -L, -r any more. Use options documented since mcs-1.0
46426                 instead. Similarly for -g.
46427
46428         2005-12-04  Bruno Haible  <bruno@clisp.org>
46429
46430                 * build-aux/csharpcomp.sh.in: Suffix for resources is
46431                 .resources, not .resource.
46432
46433         2005-07-09  Bruno Haible  <bruno@clisp.org>
46434
46435                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
46436                 add a .dll suffix.
46437                 Reported by Mark Junker <mjscod@gmx.de>.
46438
46439         2006-07-22  Bruno Haible  <bruno@clisp.org>
46440
46441                 * modules/gettext: Upgrade to gettext-0.15.
46442                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
46443                 m4/visibility.m4.
46444                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
46445
46446 2006-07-22  Bruno Haible  <bruno@clisp.org>
46447
46448         Merge from GNU gettext 0.15.
46449
46450         2006-03-25  Bruno Haible  <bruno@clisp.org>
46451
46452                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
46453
46454         2006-07-21  Bruno Haible  <bruno@clisp.org>
46455
46456                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
46457                 "1.1".
46458
46459         2006-05-09  Bruno Haible  <bruno@clisp.org>
46460
46461                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
46462                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
46463                 for the conftestver execution.
46464
46465         2006-05-01  Bruno Haible  <bruno@clisp.org>
46466
46467                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
46468                 optional target-version argument. Verify that the compiler
46469                 groks source of the specified source-version, or add -source
46470                 option as necessary. Verify that the compiler produces
46471                 bytecode in the specified target-version, or add -target and
46472                 -source options as necessary. Make the result of the test
46473                 available as variable CONF_JAVAC. Also log error output in
46474                 config.log.
46475
46476         2006-03-11  Bruno Haible  <bruno@clisp.org>
46477
46478                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
46479
46480         2006-05-09  Bruno Haible  <bruno@clisp.org>
46481
46482                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
46483                 CLASSPATH_SEPARATOR to a semicolon.
46484
46485         2006-03-12  Bruno Haible  <bruno@clisp.org>
46486
46487                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
46488                 available as variable CONF_JAVA, for subsequent autoconf
46489                 tests. Also log error output in config.log.
46490
46491         2006-07-19  Bruno Haible  <bruno@clisp.org>
46492
46493                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
46494                 that getline works on glibc2 systems. Needed to avoid trouble
46495                 in relocatable.c.
46496                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
46497
46498         2005-12-04  Bruno Haible  <bruno@clisp.org>
46499
46500                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
46501                 launcher (untested).
46502
46503         2005-12-04  Bruno Haible  <bruno@clisp.org>
46504
46505                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
46506
46507         2006-07-22  Bruno Haible  <bruno@clisp.org>
46508
46509                 * gettext.m4: Update from GNU gettext-0.15.
46510                 * nls.m4: Likewise.
46511                 * po.m4: Likewise.
46512                 * inttypes-pri.m4: Likewise.
46513                 * inttypes-h.m4: Renamed from inttypes.m4.
46514                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
46515
46516 2006-07-22  Bruno Haible  <bruno@clisp.org>
46517
46518         Merge from GNU gettext 0.15.
46519
46520         2005-07-05  Bruno Haible  <bruno@clisp.org>
46521
46522                 * printf-args.c (printf_fetchargs): Work around broken
46523                 definition of wint_t on mingw.
46524
46525         2005-02-12  Bruno Haible  <bruno@clisp.org>
46526
46527                 * xallocsa.h: Add extern "C" for C++.
46528
46529         2006-05-17  Bruno Haible  <bruno@clisp.org>
46530
46531                 Cygwin portability.
46532                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
46533
46534         2006-04-30  Bruno Haible  <bruno@clisp.org>
46535
46536                 * progreloc.c: Include <mach-o/dyld.h> if available.
46537                 (find_executable): Use _NSGetExecutablePath when possible.
46538
46539         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46540
46541                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
46542                 function.
46543
46544         2005-12-29  Bruno Haible  <bruno@clisp.org>
46545
46546                 * progreloc.c (set_program_name_and_installdir): Fix
46547                 compilation error.
46548
46549         2005-12-04  Bruno Haible  <bruno@clisp.org>
46550
46551                 Cygwin portability.
46552                 * progreloc.c: Include <windows.h> also on Cygwin.
46553                 (find_executable): Add support for Cygwin.
46554                 (set_program_name_and_installdir): Handle also platforms with
46555                 nonempty EXEEXT.
46556
46557         2006-07-11  Bruno Haible  <bruno@clisp.org>
46558
46559                 * javacomp.c: Fix a comment.
46560                 Reported by Jim Meyering.
46561
46562         2006-04-30  Bruno Haible  <bruno@clisp.org>
46563
46564                 * javacomp.h (compile_java_class): Add source_version,
46565                 target_version arguments.
46566                 * javacomp.c: Rewritten to choose only a compiler that
46567                 respects the specified source_version and target_version.
46568
46569         2006-06-27  Bruno Haible  <bruno@clisp.org>
46570
46571                 Assume correct S_ISDIR macro.
46572                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
46573
46574         2006-07-22  Bruno Haible  <bruno@clisp.org>
46575
46576                 * javaversion.h: New file, from GNU gettext.
46577                 * javaversion.c: New file, from GNU gettext.
46578                 * javaversion.java: New file, from GNU gettext.
46579                 * javaversion.class: New file, from GNU gettext.
46580
46581         2006-05-17  Bruno Haible  <bruno@clisp.org>
46582
46583                 Cygwin portability.
46584                 * javaexec.c (execute_java_class): Test for jview program
46585                 also on Cygwin.
46586
46587         2006-04-09  Bruno Haible  <bruno@clisp.org>
46588
46589                 * fatal-signal.c: Don't include string.h.
46590                 (at_fatal_signal): Use a copying loop instead of memcpy.
46591
46592         2005-12-04  Bruno Haible  <bruno@clisp.org>
46593
46594                 * csharpexec.c: Add support for 'clix' launcher (untested).
46595                 (execute_csharp_using_sscli): New function.
46596                 (execute_csharp_program): Call it.
46597
46598         2006-06-21  Bruno Haible  <bruno@clisp.org>
46599
46600                 Avoid warnings from recent versions of mcs.
46601                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
46602                 -o, -L, -r any more. Use options documented since mcs-1.0
46603                 instead. Similarly for -g.
46604
46605         2005-07-09  Bruno Haible  <bruno@clisp.org>
46606
46607                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
46608                 add a .dll suffix.
46609                 Reported by Mark Junker <mjscod@gmx.de>.
46610
46611         2006-06-17  Bruno Haible  <bruno@clisp.org>
46612
46613                 * config.charset: Update for NetBSD 3.0.
46614
46615         2006-05-17  Bruno Haible  <bruno@clisp.org>
46616
46617                 Cygwin portability.
46618                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46619
46620         2006-05-16  Bruno Haible  <bruno@clisp.org>
46621
46622                 * localcharset.c [CYGWIN]: Include <windows.h>.
46623                 (get_charset_aliases): For Cygwin, return the same CPxxx
46624                 aliases list as under WIN32.
46625                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46626                 the environment variables. Fall back to GetACP().
46627
46628         2006-04-05  Bruno Haible  <bruno@clisp.org>
46629
46630                 * config.charset: Update Juan Manuel Guerrero's address.
46631
46632         2005-02-12  Bruno Haible  <bruno@clisp.org>
46633
46634                 * allocsa.h: Add extern "C" for C++.
46635
46636         2005-02-10  Bruno Haible  <bruno@clisp.org>
46637
46638                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46639                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46640
46641         2006-07-22  Bruno Haible  <bruno@clisp.org>
46642
46643                 * gettext.h: Update to GNU gettext-0.15.
46644
46645 2006-07-22  Bruno Haible  <bruno@clisp.org>
46646
46647         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46648         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46649         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46650
46651 2006-07-21  Eric Blake  <ebb9@byu.net>
46652
46653         * modules/stdlib-safer: New file.
46654         * MODULES.html.sh (File stream based Input/Output): Add
46655         stdlib-safer.
46656
46657 2006-07-21  Eric Blake  <ebb9@byu.net>
46658
46659         * lib/stdlib-safer.h: New file from coreutils, required by
46660         stdlib--.h.
46661
46662 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46663
46664         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46665
46666 2006-07-20  Bruno Haible  <bruno@clisp.org>
46667
46668         * gnulib-tool: Recognize new option --assume-autoconf.
46669         (autoconf_minversion): New variable.
46670         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46671
46672 2006-07-20  Bruno Haible  <bruno@clisp.org>
46673
46674         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46675
46676 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46677
46678         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46679         Reindent and repaginate.
46680
46681 2006-07-19  Derek Price  <derek@ximbiot.com>
46682
46683         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46684         Correct grammar.
46685
46686 2006-07-17  Bruno Haible  <bruno@clisp.org>
46687
46688         * modules/list: New file.
46689         * modules/array-list: New file.
46690         * modules/carray-list, modules/carray-list-tests: New files.
46691         * modules/linked-list, modules/linked-list-tests: New files.
46692         * modules/avltree-list, modules/avltree-list-tests: New files.
46693         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46694         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46695         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46696         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46697         * modules/oset: New file.
46698         * modules/array-oset: New file.
46699         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46700         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46701         * tests/test-carray_list.c: New file.
46702         * tests/test-linked_list.c: New file.
46703         * tests/test-avltree_list.c: New file.
46704         * tests/test-rbtree_list.c: New file.
46705         * tests/test-linkedhash_list.c: New file.
46706         * tests/test-avltreehash_list.c: New file.
46707         * tests/test-rbtreehash_list.c: New file.
46708         * tests/test-avltree_oset.c: New file.
46709         * tests/test-rbtree_oset.c: New file.
46710         * MODULES.html.sh (Container data structures): New section.
46711
46712 2006-07-17  Bruno Haible  <bruno@clisp.org>
46713
46714         * m4/gl_list.m4: New file.
46715
46716 2006-07-17  Bruno Haible  <bruno@clisp.org>
46717
46718         * lib/gl_list.h: New file.
46719         * lib/gl_list.c: New file.
46720         * lib/gl_array_list.h: New file.
46721         * lib/gl_array_list.c: New file.
46722         * lib/gl_carray_list.h: New file.
46723         * lib/gl_carray_list.c: New file.
46724         * lib/gl_linked_list.h: New file.
46725         * lib/gl_linked_list.c: New file.
46726         * lib/gl_anylinked_list1.h: New file.
46727         * lib/gl_anylinked_list2.h: New file.
46728         * lib/gl_avltree_list.h: New file.
46729         * lib/gl_avltree_list.c: New file.
46730         * lib/gl_anyavltree_list1.h: New file.
46731         * lib/gl_anyavltree_list2.h: New file.
46732         * lib/gl_rbtree_list.h: New file.
46733         * lib/gl_rbtree_list.c: New file.
46734         * lib/gl_anyrbtree_list1.h: New file.
46735         * lib/gl_anyrbtree_list2.h: New file.
46736         * lib/gl_anytree_list1.h: New file.
46737         * lib/gl_anytree_list2.h: New file.
46738         * lib/gl_linkedhash_list.h: New file.
46739         * lib/gl_linkedhash_list.c: New file.
46740         * lib/gl_anyhash_list1.h: New file.
46741         * lib/gl_anyhash_list2.h: New file.
46742         * lib/gl_avltreehash_list.h: New file.
46743         * lib/gl_avltreehash_list.c: New file.
46744         * lib/gl_rbtreehash_list.h: New file.
46745         * lib/gl_rbtreehash_list.c: New file.
46746         * lib/gl_anytreehash_list1.h: New file.
46747         * lib/gl_anytreehash_list2.h: New file.
46748
46749         * lib/gl_oset.h: New file.
46750         * lib/gl_oset.c: New file.
46751         * lib/gl_array_oset.h: New file.
46752         * lib/gl_array_oset.c: New file.
46753         * lib/gl_avltree_oset.h: New file.
46754         * lib/gl_avltree_oset.c: New file.
46755         * lib/gl_rbtree_oset.h: New file.
46756         * lib/gl_rbtree_oset.c: New file.
46757         * lib/gl_anytree_oset.h: New file.
46758
46759 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46760
46761         * m4/mkancesdirs.m4: New file.
46762         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46763         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46764         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46765         it.
46766
46767 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46768
46769         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46770         * lib/mkancesdirs.h: New files.
46771         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46772         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46773         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46774         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46775         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46776         callers changed.  Revamp internals significantly, by not
46777         attempting to create directories that are temporarily more
46778         permissive than the final results.  Do not attempt to use
46779         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46780         This removes some race conditions, fixes some bugs, and simplifies
46781         things.  Use new dirchownmod function to do owner and mode changes.
46782         * lib/mkdir-p.h: Likewise.
46783         * lib/modechange.c (octal_to_mode): New function.
46784         (struct mode_change): New member mentioned.
46785         (make_node_op_equals): New arg mentioned.  All callers changed.
46786         (mode_compile): Keep track of which mode bits the user has explicitly
46787         mentioned.
46788         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46789         New arg PMODE_BITS, to keep track of which mode bits the user
46790         mentioned; it treats S_ISUID and S_ISGID speciall.
46791         All callers changed.
46792         * lib/modechange.h: Likewise.
46793
46794 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46795
46796         * MODULES.html.sh: Add mkancestors.
46797         * modules/mkancesdirs: New module.
46798         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46799         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46800         The chdir-safer and afs files are now orphans; I'll remove them
46801         unless someone speaks up.
46802         Add lib/dirchownmod.c, lib/dirchownmod.h.
46803         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46804         Add lchown, mkancesdirs.
46805         (Maintainer): Add self.
46806
46807 2006-07-15  Karl Berry  <karl@gnu.org>
46808
46809         * gnulib-tool: help message wording/arrangement.
46810
46811 2006-07-14  Simon Josefsson  <jas@extundo.com>
46812
46813         * doc/gnulib.texi (Libtool and Windows): New section.
46814
46815 2006-07-12  Simon Josefsson  <jas@extundo.com>
46816
46817         * modules/gendocs (License): Fix license, approved by Karl.
46818
46819 2006-07-12  Eric Blake  <ebb9@byu.net>
46820
46821         * MODULES.html.sh: Add gendocs.
46822
46823 2006-07-11  Eric Blake  <ebb9@byu.net>
46824
46825         * modules/fdl: New module, to install doc/fdl.texi.
46826         * MODULES.html.sh: Add new section for documentation modules.
46827         * gnulib-tool: Avoid space-tab.
46828         (--doc-base): New option, to manage files from doc.
46829
46830 2006-07-11  Eric Blake  <ebb9@byu.net>
46831
46832         * m4/absolute-header.m4: Fix comments to match recent change.
46833
46834 2006-07-11  Eric Blake  <ebb9@byu.net>
46835
46836         * gnulib-tool: List --doc-base before --tests-base.
46837
46838 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46839
46840         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46841
46842 2006-07-11  Bruno Haible  <bruno@clisp.org>
46843
46844         * README: Mention where to put documentation.
46845
46846 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46847
46848         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46849
46850 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46851
46852         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46853         to stdint.m4.
46854
46855 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46856
46857         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46858         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46859         "no/such/file/stdint.h" when there is no such file, so that
46860         the resulting C code can be parsed by dodgy compilers.
46861         Problems reported by Bob Proulx.
46862
46863 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46864
46865         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46866         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46867         macros into the GNU _D_EXACT_NAMLEN.
46868         * lib/savedir.c:  Likewise.
46869         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46870
46871 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46872         and Paul Eggert  <eggert@cs.ucla.edu>
46873
46874         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46875         * m4/savedir.m4:
46876         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46877         macros into the GNU _D_EXACT_NAMLEN.
46878
46879 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46880
46881         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46882         around the absolute name, to work around a problem with the HP-UX
46883         11.23 native C compiler, reported by Bob Proulx.
46884
46885 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46886
46887         * doc/maintain.texi, make-stds.texi: Sync from
46888         <http://savannah.gnu.org/projects/gnustandards>.
46889
46890 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46891
46892         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46893
46894 2006-07-09  Jim Meyering  <jim@meyering.net>
46895
46896         * m4/glob.m4: Remove a doubled word in a comment.
46897
46898 2006-07-09  Jim Meyering  <jim@meyering.net>
46899
46900         * lib/argp-pv.c: Remove a doubled word in a comment.
46901         * lib/check-version.c (check_version): Likewise.
46902         * lib/javacomp.c (compile_java_class): Likewise.
46903
46904 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46905
46906         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46907         for the benefit of people using Autoconf 2.60.  If you want to
46908         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46909         (or m4/onceonly.m4, if pre-2.57) manually.
46910
46911 2006-07-08  Jim Meyering  <jim@meyering.net>
46912
46913         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46914         comment.
46915         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46916         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46917         comment.
46918
46919 2006-07-08  Jim Meyering  <jim@meyering.net>
46920
46921         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46922
46923 2006-07-07  Simon Josefsson  <jas@extundo.com>
46924
46925         * tests/test-crc.c: Change expected crc value, the test vector
46926         were probably computed using the old broken crc.c?
46927
46928 2006-07-06  Simon Josefsson  <jas@extundo.com>
46929
46930         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46931         now the canonical place for the M4 file).
46932
46933         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46934         from the sys_socket dependency now.
46935
46936         * modules/inet_pton (Files): Ditto.
46937
46938         * modules/inet_ntop (Files): Ditto.
46939
46940 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46941
46942         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46943         not gl_PREREQ_GETUSERSHELL.
46944
46945 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46946
46947         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46948         with only one argument, for Autoconf 2.60.
46949         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46950         expand to nothing, so add a shell command to avoid syntax error.
46951         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46952
46953 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46954
46955         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46956
46957 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46958
46959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46960         no longer needed.  Check for isblank decl.
46961         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46962         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46963         of existence.
46964
46965 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46966
46967         * lib/getloadavg.c: Use __VMS, not VMS.
46968         * lib/getopt.c: Likewise.
46969         * lib/getpagesize.h: Likewise.
46970         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46971         and probably does not work.
46972
46973 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46974
46975         * lib/.cppi-disable: Add wcwidth.
46976         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46977         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46978         (ISGRAPH): Remove.  All uses changed to isgraph.
46979         (FOLD) [!defined _LIBC]: Remove special case.
46980         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46981         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46982         HAVE_ISBLANK.
46983         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46984         case.
46985
46986 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46987
46988         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46989         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46990         brackets.  Other minor changes to suppress some compiler
46991         warnings.
46992
46993 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46994         and Paul Eggert  <eggert@cs.ucla.edu>
46995
46996         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46997         of invoking obsolescent AC_HEADER_DIRENT macro.
46998         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46999         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
47000         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47001         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
47002         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
47003         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47004         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
47005         * m4/readdir.m4: Remove; no longer needed.
47006
47007 2006-07-06  Derek R. Price  <derek@ximbiot.com>
47008         and Paul Eggert  <eggert@cs.ucla.edu>
47009
47010         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
47011         Don't worry about this obsolete case any more.
47012         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
47013         directories.
47014         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
47015         worry about this obsolete case any more.
47016         * lib/fts.c: Likewise.
47017         * lib/getcwd.c: Likewise.
47018         * lib/glob.h: Likewise.
47019         * lib/savedir.c: Likewise.
47020
47021 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47022
47023         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
47024         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
47025         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
47026         needed.
47027         All uses removed.
47028         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
47029         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
47030         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
47031         needed.
47032         * m4/getdate.m4 (gl_GETDATE): Likewise.
47033         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
47034         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
47035         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47036         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
47037         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
47038         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47039         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
47040         needed.
47041
47042 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47043
47044         * lib/memcasecmp.c: Include <limits.h>.
47045         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
47046         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
47047         Don't assume isdigit succeeds only on '0' through '9'.
47048
47049 2006-07-05  Eric Blake  <ebb9@byu.net>
47050
47051         * modules/getaddrinfo (Depends-on): Add snprintf.
47052
47053 2006-07-05  Eric Blake  <ebb9@byu.net>
47054
47055         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
47056         to avoid 'header present but could not be compiled' on cygwin.
47057
47058 2006-07-05  Eric Blake  <ebb9@byu.net>
47059
47060         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
47061         missing from netdb.h.
47062         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
47063
47064 2006-07-05  Derek R. Price  <derek@ximbiot.com>
47065
47066         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
47067         no longer needed.
47068         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
47069         * m4/getdate.m4 (gl_GETDATE): Likewise.
47070         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
47071         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
47072         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47073         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
47074         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47075
47076 2006-07-05  Derek R. Price  <derek@ximbiot.com>
47077
47078         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
47079         All uses of is_space replaced by isspace.
47080         * lib/exit.h: Don't talk about STDC_HEADERS.
47081         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
47082         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
47083         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
47084         replaced by isprint etc.
47085         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
47086         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
47087         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
47088         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
47089         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
47090         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
47091
47092 2006-07-05  Bruno Haible  <bruno@clisp.org>
47093
47094         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
47095         the function exists, before testing against AIX.
47096         Reported by Martin Lambers <marlam@marlam.de>.
47097
47098 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
47099
47100         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
47101         From Mark D. Baushke.
47102
47103 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
47104
47105         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
47106         to the absolute name, not just one, to bypass Sun C 5.8's
47107         "warning: #include of /usr/include/... may be non-portable".
47108
47109 2006-07-04  Eric Blake  <ebb9@byu.net>
47110
47111         * modules/dirname-tests: New test module.
47112         * tests/test-dirname.c: New file, replacing dirname.c
47113         TEST_DIRNAME section that was recently deleted.
47114
47115 2006-07-04  Bruno Haible  <bruno@clisp.org>
47116
47117         Assume ANSI C header files and <ctype.h> functions.
47118         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
47119         (mbsnwidth): Use isprint, iscntrl instead.
47120
47121 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47122
47123         Merge from coreutils.
47124         * MODULES.html.sh: Add xstrtold.
47125         * modules/xstrtold: New file.
47126         * modules/cycle-check (Files): Add lib/same-inode.h.
47127         * modules/dirname (Files): Add m4/double-slash-root.m4.
47128         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
47129         * modules/mkdir-p (Files): Add lib/same-inode.h.
47130         * modules/same (Files): Add lib/same-inode.h.
47131
47132 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47133
47134         * m4/absolute-header.m4: Renamed from full-header-path.m4.
47135         This is to keep the terminology clean; POSIX talks about
47136         "absolute pathnames", not "full pathnames", but the GNU
47137         Coding Standards say to use "path" for something else;
47138         so use "absolute" to keep both sides happy.
47139         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
47140         Set gl_absolute_header, not gl_full_header_path.
47141         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
47142         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
47143         All uses changed.
47144
47145         Merge from coreutils.
47146
47147         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47148
47149         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
47150         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
47151         want to require the building of c-strtod.o.
47152         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
47153         needs -lm directly.
47154         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
47155
47156         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47157
47158         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
47159         --as-needed option if available.  Problem reported by Albert Chin in
47160         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
47161         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
47162         cc merely issues a bunch of annoying warnings for --as-needed
47163         (this problem was reported by Bob Proulx).  Also, try linking with
47164         -lm to detect a bug in binutils 2.16 (this problem was reported
47165         by Ralf Wildenhues).
47166
47167         2006-06-18  Jim Meyering  <jim@meyering.net>
47168
47169         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
47170         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
47171         macro.
47172         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
47173         also check for glibc-2.4's abort-inducing bug.
47174
47175         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
47176         Low-probability clean-up should be to use rmdir to get rid of
47177         the just-created directory, not unlink.
47178
47179         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
47180         configure fail, and request a bug report to inform us about it.
47181         Add a comment that, barring reports to the contrary, in 2007 we'll
47182         assume ftruncate is universally available.
47183
47184         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
47185
47186         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
47187
47188         2006-03-12  Jim Meyering  <jim@meyering.net>
47189
47190         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
47191         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
47192         * m4/same.m4 (gl_SAME): Likewise.
47193         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
47194
47195         2006-03-11  Eric Blake  <ebb9@byu.net>
47196
47197         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
47198         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
47199         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
47200         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
47201
47202 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47203
47204         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
47205         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
47206         reported by Mark D. Baushke, one in
47207         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
47208
47209         Merge from coreutils.
47210
47211         * lib/.cppi-disable: Add stdint_.h.
47212         * lib/.cvsignore: Add stdint.h.
47213
47214         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47215
47216         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
47217         both double and long double versions.
47218         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
47219         * lib/xstrtold.c: New file.
47220         * lib/xstrtod.h (xstrtold): New decl.
47221
47222         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
47223
47224         * lib/filemode.c (setst): Remove.
47225         (strmode): Rewrite to avoid setst.  This makes the code shorter,
47226         (arguably) clearer, and the generated code is a bit smaller on my
47227         Debian GNU/Linux stable x86 host.
47228
47229         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
47230
47231         * lib/filemode.c: Include "filemode.h" first, to test the interface.
47232         Assume that filemode.h includes sys/types.h and sys/stat.h.
47233         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
47234         (ftypelet): Reorder to put common cases first, for efficiency.
47235         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
47236         to do 'M'.
47237         (strmode): Renamed from mode_string, and now stores 12 bytes instead
47238         of 10, for compatibility with FreeBSD.  All callers changed.
47239         (filemodestring): Now stores 12 bytes instead of 10, and sets file
47240         types that can't be deduced solely from st_mode.  First arg is now a
47241         const pointer.
47242         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
47243         (strmode): Renamed from mode_string.
47244         (filemodestring): New decl.
47245         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
47246         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
47247         needed.
47248         (S_ISPORT, S_ISWHT): New macros, if not already defined.
47249
47250         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
47251
47252         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
47253         fsusage.h now does that.  Include fsusage.h first, to test interface.
47254         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
47255         at most one method (the old code could have generated decls that
47256         didn't conform to C89, not that this was ever exercised).
47257         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
47258
47259         2006-03-19  Jim Meyering  <jim@meyering.net>
47260
47261         Work even in a chroot where d_ino values for entries in "/"
47262         don't match the stat.st_ino values for the same names.
47263         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
47264         number, iterate through all entries again, using lstat instead.
47265         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
47266         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
47267
47268         * lib/getcwd.c (__getcwd): Clarify a comment.
47269         Use memcpy in place of a call to strcpy.
47270
47271         2006-03-12  Jim Meyering  <jim@meyering.net>
47272
47273         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
47274         matches that of the current directory (which we're about to chdir ".."
47275         out of), then save the dev-ino of the parent, instead.
47276
47277         * lib/same-inode.h (SAME_INODE): New file/macro.
47278         * lib/chdir-safer.c (SAME_INODE): Remove definition.
47279         Include "same-inode.h", instead.
47280         * lib/same.c: Likewise.
47281         * lib/cycle-check.h: Include "same-inode.h".
47282         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
47283         * lib/cycle-check.c (SAME_INODE): Remove definition.
47284         * lib/root-dev-ino.h: Include "same-inode.h".
47285
47286         2006-03-11  Eric Blake  <ebb9@byu.net>
47287
47288         * lib/same.c (same_name): s/base_name/last_component/
47289         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
47290         * lib/filenamecat.c (file_name_concat): Likewise.
47291
47292         2006-03-11  Eric Blake  <ebb9@byu.net>,
47293                     Paul Eggert  <eggert@cs.ucla.edu>
47294
47295         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
47296         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
47297         drive prefix.
47298         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
47299         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
47300         (last_component): New method.
47301         * lib/dirname.c (dir_len): Determine when drive letters need a
47302         subsequent slash.  Preserve // when it is special.
47303         (dir_name): Don't append dot when drive letter is absolute.
47304         [TEST_DIRNAME]: Move into a full-blown gnulib test.
47305         * lib/basename.c (base_name): New semantics - malloc the result.
47306         Preserve // when it is special.  Preserve relative files that look
47307         like drive letters.
47308         (base_len): Preserve // when it is special.
47309         (last_component): New method, similar to old base_name semantics.
47310         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
47311         base_name.  Strip redundant slashes from ///.
47312
47313 2006-07-03  Jim Meyering  <jim@meyering.net>
47314
47315         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
47316         macro is used before the first cycle_check call.
47317
47318 2006-07-03  Eric Blake  <ebb9@byu.net>
47319
47320         * modules/dirname (Depends-on): Add xstrndup.
47321
47322 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47323
47324         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
47325         test cases, so that config.log is a bit easier to follow.
47326
47327 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47328
47329         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
47330         both are 64 bits, since this seems to be the tradition, and this
47331         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
47332         we ever run into a host that prefers long long to long in this
47333         case, we'll need another configure-time test.  Problem reported by
47334         Jim Meyering.
47335
47336 2006-07-02  Eric Blake  <ebb9@byu.net>
47337
47338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
47339
47340 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47341
47342         * modules/inttypes (Depends-on): No longer depends on stdint.
47343         * modules/stdint (Description): Say more about assumptions.
47344         Say that the fast types might differ.  Say macros are used.
47345         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
47346         (Makefile.am): Revise list of substituted symbols to match
47347         new stdint.m4.
47348         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
47349         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
47350         * tests/test-stdint.c (verify_same_types)
47351         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
47352         the code conforms to C99/C89.
47353         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
47354         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
47355
47356 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47357
47358         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
47359         but fix a bug, by requiring at least 64 bits.
47360         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47361         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
47362         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
47363         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
47364
47365         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
47366         changes.  Make 2.59 a prerequisite.  Check and substitute for
47367         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
47368         inttypes.h.  Do not use special include files; just use the
47369         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
47370         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
47371         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
47372         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
47373         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
47374         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
47375         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
47376         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
47377         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
47378         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
47379         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
47380         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
47381         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
47382         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
47383         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
47384         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
47385         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
47386         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
47387         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
47388         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
47389         WINT_MAX.  Check for C99 conformance more strictly, by detecting
47390         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
47391         not check for things that C99 does not require, e.g., int8_t.  If
47392         a test isn't needed unless <stdint.h> isn't working, and is
47393         unlikely to be needed for any other reason, then don't do it
47394         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
47395         size_t, since we assume C89 freestanding at least.  Do not check
47396         for sig_atomic_t, wchar_t, or wint_t, since the code now does
47397         the right thing even if the types are not defined.  Instead use:
47398         (gl_STDINT_TYPE_PROPERTIES): New macro.
47399         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
47400         testing whether <sys/types.h> clashes, as Autoconf does this for
47401         us now.  All uses removed.
47402         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
47403         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
47404         (gl_CHECK_TYPE_SAME):
47405         Remove; no longer needed.
47406         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
47407         exists, since we'll return 0 anyway in that case.
47408         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
47409
47410 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47411
47412         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
47413         possible collision with system files.
47414         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
47415         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
47416         WCHAR_MIN and WCHAR_MAX in this case.
47417         (<stddef.h>): Do not include; no longer needed.
47418         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
47419         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
47420         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
47421         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
47422         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
47423         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
47424         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
47425         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
47426         !defined(__c99))]: Include in this case too, since it's harmless
47427         now.
47428         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
47429         dangerous to do so.
47430         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
47431         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
47432         (_STDINT_MIN, _STDINT_MAX): New macros.
47433         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
47434         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
47435         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
47436         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
47437         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
47438         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
47439         macros, not typedefs; this simplifies things quite a bit.
47440         Use long int for all types narrower than int64_t.
47441         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
47442         Define in terms of long long int or int64_t or long int,
47443         not int64_t or int32_t.  This saves some compile-time testing.
47444         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
47445         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
47446         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
47447         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
47448         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
47449         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
47450         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
47451         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
47452         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
47453         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
47454         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47455         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47456         undef any previous version and define our own version, for
47457         simplicity and consistency with the new macros for types.
47458         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47459         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47460         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
47461         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
47462         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
47463         @WINT_T_SUFFIX@ to keep things simple here.
47464         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
47465         Simplify by assuming typical 8/16/32/64 host, since we're
47466         already doing that elsewhere anyway.
47467         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
47468         and assume long long int is 64 bits if available.  This
47469         speeds up 'configure'.
47470
47471 2006-07-01  Eric Blake  <ebb9@byu.net>
47472
47473         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
47474         Reported by Andreas Buening.
47475
47476 2006-07-01  Eric Blake  <ebb9@byu.net>
47477
47478         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
47479
47480 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
47481
47482         * lib/getaddrinfo.c: fixed typo
47483
47484 2006-06-29  Jim Meyering  <jim@meyering.net>
47485
47486         * modules/strftime (Maintainer): Add my name, since with the
47487         FPRINTFTIME changes strftime.c has forked from glibc.
47488
47489 2006-06-29  Eric Blake  <ebb9@byu.net>
47490
47491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
47492
47493 2006-06-29  Eric Blake  <ebb9@byu.net>
47494
47495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
47496
47497 2006-06-29  Eric Blake  <ebb9@byu.net>
47498
47499         * lib/stat_.h: New file.
47500
47501 2006-06-29  Eric Blake  <ebb9@byu.net>
47502
47503         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
47504         unused static function.
47505
47506 2006-06-29  Eric Blake  <ebb9@byu.net>
47507
47508         * doc/functions.texi (Function Portability): Document missing lstat
47509         on mingw.
47510
47511 2006-06-29  Eric Blake  <ebb9@byu.net>
47512
47513         * MODULES.html.sh: Add sys_stat.
47514         * modules/sys_stat: New module.
47515         * modules/mkstemp (Depends-on): Add sys_stat.
47516
47517 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47518
47519         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
47520
47521 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47522
47523         * m4/c-bs-a.m4: Removed.
47524
47525 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47526
47527         * lib/strftime.c: Assume strftime() exists.
47528
47529 2006-06-29  Derek Price  <derek@ximbiot.com>
47530
47531         * modules/c-bs-a: Removed - \a is C89.
47532         * MODULES.html.sh: Remove c-bs-a.
47533
47534 2006-06-29  Bruno Haible  <bruno@clisp.org>
47535
47536         * modules/wcwidth (License): Change to LGPL.
47537
47538 2006-06-28  Simon Josefsson  <jas@extundo.com>
47539
47540         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
47541         on _WIN32.
47542
47543         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
47544         getnameinfo.
47545
47546 2006-06-28  Simon Josefsson  <jas@extundo.com>
47547
47548         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
47549
47550 2006-06-28  Simon Josefsson  <jas@extundo.com>
47551
47552         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
47553         functions there.  It will succeed on Windows XP, but on Windows
47554         2000 and (presumably) earlier, it will fail, and use the internal
47555         re-implementation.
47556         (use_win32_p): New function.
47557         (getaddrinfo): Use strtoul on servname, to support numeric ports.
47558         Support AI_NUMERICSERV to disable getservbyname.
47559         (getnameinfo): New function, only supports
47560         NI_NUMERICHOST|NI_NUMERICSERV for now.
47561
47562         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
47563         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
47564         getnameinfo.
47565
47566 2006-06-28  Eric Blake  <ebb9@byu.net>
47567
47568         * modules/wcwidth: New file.
47569         * modules/mbchar (Depends-on): Add wcwidth.
47570         * modules/mbswidth (Depends-on): Add wcwidth.
47571         * MODULES.html.sh: Add wcwidth.
47572
47573 2006-06-28  Eric Blake  <ebb9@byu.net>
47574
47575         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
47576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
47577
47578 2006-06-28  Eric Blake  <ebb9@byu.net>
47579
47580         * lib/xvasprintf.h: Fix comments.
47581
47582 2006-06-28  Eric Blake  <ebb9@byu.net>
47583
47584         * lib/mbchar.h (wcwidth): Include wcwidth.h.
47585         * lib/mbswidth.c (wcwidth): Move from here...
47586         * lib/wcwidth.h: ...to this new file.
47587
47588 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47589
47590         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
47591
47592         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
47593         it's obsolete.
47594         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
47595
47596 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47597
47598         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
47599         Autoconf 2.60 says this stuff was obsolete.
47600
47601 2006-06-28  Bruno Haible  <bruno@clisp.org>
47602
47603         * modules/wcwidth (Files): Add m4/wchar_t.m4.
47604
47605 2006-06-28  Bruno Haible  <bruno@clisp.org>
47606
47607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
47608         gt_TYPE_WCHAR_T.
47609
47610 2006-06-28  Bruno Haible  <bruno@clisp.org>
47611
47612         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
47613         declaration for wcwidth.
47614         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
47615
47616 2006-06-28  Bruno Haible  <bruno@clisp.org>
47617
47618         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47619         (mkdir): Define using _mkdir.
47620
47621 2006-06-28  Bruno Haible  <bruno@clisp.org>
47622
47623         * lib/getaddrinfo.h: Fix POSIX URL.
47624         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47625         _WIN32.
47626         (use_win32_p): Make static.
47627         (getaddrinfo): Reject service name if it is empty or does not consist
47628         solely of decimal digits, or if its value is > 65535.
47629         (getnameinfo): Remove useless casts.
47630
47631 2006-06-27  Simon Josefsson  <jas@extundo.com>
47632
47633         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47634         Eggert and Martin Lambers.
47635
47636 2006-06-27  Simon Josefsson  <jas@extundo.com>
47637
47638         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47639         Eggert and Martin Lambers.
47640
47641 2006-06-27  Bruno Haible  <bruno@clisp.org>
47642
47643         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47644         result to 0, not to empty.
47645         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47646
47647 2006-06-27  Bruno Haible  <bruno@clisp.org>
47648
47649         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47650
47651 2006-06-26  Simon Josefsson  <jas@extundo.com>
47652
47653         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47654         present.
47655
47656 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47657
47658         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47659         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47661
47662 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47663
47664         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47665
47666 2006-06-26  Bruno Haible  <bruno@clisp.org>
47667
47668         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47669
47670 2006-06-26  Bruno Haible  <bruno@clisp.org>
47671
47672         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47673
47674 2006-06-26  Bruno Haible  <bruno@clisp.org>
47675
47676         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47677         SGI C compiler in pre-C99 mode.
47678         Suggested by Mark D. Baushke and Larry Jones.
47679
47680 2006-06-26  Bruno Haible  <bruno@clisp.org>
47681
47682         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47683         WCHAR_MAX.
47684         Reported by Mark D. Baushke and Larry Jones.
47685
47686 2006-06-26  Bruno Haible  <bruno@clisp.org>
47687
47688         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47689         in pre-C99 mode.
47690         Suggested by Mark D. Baushke and Larry Jones.
47691
47692 2006-06-23  Simon Josefsson  <jas@extundo.com>
47693             Bruno Haible  <bruno@clisp.org>
47694
47695         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47696         Emit mostlyclean-local rule.
47697         (func_emit_tests_Makefile_am): Likewise.
47698         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47699
47700 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47701
47702         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47703
47704 2006-06-23  Bruno Haible  <bruno@clisp.org>
47705
47706         * tests/test-stdint.c: Update to match ISO C 99 Technical
47707         Corrigendum 1.
47708
47709 2006-06-23  Bruno Haible  <bruno@clisp.org>
47710
47711         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47712
47713 2006-06-23  Bruno Haible  <bruno@clisp.org>
47714
47715         * lib/stdint_.h: Treat IRIX like OpenBSD.
47716
47717 2006-06-23  Bruno Haible  <bruno@clisp.org>
47718
47719         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47720         ISO C 99 Technical Corrigendum 1.
47721
47722 2006-06-22  Simon Josefsson  <jas@extundo.com>
47723
47724         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47725         MinGW.
47726
47727 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47728
47729         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47730         needed.  Some compiler complained about some of them.  Problem reported
47731         by Larry Jones in
47732         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47733
47734 2006-06-21  Simon Josefsson  <jas@extundo.com>
47735
47736         * tests/test-getaddrinfo.c: New file.
47737
47738         * modules/getaddrinfo-tests: New file.
47739
47740         * MODULES.html.sh: Add inet_pton.
47741
47742         * modules/inet_pton: New file.
47743
47744 2006-06-21  Simon Josefsson  <jas@extundo.com>
47745
47746         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47747         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47748         of using the (limited) gnulib implementation on Windows XP.
47749
47750         * m4/inet_pton.m4: New file.
47751
47752 2006-06-21  Simon Josefsson  <jas@extundo.com>
47753
47754         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47755         variable.
47756
47757         * lib/socket_.h: Don't define WINVER.
47758
47759         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47760         slightly modified to work in gnulib.
47761
47762 2006-06-21  Simon Josefsson  <jas@extundo.com>
47763
47764         * doc/gnulib.texi (Windows sockets): Add.
47765
47766 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47767
47768         * lib/read-file.c (fread_file): Start with buffer allocation of
47769         0 bytes rather than 1 byte; this simplifies the code.
47770         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47771         code to free buffer and save/restore errno.
47772         (internal_read_file): Remove unused local.
47773
47774 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47775
47776         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47777         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47778         Problem reported by Denis Excoffier in
47779         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47780
47781 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47782
47783         * modules/sys_socket, modules/socklen: Include sys/types since
47784         FreeBSD 4.x's sys/socket.h needs it.
47785
47786 2006-06-19  Simon Josefsson  <jas@extundo.com>
47787
47788         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47789
47790 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47791
47792         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47793
47794 2006-06-19  Bruno Haible  <bruno@clisp.org>
47795
47796         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47797         and FULL_PATH_INTTYPES_H in angle brackets.
47798         Reported by Mark D. Baushke <mdb@gnu.org>.
47799
47800 2006-06-17  Eric Blake  <ebb9@byu.net>
47801
47802         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47803         errno.
47804
47805 2006-06-17  Bruno Haible  <bruno@clisp.org>
47806
47807         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47808         <sys/inttypes.h>.
47809
47810 2006-06-17  Bruno Haible  <bruno@clisp.org>
47811
47812         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47813         whether errno is declared. Assume <errno.h> declares errno.
47814
47815 2006-06-17  Bruno Haible  <bruno@clisp.org>
47816
47817         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47818
47819 2006-06-17  Bruno Haible  <bruno@clisp.org>
47820
47821         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47822         problem on Solaris 2.5.1.
47823
47824 2006-06-16  Eric Blake  <ebb9@byu.net>
47825
47826         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47827         * lib/unicodeio.c [!defined errno]: Likewise.
47828         * lib/strtol.c [!defined errno]: Likewise.
47829         * lib/strtod.c [!defined errno]: Likewise.
47830
47831 2006-06-15  Eric Blake  <ebb9@byu.net>
47832
47833         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47834
47835 2006-06-15  Eric Blake  <ebb9@byu.net>
47836
47837         * config/srclist.txt (ssize_t.m4): Lose sync.
47838
47839 2006-06-15  Bruno Haible  <bruno@clisp.org>
47840
47841         * modules/stdint (Files): Include m4/full-header-path.m4,
47842         m4/size_max.m4, m4/wchar_t.m4.
47843         (Makefile.am): Many more substitutions.
47844         * modules/stdint-tests: New file.
47845         * tests/test-stdint.c: New file.
47846
47847 2006-06-15  Bruno Haible  <bruno@clisp.org>
47848
47849         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47850         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47851         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47852         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47853         gl_CHECK_TYPE_SAME): New macros.
47854
47855 2006-06-15  Bruno Haible  <bruno@clisp.org>
47856
47857         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47858
47859 2006-06-15  Bruno Haible  <bruno@clisp.org>
47860
47861         * lib/stdint_.h: Rewritten to be fully auto-configured.
47862         Fixes bug on HP-UX/IA64.
47863
47864 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47865
47866         * lib/getdate.y (__attribute__): Don't define if already defined.
47867         Problem reported by Larry Jones.
47868         * lib/utimens.c (__attribute__): Likewise.
47869
47870 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47871
47872         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47873         reported by Andreas Schwab.
47874
47875 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47876             Bruno Haible  <bruno@clisp.org>
47877
47878         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47879         check for the declaration of strnlen and a run test that exposes the
47880         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47881         rpl_strndup.
47882
47883 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47884             Bruno Haible  <bruno@clisp.org>
47885
47886         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47887
47888 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47889
47890         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47891         compile test, for Tru64 4.0D.
47892
47893 2006-05-28  Karl Berry  <karl@gnu.org>
47894
47895         * config/srclist.txt (printf-args.c): lose sync.
47896
47897 2006-05-26  Martin Lambers  <marlam@marlam.de>
47898
47899         * lib/getpass.c: Updates the test for the native W32 API, and adds
47900         missing includes, thus fixing compilation warnings.
47901
47902 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47903
47904         * lib/exclude.c (exclude_fnmatch): New function.
47905         (excluded_file_name): Call exclude_fnmatch.
47906         * lib/exclude.h (excluded_file_name): New prototype
47907
47908 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47909
47910         * lib/tempname.c (small_open, large_open): New macros.
47911         (__open, __open64) [!_LIBC]: Remove.
47912         (__gen_tempname): Use small_open and large_open instead of __open
47913         and __open64.  This fixes a portability bug on HP-UX 11.11i
47914         reported by Simon Wing-Tang in
47915         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47916
47917 2006-05-24  Bruno Haible  <bruno@clisp.org>
47918
47919         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47920         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47921         Reported by Thorsten Maerz <torte@netztorte.de> via
47922         Aaron Stone <aaron@serendipity.cx>.
47923
47924 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47925
47926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47927         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47928         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47929         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47930         not really conditional on the cache.
47931         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47932
47933 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47934
47935         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47936         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47937         (my_usleep): Don't mishandle maximum value.
47938
47939 2006-05-19  Jim Meyering  <jim@meyering.net>
47940
47941         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47942
47943 2006-05-17  Bruno Haible  <bruno@clisp.org>
47944
47945         Cygwin portability.
47946         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47947
47948 2006-05-17  Bruno Haible  <bruno@clisp.org>
47949
47950         * lib/stdint_.h: Fix recognition of Cygwin.
47951
47952 2006-05-15  Bruno Haible  <bruno@clisp.org>
47953
47954         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47955         on libtool patch by Ralf Wildenhues.
47956
47957 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47958
47959         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47960         test for C99 conformance; (bool) 0.5 is an integer constant
47961         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47962         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47963
47964 2006-05-11  Simon Josefsson  <jas@extundo.com>
47965
47966         * m4/xvasprintf.m4: Fix obvious typo.
47967
47968 2006-05-11  Jim Meyering  <jim@meyering.net>
47969
47970         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47971         James Lemley.
47972
47973 2006-05-10  Simon Josefsson  <jas@extundo.com>
47974
47975         * lib/md4.c: Typo fix, update copyright years.
47976         (K1, K2): Don't use L because it turn computations into 64-bit on
47977         64-bit platforms.
47978
47979 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47980
47981         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47982         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47983         unwanted sign propagation, e.g., on hosts with 64-bit int.
47984         There still are some problems with reeelly weird theoretical hosts
47985         (e.g., 33-bit int) but it's not worth worrying about now.
47986         * lib/sha1.c (rol): Likewise.
47987         (K1, K2, K3, K4): Remove unnecessary L suffix.
47988
47989 2006-05-10  Bruno Haible  <bruno@clisp.org>
47990
47991         * lib/des.c: Cast to avoid warnings.
47992
47993 2006-05-09  Bruno Haible  <bruno@clisp.org>
47994
47995         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47996         (Depends-on): Depend also on xsize, stdarg.
47997         (configure.ac): Add gl_XVASPRINTF.
47998
47999 2006-05-09  Bruno Haible  <bruno@clisp.org>
48000
48001         * m4/xvasprintf.m4: New file.
48002
48003 2006-05-09  Bruno Haible  <bruno@clisp.org>
48004
48005         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
48006         (EOVERFLOW): Define fallback value.
48007         (xstrcat): New function.
48008         (xvasprintf): Recognize the special case of a string concatenation.
48009
48010 2006-05-08  Eric Blake  <ebb9@byu.net>
48011
48012         * gnulib-tool (func_version): Base copyright year on CVS date.
48013         (func_emit_copyright_notice): New function.
48014         (func_emit_lib_Makefile_am): Use it.
48015         (func_emit_tests_Makefile_am): Likewise.
48016         (func_import): Likewise.
48017
48018 2006-05-08  Bruno Haible  <bruno@clisp.org>
48019
48020         * modules/stdarg: New file.
48021         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
48022
48023 2006-05-08  Bruno Haible  <bruno@clisp.org>
48024
48025         * m4/stdarg.m4: New file, from GNU gettext.
48026
48027 2006-05-08  Bruno Haible  <bruno@clisp.org>
48028
48029         * config/srclist.txt (build-aux/config.rpath): different from latest
48030         release.
48031
48032 2006-05-08  Bruno Haible  <bruno@clisp.org>
48033
48034         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
48035
48036 2006-05-05  Jim Meyering  <jim@meyering.net>
48037
48038         * m4/warning.m4: New file, derived from bison's file by the same name.
48039
48040 2006-05-03  Bruno Haible  <bruno@clisp.org>
48041
48042         * lib/stdint_.h: Shorter URL.
48043         * lib/inttypes.h: Likewise.
48044
48045 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48046
48047         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
48048
48049 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48050
48051         * lib/verify.h: Document the internals better.  Most of this change
48052         was written by Bruno Haible.
48053
48054 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48055
48056         * doc/verify.texi: New file, partly based on a proposal by
48057         Bruno Haible.
48058
48059 2006-05-02  Bruno Haible  <bruno@clisp.org>
48060
48061         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
48062         test from here...
48063         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
48064
48065 2006-04-29  Bruno Haible  <bruno@clisp.org>
48066
48067         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
48068         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
48069
48070 2006-04-29  Bruno Haible  <bruno@clisp.org>
48071
48072         * gnulib-tool: Make --update option actually work.
48073
48074 2006-04-29  Bruno Haible  <bruno@clisp.org>
48075
48076         * doc/gcd.texi: New file.
48077         * doc/gnulib.texi: Include it.
48078
48079 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
48080
48081         * lib/getdate.y (get_date): When adding relative date, start with the
48082         initial time, not with the result of the first mktime call.
48083
48084 2006-04-25  Bruno Haible  <bruno@clisp.org>
48085
48086         * gnulib-tool (func_import): Output the include directives in three
48087         blocks, sorted separately.
48088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48089
48090 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
48091
48092         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
48093         to define main with arguments, for C++.  Reported by Eric Blake.
48094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
48095         Prefer 'int main ()' to 'int main (void)', for C++.
48096         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48097         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
48098         for 'main', for C99 and C++.
48099
48100 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
48101
48102         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
48103         Don't assume that exit status -1 is valid.
48104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48105         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
48106         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
48107         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
48108         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
48109         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
48110         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
48111         functions can be used without declaring them, or that you can
48112         exit with status -1.
48113         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
48114
48115 2006-04-24  Karl Berry  <karl@gnu.org>
48116
48117         * config/srclist.txt (longdouble.m4): sync lost.
48118
48119 2006-04-24  Eric Blake  <ebb9@byu.net>
48120
48121         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
48122
48123 2006-04-24  Bruno Haible  <bruno@clisp.org>
48124
48125         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
48126         poll() implementation in AIX.
48127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48128
48129 2006-04-24  Bruno Haible  <bruno@clisp.org>
48130
48131         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
48132         assigned exactly once.
48133
48134 2006-04-23  Claudio Fontana  <claudio@gnu.org>
48135             Bruno Haible  <bruno@clisp.org>
48136
48137         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
48138         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
48139         for AM_CPPFLAGS.
48140
48141 2006-04-23  Bruno Haible  <bruno@clisp.org>
48142
48143         * modules/copy-file: Depend on unistd.
48144         * modules/execute: Likewise.
48145         * modules/fatal-signal: Likewise.
48146         * modules/findprog: Likewise.
48147         * modules/mkdtemp : Likewise.
48148         * modules/pipe: Likewise.
48149         * modules/wait-process: Likewise.
48150
48151 2006-04-23  Bruno Haible  <bruno@clisp.org>
48152
48153         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
48154         condition was already detected.
48155         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48156
48157 2006-04-23  Bruno Haible  <bruno@clisp.org>
48158
48159         * lib/copy-file.c: Include <unistd.h> unconditionally.
48160         * lib/execute.c: Likewise.
48161         * lib/fatal-signal.c: Likewise.
48162         * lib/findprog.c: Likewise.
48163         * lib/mkdtemp.c: Likewise.
48164         * lib/pipe.h: Likewise.
48165         * lib/pipe.c: Likewise.
48166         * lib/wait-process.h: Likewise.
48167
48168 2006-04-23  Bruno Haible  <bruno@clisp.org>
48169
48170         * gnulib-tool (func_usage): Fix --import description. Document
48171         --update.
48172         (func_import): Create temporary file in a temporary directory, if
48173         --dry-run is specified. Silence errors from 'grep' when there are no
48174         m4 files in $m4dir.
48175         (func_create_testdir): Silence errors from 'grep' when there are no
48176         m4 files in $m4dir.
48177         Reported by Karl Berry <karl@freefriends.org>.
48178
48179 2006-04-20  Bruno Haible  <bruno@clisp.org>
48180
48181         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
48182         one argument, so that the code will be portable to Autoconf 2.60.
48183         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
48184         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48185         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
48186
48187 2006-04-19  Derek Price  <derek@ximbiot.com>
48188             Eric Blake  <ebb9@byu.net>
48189
48190         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
48191         rather than "/full/path.h".  Update comment to match.  Shorten &
48192         generalize m4_translit call via AS_TR_CPP.
48193
48194 2006-04-19  Derek Price  <derek@ximbiot.com>
48195             Eric Blake  <ebb9@byu.net>
48196
48197         * lib/inttypes.h: Correct grammar in comment.
48198
48199 2006-04-18  Derek Price  <derek@ximbiot.com>
48200             Paul Eggert  <eggert@cs.ucla.edu>
48201
48202         * modules/inttypes: New file.
48203         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
48204
48205 2006-04-18  Derek Price  <derek@ximbiot.com>
48206             Paul Eggert  <eggert@cs.ucla.edu>
48207
48208         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
48209         New files.
48210
48211 2006-04-18  Derek Price  <derek@ximbiot.com>
48212             Paul Eggert  <eggert@cs.ucla.edu>
48213
48214         * lib/inttypes.h: New file.
48215         * lib/strtoimax.c: Assume <inttypes.h>.
48216
48217 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
48218
48219         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
48220         isn't mounted.  Problem reported by Kir Kolyshkin.
48221
48222 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48223
48224         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
48225         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
48226         Derek R. Price.
48227         * lib/regex.h (RE_DUP_MAX): Update comment to match current
48228         implementation.
48229
48230 2006-04-12  Eric Blake  <ebb9@byu.net>
48231
48232         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
48233         is now done automatically by the corresponding Autoconf macro.
48234
48235 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
48236
48237         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
48238         time_r.h.
48239
48240 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48241
48242         Merge regex changes from libc, removing some of our
48243         POSIX-conformance changes that were rejected and redoing them in a
48244         less-intrusive way.
48245
48246         * lib/regcomp.c (re_compile_internal, init_dfa):
48247         Length arg is now size_t, not Idx.  All uses changed.
48248         (peek_token): Forward decl now says internal_function.
48249         (__re_error_msgid, __re_error_msgid_idx):
48250         Now static rather than extern with attribute_hidden.
48251         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
48252         For some reason libc prefers K&R style defns for external functions.
48253         (regerror) [!defined _LIBC]: Likewise.
48254         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
48255         (seek_collating_symbol_entry, lookup_collation_sequence_value):
48256         (build_range_exp, build_collating_symbol):
48257         Use K&R-style defn.
48258         (re_compile_fastmap): Use '\0' to memset, not 0.
48259         (utf8_sb_map): Make the calculations more obvious.
48260         (init_dfa, parse_bracket_exp, build_charclass_op):
48261         Call calloc and cast result, as glibc does.
48262         (init_word_char, fetch_token, peek_token, peek_token_bracket):
48263         (build_range_exp, build_collating_symbol):
48264         Now internal functions.
48265
48266         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
48267
48268         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
48269         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
48270         Don't depend on VMS; depend on __VMS instead, for POSIX
48271         namespace cleanness.
48272         (regoff_t): Define to ssize_t, not long int.
48273
48274         Remove the REG_ macros named below.  Instead, make the old names
48275         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
48276         __USE_GNU_REGEX.
48277         (REG_BACKSLASH_ESCAPE_IN_LISTS):
48278         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
48279         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
48280         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
48281         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
48282         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
48283         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
48284         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
48285         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
48286         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
48287         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
48288         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
48289         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
48290         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
48291         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
48292         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
48293         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
48294         (REG_NREGS):
48295         Remove.  All uses replaced by the old RE_* names.
48296         (RE_BACKSLASH_ESCAPE_IN_LISTS):
48297         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
48298         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
48299         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
48300         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
48301         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
48302         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
48303         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
48304         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
48305         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
48306         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
48307         Don't bother having these macros be independent of each others'
48308         values, since they no longer exist in the POSIX name space.
48309
48310         Rename the following member names back to their old names,
48311         unless !__USE_GNU_REGEX.  All uses changed back.
48312         (buffer): Renamed from re_buffer.
48313         (allocated): Renamed from re_allocated.
48314         (used): Renamed from re_used.
48315         (syntax): Renamed from re_syntax.
48316         (fastmap): Renamed from re_fastmap.
48317         (translate): Renamed from re_translate.
48318         (can_be_null): Renamed from re_can_be_null.
48319         (regs_allocated): Renamed from re_regs_allocated.
48320         (fastmap_accurate): Renamed from re_fastmap_accurate.
48321         (no_sub): Renamed from re_no_sub.
48322         (not_bol): Renamed from re_not_bol.
48323         (not_eol): Renamed from re_not_eol.
48324         (newline_anchor): Renamed from re_newline_anchor.
48325         (num_regs): Renamed from rm_num_regs.
48326         (start): Renamed from rm_start.
48327         (end): Renamed from rm_end.
48328
48329         (free_state): Move up a bit.
48330
48331         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
48332         #define to be empty.
48333         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
48334         when that is what is intended.
48335         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
48336         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
48337         (MAX): New macro.
48338         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
48339         All uses changed back to re_malloc, etc.  It's now the caller's
48340         responsibility to check for overflow; all callers changed.
48341         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
48342         (re_x2nrealloc): Remove.
48343         (free_state): Remove decl.
48344
48345         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
48346         (re_set_registers, re_exec):
48347         Use K&R-style defn.
48348
48349         2006-01-31  Roland McGrath  <roland@redhat.com>
48350
48351         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
48352         Reported by Mike Frysinger <vapier@gentoo.org>.
48353
48354         2006-01-15  Andreas Jaeger  <aj@suse.de>
48355
48356         [BZ #1950]
48357         * lib/regex_internal.c (re_string_reconstruct): Adjust for
48358         build_wcs_upper_buffer change.
48359         (build_wcs_upper_buffer): Change return type.
48360
48361         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
48362
48363         * lib/regex_internal.h: Include <stdint.h> if available.
48364
48365         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
48366
48367         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
48368
48369         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48370
48371         * lib/regcomp.c: Adjust for changed secondary hash function.
48372
48373         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
48374
48375         * lib/regex.h: Pretty printing.
48376         Clean up namespace a bit.
48377
48378         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
48379
48380         * lib/regexec.c (update_cur_sifted_state, check_arrival,
48381         check_arrival_add_next_nodes): Avoid using uninitialized variable.
48382
48383         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48384                     Ulrich Drepper  <drepper@redhat.com>
48385
48386         [BZ #1302]
48387         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
48388         changed.
48389         (bitset_word_t): Renamed from bitset_word.  All uses changed.
48390
48391         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
48392
48393         [BZ #281]
48394         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
48395         * lib/regcomp.c: Remove unnecessary uses of
48396         unsigned RE_TRANSLATE_TYPE.
48397         * lib/regex_internal.h: Likewise.
48398         * lib/regex_internal.c: Likewise.
48399         * lib/regexec.c: Likewise.
48400         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
48401
48402         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
48403
48404         * lib/regexec.c (find_recover_state): Remove unnecessary
48405         initialization.
48406         (transit_state_bkref): Make DFA a const pointer.
48407         (get_subexp): Likewise.
48408         (check_arrival): Likewise.
48409         (update_cur_sifted_state): Likewise.
48410         (re_search_internal): Likewise.
48411         (prune_impossible_nodes): Likewise.
48412         (acquire_init_state_context): Likewise.
48413         (proceed_next_node): Likewise.
48414         (set_regs): Likewise.
48415         (free_fail_stack_return): Likewise.
48416         (check_arrival_expand_ecl): Mark DFA parameter as const.
48417         (check_arrival_expand_ecl_sub): Likewise.
48418         (check_subexp_limits): Likewise.
48419         (sub_epsilon_src_nodes):  Likewise.
48420         (add_epsilon_src_nodes):  Likewise.
48421         (merge_state_array): Likewise.
48422         (update_regs): Likewise.
48423         (build_trtable): Likewise.
48424         (sift_states_backward): Mark MCTX parameter as const.
48425         (build_sifted_states): Likewise.
48426         (update_cur_sifted_state): Likewise.
48427         (sift_states_mkref): Likewise.
48428         (check_arrival_expand_ecl): Mark eclosure as const.
48429         (check_dst_limits_calc_pos_1): Likewise.
48430         * lib/regex_internal.h (re_match_context_t): Make dfa a const
48431         pointer.
48432
48433         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
48434
48435         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
48436         (transit_state_sb): Likewise.
48437         (transit_state_mb): Likewise.
48438         (sift_states_iter_mb): Likewise.
48439         (check_arrival_add_next_nodes): Likewise.
48440         (check_node_accept_bytes): Change first parameter to pointer-to-const.
48441         [_LIBC] (re_search_2_stub): Use mempcpy.
48442
48443         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
48444         mbrtowc for very simple UTF-8 case.
48445
48446         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
48447         a pointer-to-const.
48448         (re_acquire_state_context): Likewise.
48449         * lib/regex_internal.h: Adjust prototypes.
48450
48451         * lib/regex.c: Prevent using C++ compilers.
48452
48453         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
48454         (re_acquire_state_context): Likewise.
48455
48456 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48457
48458         * modules/regex (Depends-on): Add ssize_t.
48459
48460 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48461
48462         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
48463         translation table.
48464
48465 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48466
48467         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
48468
48469 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
48470             Bruno Haible  <bruno@clisp.org>
48471
48472         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
48473         <sys/types.h> and <inttypes.h>.
48474
48475 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48476
48477         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
48478         `__error_t_defined', so argp.h will not typedef the former.
48479
48480 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48481
48482         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
48483         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
48484         glibc names.  Even if glibc is changed to conform to POSIX, the
48485         traditional names will be available anyway, since regex depends on
48486         the extensions module.  Also, fix a longstanding typo in the
48487         implementation of Spencer ERE test #75 from grep 2.3.  Problems
48488         reported by Emanuele Giaquinta.  Also, change sense of cached
48489         variable, so that the message makes sense.
48490
48491 2006-03-24  Simon Josefsson  <jas@extundo.com>
48492
48493         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
48494         including some doc fixes.
48495         (base64_encode_alloc): Fix +1 bug on allocation failures.
48496
48497 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48498
48499         * lib/base64.c (base64_encode): Do not read past end of array with
48500         unsanitized input on systems with CHAR_BIT > 8.
48501
48502 2006-03-24  Eric Blake  <ebb9@byu.net>
48503
48504         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
48505
48506 2006-03-22  Karl Berry  <karl@gnu.org>
48507
48508         * config/srclist.txt (*setenv.[ch]): get from coreutils.
48509         * config/srclistvars.sh (COREUTILS): new var.
48510
48511 2006-03-17  Jim Meyering  <jim@meyering.net>
48512
48513         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
48514         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
48515
48516 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48517
48518         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
48519         no longer needs it.  Instead, check that regoff_t is as least
48520         as wide as ptrdiff_t.
48521
48522         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
48523         so that our regex.h stays compatible with the installed regex.
48524         This is helpful for installers who configure --without-included-regex.
48525         Problem reported by Emanuele Giaquinta.
48526
48527 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48528
48529         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
48530         Typedef to long int, not to off_, as POSIX will likely change
48531         in that direction.
48532
48533 2006-03-15  Eric Blake  <ebb9@byu.net>
48534
48535         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
48536
48537 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48538
48539         * lib/argp-help.c (validate_uparams): Fix typo
48540         * lib/argp-parse.c (argp_default_options): Consistently begin help
48541         messages with a lowercase letter.
48542
48543 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
48544
48545         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
48546         overrun buffers and shouldn't be used (much as gets shouldn't be
48547         used).
48548         * lib/time_r.c (asctime_r, ctime_r): Likewise.
48549
48550 2006-03-08  Simon Josefsson  <jas@extundo.com>
48551
48552         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
48553         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48554
48555 2006-03-08  Simon Josefsson  <jas@extundo.com>
48556
48557         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
48558         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48559
48560 2006-03-08  Simon Josefsson  <jas@extundo.com>
48561
48562         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
48563         signal that configure disabled the device.
48564
48565 2006-03-08  Simon Josefsson  <jas@extundo.com>
48566
48567         * build-aux/maint.mk: Fix refresh-po, to handle no translated
48568         languages.
48569
48570 2006-03-07  Simon Josefsson  <jas@extundo.com>
48571
48572         * modules/getopt (Depends-on): Add unistd.
48573
48574         * modules/unistd: New file.
48575
48576 2006-03-07  Simon Josefsson  <jas@extundo.com>
48577
48578         * modules/gc-random: New file.
48579
48580 2006-03-07  Simon Josefsson  <jas@extundo.com>
48581
48582         * m4/unistd_h.m4: New file.
48583
48584 2006-03-07  Simon Josefsson  <jas@extundo.com>
48585
48586         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
48587         test to be side-effect free by storing the result in the cache
48588         variable gl_cv_lib_readline, and moving the assignment of
48589         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
48590         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48591
48592 2006-03-07  Simon Josefsson  <jas@extundo.com>
48593
48594         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
48595         error on missing devices (the functions will return an error).
48596
48597         * m4/gc.m4: Move random stuff to gc-random.m4
48598
48599 2006-03-07  Simon Josefsson  <jas@extundo.com>
48600
48601         * lib/unistd_.h: New file.
48602
48603 2006-03-07  Simon Josefsson  <jas@extundo.com>
48604
48605         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
48606
48607 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48608
48609         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
48610         Problem reported by Juan Manuel Guerrero.
48611
48612 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48613
48614         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
48615         the unistd module.
48616         * lib/getlogin_r.c: Likewise.
48617         * lib/getlogin_r.h: Likewise.
48618         * lib/glob.c: Likewise.
48619         * lib/pagealign_alloc.c: Likewise.
48620         * lib/unistd_.h: Remove; no longer needed.
48621
48622 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48623
48624         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48625         Add unistd.
48626         * modules/c-stack (Depends-on): Add unistd.
48627         * modules/getlogin_r: Likewise.
48628         * modules/glob: Likewise.
48629         * modules/pagealign_alloc: Likewise.
48630         * modules/unistd (Files): Remove lib/unistd_.h.
48631         (EXTRA_DIST): Remove.
48632         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48633         need unistd_.h.
48634         (MOSTLYCLEANFILES): Remove unistd.h-t.
48635
48636 2006-03-03  Simon Josefsson  <jas@extundo.com>
48637
48638         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48639
48640 2006-03-03  Simon Josefsson  <jas@extundo.com>
48641
48642         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48643         libidn and bison.
48644
48645 2006-03-03  Simon Josefsson  <jas@extundo.com>
48646
48647         * build-aux/maint.mk: Add indent target.
48648
48649 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48650
48651         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48652         our replacement poll.h in any case, to avoid a differing
48653         declaration from a system header.  Seen on AIX.
48654
48655 2006-03-01  Simon Josefsson  <jas@extundo.com>
48656
48657         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48658         <kasal@ucw.cz>.
48659
48660 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48661
48662         * modules/gettime (Depends-on): Add extensions module.
48663         * modules/nanosleep (Depends-on): Likewise.
48664         * modules/settime (Depends-on): Likewise.
48665
48666 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48667
48668         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48669         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48670         pedantically.
48671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48672         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48673
48674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48675         not "==".  Reported by Ralf Wildenhues.
48676
48677 2006-03-01  Karl Berry  <karl@gnu.org>
48678
48679         * doc/Copyright/request-*: new files, synced from gnuorg.
48680
48681 2006-03-01  Karl Berry  <karl@gnu.org>
48682
48683         * config/srclist.txt (Copyright/*): new entries.
48684
48685 2006-02-28  Simon Josefsson  <jas@extundo.com>
48686
48687         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48688
48689 2006-02-27  Simon Josefsson  <jas@extundo.com>
48690
48691         * lib/base64.h: Indent #define's.  From Jim Meyering
48692         <jim@meyering.net>.
48693
48694 2006-02-27  Jim Meyering  <jim@meyering.net>
48695
48696         Revert the change of 2006-02-24, so these files can continue
48697         to be sync'd from gettext.
48698         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48699         of `config.h'.
48700
48701 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48702
48703         * modules/intprops: New file.
48704         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48705         Add intprops.
48706         * modules/getloadavg (Files): Remove lib/intprops.h.
48707         (Depends-on): Add intprops.
48708         * modules/human: Likewise.
48709         * modules/inttostr: Likewise.
48710         * modules/openat: Likewise.
48711         * modules/sig2str: Likewise.
48712         * modules/userspec: Likewise.
48713         * modules/utimecmp: Likewise.
48714         * modules/xnanosleep: Likewise.
48715         * modules/xstrtol: Likewise.
48716
48717 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48718
48719         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48720         * modules/lock-tests (TESTS): Use $(EXEEXT).
48721         * modules/tls-tests: Likewise.
48722         * modules/argp-tests: Likewise.
48723         (check_PROGRAMS): New var, replacing...
48724         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48725
48726 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48727
48728         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48729         `config.h'.
48730
48731 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48732
48733         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48734
48735 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48736
48737         Sync from coreutils.
48738         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48739         gl_CHDIR_SAFER.
48740
48741 2006-02-22  Jim Meyering  <jim@meyering.net>
48742
48743         Sync from coreutils.
48744         * m4/chdir-safer.m4: New file.
48745
48746 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48747
48748         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48749         AT_FDCWD exceeds INT_MAX.
48750         * lib/openat.h (AT_FDCWD): Likewise.
48751
48752 2006-02-17  Eric Blake  <address@hidden>
48753
48754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48755
48756 2006-02-16  Simon Josefsson  <jas@extundo.com>
48757
48758         * modules/getaddrinfo (Depends-on): Add sys_socket.
48759
48760 2006-02-15  Simon Josefsson  <jas@extundo.com>
48761
48762         * build-aux/maint.mk: Add dsyntax-check rule.
48763
48764 2006-02-15  Eric Blake  <ebb9@byu.net>
48765
48766         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48767         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48768         'present but cannot compile' warnings on cygwin.
48769         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48770         use ws2tcpip.h if sys/socket.h works.
48771         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48772         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48773
48774 2006-02-14  Simon Josefsson  <jas@extundo.com>
48775
48776         * modules/maintainer-makefile (Files): Rename.
48777
48778         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48779         and (the local) Makefile.cfg to maint-cfg.mk.
48780
48781         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48782         to the latter.
48783
48784         * modules/maintainer-makefile: New module.
48785
48786         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48787         severaly stripped to make it possible to build it up from scratch
48788         with reliable tests.
48789
48790         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48791         fixes to permit overriding the default actions when configure and
48792         makefile are not available.
48793
48794 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48795
48796         Sync from coreutils.
48797         * modules/lstat (Depends-on): Don't depend on xalloc.
48798         (License): Change from GPL to LGPL, since this is now simply a
48799         replacement for a libc function.
48800
48801 2006-02-14  Jim Meyering  <jim@meyering.net>
48802
48803         Sync from coreutils.
48804
48805         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48806         failure on deficient systems, and simplify gnulib lgpl dependencies.
48807         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48808         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48809
48810         * lib/xalloc-die.c: Remove unused definition of N_.
48811
48812 2006-02-14  Jim Meyering  <jim@meyering.net>
48813
48814         Sync from coreutils.
48815         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48816         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48817         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48818         double-quote uses of that variable, to accommodate the rare case in
48819         which getmntent is available in none of the libraries checked.  This
48820         happens at least on FreeBSD 5.0.
48821
48822 2006-02-13  Simon Josefsson  <jas@extundo.com>
48823
48824         * gnulib-tool (Usage): Fix --import, from
48825         karl@freefriends.org (Karl Berry).
48826
48827 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48828
48829         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48830
48831 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48832
48833         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48834         "autoupdate" on 2005-12-12.
48835
48836 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48837
48838         * modules/closeout (Depends-on): Remove atexit.
48839
48840 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48841
48842         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48843         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48844
48845 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48846
48847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48848         __EXTENSIONS__ if this causes compilation to fail.  Problem
48849         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48850         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48851
48852 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48853
48854         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48855         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48856         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48857         All uses changed.
48858
48859 2006-01-26  Simon Josefsson  <jas@extundo.com>
48860
48861         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48862         prototype is visible on mingw32.
48863
48864         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48865         for mingw32.
48866
48867         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48868         mingw32).
48869
48870 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48871
48872         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48873         attempt to open for write; this always fails, at least on POSIX
48874         hosts.  This reinstates the 2006-01-09 change, which was
48875         inadvertently removed.
48876
48877 2006-01-26  Bruno Haible  <bruno@clisp.org>
48878
48879         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48880         Reported by Paul Eggert.
48881
48882 2006-01-26  Bruno Haible  <bruno@clisp.org>
48883             Paul Eggert  <eggert@cs.ucla.edu>
48884
48885         * lib/stdbool_.h (_Bool)
48886         [(! (defined __cplusplus || defined __BEOS__)
48887           && !defined __GNUC__
48888           && !(defined __HP_cc || defined __xlc__
48889                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48890                || defined __sgi))]:
48891         #define to signed char in these cases too; this simplifies
48892         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48893         etc., separately) and makes it more conservative.
48894
48895 2006-01-25  Simon Josefsson  <jas@extundo.com>
48896
48897         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48898         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48899         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48900
48901 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48902
48903         * lib/argp-namefrob.h: Bugfix. Remove stray #
48904
48905 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48906
48907         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48908         so that we test the test.
48909         Check for yet another HP-UX cc bug involving *bool |= bool.
48910
48911 2006-01-25  Karl Berry  <karl@gnu.org>
48912
48913         * config/srclist.txt (vasnprintf.c): sync lost.
48914
48915 2006-01-25  Jim Meyering  <jim@meyering.net>
48916
48917         Sync from the stable (b5) branch of coreutils:
48918
48919         * lib/fts.c (fts_children): Don't let close() clobber errno from
48920         failed fchdir().
48921
48922         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48923         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48924         a dangling symlink.  That can also happen at least for ELOOP.
48925         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48926         FYI, this bug predates the inclusion of fts.c in coreutils.
48927
48928         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48929         in their own block, so pre-c99 compilers don't object.
48930
48931         Avoid the double-free (first in fts_read, second in fts_close) that
48932         would occur when an `active' directory is made inaccessible (e.g.,
48933         via chmod a-x) during a traversal.
48934         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48935         before returning.  Reproduce this failure by
48936         mkdir -p a/b; cd a; chmod a-x . b
48937         Reported by Stavros Passas.
48938
48939 2006-01-25  Jim Meyering  <jim@meyering.net>
48940
48941         * lib/fileblocks.c: Remove more useless parentheses.
48942         * lib/readutmp.h: Likewise.
48943
48944 2006-01-25  Bruno Haible  <bruno@clisp.org>
48945
48946         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48947         warnings.
48948         Reported by Paul Eggert.
48949
48950 2006-01-25  Bruno Haible  <bruno@clisp.org>
48951
48952         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48953         rid of a trap command. For Solaris sh.
48954         Reported by Mark D. Baushke <mdb@gnu.org>.
48955
48956 2006-01-24  Simon Josefsson  <jas@extundo.com>
48957
48958         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48959         Bruno.
48960
48961 2006-01-24  Karl Berry  <karl@gnu.org>
48962
48963         * config/srclist.txt (argp-namefrob.h): sync lost.
48964
48965 2006-01-24  Jim Meyering  <jim@meyering.net>
48966
48967         * modules/openat (Files): Add lib/intprops.h.
48968         From Mark D. Baushke.
48969
48970 2006-01-24  Jim Meyering  <jim@meyering.net>
48971
48972         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48973         Reported by Mark D. Baushke.
48974
48975 2006-01-24  Jim Meyering  <jim@meyering.net>
48976
48977         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48978
48979 2006-01-24  Bruno Haible  <bruno@clisp.org>
48980
48981         * modules/strnlen (Maintainer): Change from glibc to all.
48982
48983 2006-01-24  Bruno Haible  <bruno@clisp.org>
48984
48985         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48986         Patch by Paul Eggert.
48987
48988 2006-01-24  Bruno Haible  <bruno@clisp.org>
48989
48990         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48991         already has it.
48992         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48993         2005-11-26.
48994
48995         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48996         'signed char' to avoid problems with the built-in _Bool type.
48997         Reported by Paul Eggert on 2005-11-26.
48998
48999 2006-01-24  Bruno Haible  <bruno@clisp.org>
49000
49001         * gnulib-tool (func_import): Avoid constructing complicated sed
49002         expressions inside backquote.
49003         Report and solution by Mark D. Baushke <mdb@gnu.org>.
49004
49005 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
49006
49007         These changes imported from libc.
49008         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
49009         test and two separate function calls.
49010         * lib/strndup.c (__strndup): Add libc_hidden_def.
49011
49012 2006-01-23  Simon Josefsson  <jas@extundo.com>
49013
49014         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
49015         Remove the test_*_SOURCES variable: automake infers it by default.
49016         * modules/tls-tests: Likewise.
49017
49018 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49019
49020         Work around porting bugs reported by Dieter in
49021         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
49022         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
49023         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
49024         Include "getopt.h" first, to check interface.
49025         (getenv): Declare only if defined HAVE_DECL_GETENV &&
49026         !HAVE_DECL_GETENV.
49027         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
49028         (__strndup): Revert to K&R-style function dfns, the glibc style.
49029         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
49030         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
49031         Include strnlen.h first, to get prototype properly.
49032         (strnlen): Renamed from __strnlen.
49033         Remove weak alias.
49034
49035 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49036
49037         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
49038
49039 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49040
49041         * config/srclist.txt: Adjust to reflect glibc reorganization.
49042         This affects only comments.
49043
49044 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49045
49046          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
49047          Reported by Bruce Korb <bkorb@gnu.org>.
49048
49049 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
49050
49051         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
49052         to pacify gcc -Wswitch-default.
49053
49054 2006-01-22  Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
49057         temporary buffer for sprintf, take into account the precision also
49058         for 'd', 'i', 'u', 'o', 'x', 'X'.
49059
49060 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
49061
49062         * modules/argp-tests: New module
49063         * tests/test-argp.c: New file
49064         * tests/test-argp-2.sh: New file
49065
49066 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
49067
49068         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
49069         (__argp_base_name): Removed
49070         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
49071         typo.
49072         (__argp_base_name): Provide macro definition or extern declaration
49073         depending on the configuration
49074
49075 2006-01-20  Simon Josefsson  <jas@extundo.com>
49076
49077         * modules/inet_ntop (Depends-on): Depend on sys_socket.
49078
49079 2006-01-20  Simon Josefsson  <jas@extundo.com>
49080
49081         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
49082
49083 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49084
49085         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
49086         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
49087         Suggested by Bruno Haible.
49088
49089 2006-01-20  Karl Berry  <karl@gnu.org>
49090
49091         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
49092         until changes propagate, I guess.
49093
49094 2006-01-19  Simon Josefsson  <jas@extundo.com>
49095
49096         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
49097
49098 2006-01-19  Simon Josefsson  <jas@extundo.com>
49099
49100         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
49101
49102 2006-01-19  Simon Josefsson  <jas@extundo.com>
49103
49104         * gnulib-tool: Set check_PROGRAMS.
49105
49106         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
49107         modules/des-tests, modules/gc-arcfour-tests,
49108         modules/gc-arctwo-tests, modules/gc-des-tests,
49109         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
49110         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
49111         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
49112         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
49113         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
49114         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
49115         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
49116         test_*_SOURCES.
49117
49118 2006-01-18  Simon Josefsson  <jas@extundo.com>
49119
49120         * modules/socklen (Depends-on): Depend on sys_socket.
49121
49122 2006-01-18  Simon Josefsson  <jas@extundo.com>
49123
49124         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
49125         modules/des-tests, modules/gc-arcfour-tests,
49126         modules/gc-arctwo-tests, modules/gc-des-tests,
49127         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
49128         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
49129         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
49130         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
49131         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
49132         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
49133         $(EXEEXT) to automake TESTS variable, for mingw32.
49134
49135 2006-01-17  Simon Josefsson  <jas@extundo.com>
49136
49137         * modules/socklen (Include): Need sys/socket.h.
49138
49139 2006-01-17  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/ssize_t (Include): Add <sys/types.h>.
49142
49143 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
49144
49145         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
49146         it's not portable and it doesn't work with cross-compiles.
49147         Problem reported by Bruno Haible.  Fix missing-$ typo in
49148         'test "gl_cv_ignore_unused_libraries" ...' that prevented
49149         -zignore from being used with Sun's C compiler.
49150
49151 2006-01-12  Simon Josefsson  <jas@extundo.com>
49152
49153         * lib/base64.c: Fix warning, reported by Bruno Haible
49154         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
49155
49156 2006-01-12  Bruno Haible  <bruno@clisp.org>
49157
49158         * modules/ldd: New file.
49159         * build-aux/ldd.sh.in: New file.
49160         * MODULES.html.sh (Support for building libraries and executables): Add
49161         ldd.
49162
49163 2006-01-12  Bruno Haible  <bruno@clisp.org>
49164
49165         * m4/ldd.m4: New file.
49166
49167 2006-01-12  Bruno Haible  <bruno@clisp.org>
49168
49169         * gnulib-tool (func_import, func_create_testdir): Don't go into an
49170         endless loop while replacing $auxdir with build-aux.
49171
49172 2006-01-11  Simon Josefsson  <jas@extundo.com>
49173
49174         * lib/stdint_.h (SIZE_MAX): Add missing (.
49175
49176 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
49177
49178         Sync from coreutils.
49179         * lib/md5.c: Fix commentary typos.
49180         (alignof, UNALIGNED_P): No need for a GCC-specific version.
49181         * lib/md5.h (__attribute__): Remove; unused.
49182         * lib/sha1.c: Fix commentary to match md5 better.
49183         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
49184         so that we don't need to worry about alignment.  All uses changed.
49185         This merges the 2005-10-28 md5 change into sha1.
49186
49187 2006-01-11  Jim Meyering  <jim@meyering.net>
49188
49189         Sync from coreutils.
49190         * lib/md5.c (OP): Fix spacing.
49191
49192 2006-01-11  Bruno Haible  <bruno@clisp.org>
49193
49194         Ensure automatic ordering between gl_LOCK and gl_ARGP.
49195         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
49196         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
49197
49198 2006-01-11  Bruno Haible  <bruno@clisp.org>
49199
49200         Ensure automatic ordering between gl_LOCK and gl_ARGP.
49201         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
49202         the "early" section as well.
49203
49204 2006-01-11  Bruno Haible  <bruno@clisp.org>
49205
49206         Avoid "ar: no archive members specified" error on MacOS X.
49207         * gnulib-tool (func_modules_add_dummy): New function.
49208         (func_import, func_create_testdir): Invoke it.
49209
49210 2006-01-11  Bruno Haible  <bruno@clisp.org>
49211
49212         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
49213         with $auxdir in AC_CONFIG_FILES statements.
49214
49215 2006-01-11  Bruno Haible  <bruno@clisp.org>
49216
49217         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49218         Initialize also noinst_HEADERS to empty.
49219
49220 2006-01-11  Bruno Haible  <bruno@clisp.org>
49221
49222         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
49223         variables.
49224         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
49225         autoreconf.
49226
49227 2006-01-11  Bruno Haible  <bruno@clisp.org>
49228
49229         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
49230         overridable by the user.
49231         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49232
49233 2006-01-10  Simon Josefsson  <jas@extundo.com>
49234
49235         * modules/sys_socket: New file.
49236
49237 2006-01-10  Simon Josefsson  <jas@extundo.com>
49238
49239         * m4/sys_socket_h.m4: New file.
49240
49241 2006-01-10  Simon Josefsson  <jas@extundo.com>
49242
49243         * lib/socket_.h: New file.
49244
49245 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49246
49247         * modules/readutmp (Maintainer): Add myself.
49248
49249 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49250
49251         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
49252         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
49253         People who are still concerned with buggy memcmp implementations
49254         can invoke gl_FUNC_MEMCMP themselves.
49255
49256 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49257
49258         * lib/regex_internal.h (BITSET_WORD_BITS):
49259         Work around a bug in 64-bit PGC (before version 6.1-2), where the
49260         preprocessor mishandles large unsigned values as if they were signed.
49261         Problem reported by Claudio Fontana in
49262         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
49263
49264 2006-01-10  Jim Meyering  <jim@meyering.net>
49265
49266         Avoid the double-free (first in fts_read, second in fts_close) that
49267         would occur when an `active' directory is made inaccessible (e.g.,
49268         via chmod a-x) during a traversal.
49269         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
49270         before returning.  Reproduce this failure by
49271         mkdir -p a/b; cd a; chmod a-x . b
49272         Reported by Stavros Passas.
49273
49274         Sync from coreutils.
49275         * lib/sha1.c: Tweak grammar in a comment.
49276
49277 2006-01-10  Jim Meyering  <jim@meyering.net>
49278
49279         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
49280         Patch by Joerg Sonnenberger.
49281
49282 2006-01-10  Bruno Haible  <bruno@clisp.org>
49283
49284         * modules/readutmp: Depend on module free.
49285         * modules/strtok_r: Depend on module restrict.
49286
49287 2006-01-10  Bruno Haible  <bruno@clisp.org>
49288
49289         * modules/gettext (configure.ac): Add an invocation of
49290         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
49291
49292 2006-01-10  Bruno Haible  <bruno@clisp.org>
49293
49294         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
49295         Reported by Werner Lemberg <wl@gnu.org>.
49296
49297 2006-01-10  Bruno Haible  <bruno@clisp.org>
49298
49299         * lib/localcharset.c: Update from GNU gettext.
49300
49301 2006-01-10  Bruno Haible  <bruno@clisp.org>
49302
49303         * lib/argp.h (__const): Remove macro. Use const instead.
49304         * lib/argp-fmtstream.h (__const): Likewise.
49305         * lib/glob_.h (__const): Remove macro.
49306         * lib/glob-libc.h: Use const instead of __const.
49307
49308 2006-01-10  Bruno Haible  <bruno@clisp.org>
49309
49310         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
49311         variable.
49312         Needed to avoid an automake error regarding the 'gettext' module.
49313
49314 2006-01-09  Simon Josefsson  <jas@extundo.com>
49315
49316         * modules/inet_ntop (Depends-on): Add restrict.
49317
49318 2006-01-09  Simon Josefsson  <jas@extundo.com>
49319
49320         * modules/gc-rijndael-tests (License): Put under LGPL.
49321
49322         * modules/gc-des-tests (License): Likewise.
49323
49324         * modules/gc-arcfour-tests (License): Likewise.
49325
49326         * modules/gc-arctwo-tests (License): Likewise.
49327
49328         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
49329
49330         * modules/gc-hmac-sha1-tests (Files): Likewise.
49331
49332         * modules/gc-hmac-md5-tests (License): Likewise.
49333
49334         * modules/gc-sha1-tests (License): Likewise.
49335
49336         * modules/gc-md5-tests (License): Likewise.
49337
49338         * modules/gc-md4-tests (License): Likewise.
49339
49340         * modules/gc-md2-tests (License): Likewise.
49341
49342         * modules/gc-tests (License): Likewise.
49343
49344         * modules/des-tests (License): Likewise.
49345
49346         * modules/md4-tests (License): Likewise.
49347
49348         * modules/md2-tests (License): Likewise.
49349
49350 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49351
49352         Sync from coreutils:
49353
49354         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
49355         * modules/lib-ignore: New file.
49356         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
49357         chdir-safer.m4, lchmod.m4.
49358         * modules/openat: Add mkdirat.c, openat-priv.h.
49359
49360 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49361
49362         Sync from coreutils.
49363         * m4/lib-ignore.m4: New file.
49364         * m4/lchmod.m4: New file.
49365
49366 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49367
49368         Sync from coreutils.
49369         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
49370         for write access: POSIX says that must fail.
49371         * lib/fts.c (diropen): Likewise.
49372         * lib/save-cwd.c (save_cwd): Likewise.
49373         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
49374         well, for minor improvements on hosts that lack O_DIRECTORY.
49375         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
49376         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
49377         Fall back on chown if open failed with EACCES.
49378
49379         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
49380         Report an error at compile-time if only a 1-second nominal clock
49381         resolution is found.
49382
49383         * lib/lchmod.h: New file.
49384         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
49385         (make_dir_parents): Use lchown rather than chown, and
49386         lchmod rather than chmod.
49387
49388         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
49389         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
49390         "proc" reported by n0dalus.
49391
49392         * lib/mountlist.c: Include <limits.h>.
49393         (dev_from_mount_options)
49394         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
49395         New function.  It no longer assumes "dev=" has the System V meaning
49396         on Linux (since it doesn't).  It also parses "dev=" more carefully.
49397         (read_file_system_list)
49398         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
49399         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
49400         dev= in that case.
49401
49402         * lib/posixtm.h (PDS_PRE_2000): New macro.
49403         * lib/posixtm.c (year): Arg is now syntax_bits rather than
49404         allow_century.  All usages changed.  Reject dates outside the range
49405         1969-1999 if PDS_PRE_2000 is used.
49406
49407 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49408
49409         Sync from coreutils.
49410         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
49411         (Time of day items): Mention the possibility of leap seconds.
49412         Problem reported by Dr. David Alan Gilbert.
49413
49414 2006-01-09  Jim Meyering  <jim@meyering.net>
49415
49416         Sync from coreutils.
49417
49418         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
49419
49420         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
49421
49422         * lib/modechange.c (mode_compile): Reject an invalid mode string
49423         that starts with an octal digit.  From Andreas Gruenbacher.
49424
49425         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
49426         and dup to open_safer and dup_safer, respectively.
49427         (openat_permissive): Fix typo in comment.
49428
49429         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
49430         "gettext.h"; either no longer needed or are guaranteed by openat.h.
49431         (_): Remove; no longer needed.
49432         (openat): Renamed from rpl_openat; no need for rpl_openat
49433         since openat.h renames openat for us.
49434         Replace most of the body with a call to openat_permissive,
49435         to avoid duplicate code.
49436         Port to (probably hypothetical) environments were mode_t is
49437         wider than int.
49438         (openat_permissive): Require mode arg, so that we can check
49439         types better.  Put it just after flags.  Change cwd failure
49440         indicator from pointer-to-bool to pointer-to-errno-value.
49441         All callers changed.
49442         Invoke openat_save_fail and/or openat_restore_fail if
49443         cwd_errno is null, so that openat can call us.
49444         (openat_permissive, fdopendir, fstatat, unlinkat):
49445         Simplify errno handling to avoid some duplicate code,
49446         as it's OK to set errno on success.
49447         * lib/openat.h: Revamp code so that function macros depend on
49448         __OPENAT_PREFIX only, not also on AT_FDCWD.
49449         (openat_ro): Remove.  Caller changed to use openat_permissive.
49450         (openat_permissive): Now a macro, if not a function.
49451         (openat_restore_fail, openat_save_fail): Now always functions,
49452         since mkdirat needs them even if __OPENAT_PREFIX is defined.
49453
49454         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
49455         and openat.c.
49456         * lib/mkdirat.c: Include openat-priv.h.
49457         Remove definitions of macros defined therein.
49458         * lib/openat.c: Likewise.
49459
49460         * lib/mkdirat.c (mkdirat): New file and function.
49461         * lib/openat.h (mkdirat): Declare.
49462
49463         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
49464
49465         * lib/openat.h (openat_permissive): Declare.
49466         (openat_ro): Define.
49467
49468         * lib/openat.c (EXPECTED_ERRNO): New macro.
49469         (openat_permissive): New function -- used in remove.c rewrite.
49470         (all functions): Set errno just before returning, only if there
49471         was an actual failure.
49472         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
49473
49474         Emulate openat-family functions using Linux's procfs, if possible.
49475         Idea and some code based on Ulrich Drepper's glibc changes.
49476
49477         * lib/openat.c: (BUILD_PROC_NAME): New macro.
49478         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
49479         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
49480         before falling back on save_cwd and restore_cwd.
49481         (fdopendir, fstatat, unlinkat): Likewise.
49482
49483         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
49484         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
49485
49486         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
49487         as second argument to va_arg.  Otherwise, some versions of gcc
49488         warn that `if this code is reached, the program will abort'.
49489
49490 2006-01-09  Jim Meyering  <jim@meyering.net>
49491
49492         Sync from coreutils.
49493         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
49494         Require openat-priv.h.
49495
49496 2006-01-09  Bruno Haible  <bruno@clisp.org>
49497
49498         * modules/strnlen (Include): Use strnlen.h.
49499
49500 2006-01-09  Bruno Haible  <bruno@clisp.org>
49501
49502         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
49503
49504 2006-01-09  Bruno Haible  <bruno@clisp.org>
49505
49506         * lib/sysexit_.h (EX_OK): New macro.
49507         Suggested by Martin Lambers <marlam@marlam.de>.
49508
49509 2006-01-09  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
49512         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
49513
49514 2006-01-09  Bruno Haible  <bruno@clisp.org>
49515
49516         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
49517         numbers.
49518
49519 2006-01-09  Bruno Haible  <bruno@clisp.org>
49520
49521         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
49522         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
49523         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
49524         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
49525
49526 2006-01-09  Bruno Haible  <bruno@clisp.org>
49527
49528         * build-aux/javacomp.sh.in: New file, moved from lib/.
49529         * modules/javacomp-script (Files): Update.
49530         (configure.ac): Add AC_CONFIG_FILES invocation.
49531         (EXTRA_DIST): Remove variable.
49532
49533         * build-aux/javaexec.sh.in: New file, moved from lib/.
49534         * modules/javaexec (Files): Update.
49535         (configure.ac): Add AC_CONFIG_FILES invocation.
49536         (EXTRA_DIST): Remove javaexec.sh.in.
49537
49538         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
49539         * modules/csharpcomp-script (Files): Update.
49540         (configure.ac): Add AC_CONFIG_FILES invocation.
49541         (EXTRA_DIST): Remove variable.
49542
49543         * build-aux/csharpexec.sh.in: New file, moved from lib/.
49544         * modules/csharpexec (Files): Update.
49545         (configure.ac): Add AC_CONFIG_FILES invocation.
49546         (EXTRA_DIST): Remove csharpexec.sh.in.
49547
49548 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49549
49550         Sync from coreutils.
49551
49552         Add POSIX ACL support
49553         * lib/acl.h (copy_acl, set_acl): Add declarations.
49554         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
49555         systems other than Linux.
49556         (chmod_or_fchmod): New function: use fchmod when possible,
49557         and chmod otherwise.
49558         (file_has_acl): Add a POSIX ACL implementation, with a
49559         Linux-specific subcase.
49560         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
49561         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
49562         acls are unsupported.
49563         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
49564         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
49565         are unsupported.
49566
49567 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49568
49569         Sync from coreutils.
49570         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
49571
49572 2006-01-07  Bruno Haible  <bruno@clisp.org>
49573
49574         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
49575         gl_EARLY.
49576
49577 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49578
49579         * lib/strftime.c (tzname): Don't declare if it is already #defined.
49580         Problem reported for Mingw by Mark Junker.
49581
49582 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49583
49584         * README: Gnulib normally doesn't generate a tarball.
49585
49586 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
49587
49588         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
49589         long int, not int, for nanosecond counts, so that people who are
49590         used to POSIX struct timespec won't be surprised.  Reported by Jim
49591         Meyering.
49592
49593 2005-12-28  Bruno Haible  <bruno@clisp.org>
49594
49595         * build-aux/config.rpath: Update from GNU gettext.
49596
49597 2005-12-16  Jim Meyering  <jim@meyering.net>
49598
49599         * modules/fprintftime: New module.
49600         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
49601
49602 2005-12-16  Jim Meyering  <jim@meyering.net>
49603
49604         * m4/fprintftime.m4: New file.
49605
49606 2005-12-16  Jim Meyering  <jim@meyering.net>
49607
49608         * lib/fprintftime.c, lib/fprintftime.h: New files.
49609
49610 2005-12-15  Simon Josefsson  <jas@extundo.com>
49611
49612         * modules/socklen (configure.ac): Fix M4 macro name, to align with
49613         new m4/socklen.m4.
49614
49615 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49616
49617         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49618         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49619
49620 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49621
49622         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49623         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49624         struct uparams is valid. Fall back to the default values if it is
49625         not.
49626
49627 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49628
49629         * modules/argp (Files): Add argp-pin.c
49630         (Depends-on): dirname
49631         (lib_SOURCES): Add argp-pin.c
49632
49633 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49634
49635         * m4/argp.m4:  Check if program_invocation_name and
49636         program_invocation_short_name are declared and define appropriate
49637         macros if they are not.
49638
49639 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49640
49641         * lib/argp-help.c (__argp_base_name): New function
49642         (__argp_short_program_name): Rewrite using __argp_base_name
49643         * lib/argp-namefrob.h: Define program_invocation_name and
49644         program_invocation_short_name if requested
49645         (__argp_base_name): Add prototype
49646         * lib/argp-parse.c (argp_def): Use gettext wrappers
49647         (argp_default_parser): Use __argp_base_name
49648         * lib/argp-pin.c: New file. Defines program_invocation_name and
49649         program_invocation_short_name on systems that lack them.
49650
49651 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49652
49653         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49654         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49655         porting problem reported by Georg Schwarz in
49656         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49657
49658 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49659
49660         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49661         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49662         porting problem reported by Georg Schwarz in
49663         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49664
49665 2005-12-05  Bruno Haible  <bruno@clisp.org>
49666
49667         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49668         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49669         Reported by Mark Junker <mjscod@gmx.de>.
49670
49671 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49672
49673         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49674         Use implementation from Albert Chin, with some
49675         comments/corrections by Stepan Kasal and myself.
49676
49677 2005-12-02  Bruno Haible  <bruno@clisp.org>
49678
49679         * gnulib-tool (func_import): Accept GPLed build tool modules when
49680         --lgpl is given.
49681         * modules/csharpcomp-script: New file.
49682         * modules/csharpcomp: Depend on it.
49683         * modules/javacomp-script: New file.
49684         * modules/javacomp: Depend on it.
49685         Suggested by Simon Josefsson.
49686
49687 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49688
49689         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49690         statement, to work around an HP-UX 10.20 compiler bug reported by
49691         Peter O'Gorman.
49692
49693 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49694
49695         * modules/savedir (Depends-on): Add openat.
49696
49697 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49698
49699         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49700         (uintmax_t) [defined uintmax_t]: Do not declare.
49701         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49702         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49703         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49704         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49705         sake of portability to weird hosts that C allows (though we don't
49706         know of any practical examples).
49707
49708         * lib/savedir.h (fdsavedir): New decl.
49709         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49710         contains most of the former guts of savedir.
49711         (savedir): Use savedirstream.
49712         Include "openat.h".
49713
49714 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49715
49716         * modules/obstack (Files): Add m4/ulonglong.m4.
49717         Problem reported by Davide Angelocola.
49718
49719 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49720
49721         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49722         coreutils no longer futzes with rounding modes.
49723
49724 2005-11-14  Jim Meyering  <jim@meyering.net>
49725
49726         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49727         replacement of mkstemp.
49728
49729 2005-11-10  Simon Josefsson  <jas@extundo.com>
49730
49731         * lib/readline.c: Remove EOL.
49732
49733 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49734
49735         * modules/gethrxtime (Depends-on): Add gettime.
49736
49737 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49738
49739         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49740         or gettimeofday; no longer needed.
49741
49742 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49743
49744         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49745         time business.
49746         (gethrxtime) [! (HAVE_NANOUPTIME
49747         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49748         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49749         our own approximation.
49750
49751 2005-11-08  Eric Blake  <ebb9@byu.net>
49752
49753         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49754
49755 2005-11-08  Eric Blake  <ebb9@byu.net>
49756
49757         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49758
49759 2005-11-04  Bruno Haible  <bruno@clisp.org>
49760
49761         * gnulib-tool: Implement --update mode.
49762
49763 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49764
49765         Fix porting problem reported by Theodoros V. Kalamatianos.
49766         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49767         Don't assume that futimes failing means we must fail.
49768
49769 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49770
49771         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49772         variables to suggest the intended function of the PATH_MAX check.
49773
49774 2005-10-30  Kean Johnston  <jkj@sco.com>
49775
49776         Trivial changes to support SCO systems.
49777         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49778         as PATH_MAX.
49779         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49780         where __ptr is null when no I/O is pending.
49781
49782 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49783
49784         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49785         leave errno alone.  Problem reported by Dmitry V. Levin.
49786
49787 2005-10-28  Simon Josefsson  <jas@extundo.com>
49788
49789         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49790         Test more.
49791
49792         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49793
49794         * modules/md2, modules/md2-tests: New files.
49795
49796 2005-10-28  Simon Josefsson  <jas@extundo.com>
49797
49798         * m4/inet_ntop.m4: More tests.
49799
49800         * m4/gc-md2.m4, md2.m4: New file.
49801
49802 2005-10-28  Simon Josefsson  <jas@extundo.com>
49803
49804         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49805         "restrict" keywords, as per POSIX.  Protect the function
49806         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49807         Don't use K&R prototypes.  Check the sprintf return values.
49808         Re-define EAFNOSUPPORT if not present.  Indent.
49809
49810         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49811         suggested by Bruno Haible <bruno@clisp.org>.
49812
49813         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49814
49815         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49816
49817         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49818         libgcrypt).
49819
49820         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49821
49822         * lib/md2.h, lib/md2.c: New files.
49823
49824 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49825
49826         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49827         errno alone.  Problem reported by Frederic Jolliton.
49828
49829 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49830
49831         * modules/verify (License): Change from GPL to LGPL.  This is a
49832         tiny module and there are apparently near-equivalents that are
49833         under the BSD license.
49834
49835 2005-10-24  Simon Josefsson  <jas@extundo.com>
49836
49837         * modules/sha1: Relicense to LGPL.
49838
49839 2005-10-24  Simon Josefsson  <jas@extundo.com>
49840
49841         * lib/md4.h: Shrink buffer size, now that we changed the type.
49842
49843 2005-10-23  Simon Josefsson  <jas@extundo.com>
49844
49845         * gnulib-tool (func_import): Fix --tests-base.
49846
49847 2005-10-22  Simon Josefsson  <jas@extundo.com>
49848
49849         * modules/arcfour (Depends-on): Need stdint.
49850
49851 2005-10-22  Simon Josefsson  <jas@extundo.com>
49852
49853         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49854         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49855
49856 2005-10-22  Simon Josefsson  <jas@extundo.com>
49857
49858         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49859         suggested by Bruno Haible <bruno@clisp.org>.
49860
49861 2005-10-22  Simon Josefsson  <jas@extundo.com>
49862
49863         * lib/crc.h: Include stddef.h, for size_t.
49864
49865 2005-10-22  Simon Josefsson  <jas@extundo.com>
49866
49867         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49868         arcfour_context struct (simplify test vector testing in GNU
49869         Shishi).
49870
49871 2005-10-21  Simon Josefsson  <jas@extundo.com>
49872
49873         * modules/des, modules/des-tests: New files.
49874
49875         * modules/gc-des, modules/gc-des-tests: New files.
49876
49877         * tests/test-des.c, tests/test-gc-des.c: New file.
49878
49879 2005-10-21  Simon Josefsson  <jas@extundo.com>
49880
49881         * modules/arctwo, modules/arctwo-tests: New files.
49882
49883         * tests/test-arctwo.c: New file.
49884
49885         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49886
49887         * tests/test-gc-arctwo.c: New file.
49888
49889 2005-10-21  Simon Josefsson  <jas@extundo.com>
49890
49891         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49892         Bruno Haible <bruno@clisp.org>.
49893
49894         * m4/gc-des.m4: New file.
49895
49896 2005-10-21  Simon Josefsson  <jas@extundo.com>
49897
49898         * m4/arctwo.m4: New file.
49899
49900         * m4/gc-arctwo.m4: New file.
49901
49902 2005-10-21  Simon Josefsson  <jas@extundo.com>
49903
49904         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49905         block.
49906
49907 2005-10-21  Simon Josefsson  <jas@extundo.com>
49908
49909         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49910         <bruno@clisp.org>.
49911
49912         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49913
49914         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49915         Bruno Haible <bruno@clisp.org>.
49916
49917         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49918         <bruno@clisp.org>.
49919
49920 2005-10-21  Simon Josefsson  <jas@extundo.com>
49921
49922         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49923
49924 2005-10-21  Simon Josefsson  <jas@extundo.com>
49925
49926         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49927
49928 2005-10-21  Simon Josefsson  <jas@extundo.com>
49929
49930         * lib/des.h, lib/des.c: New files.
49931
49932         * lib/gc-gnulib.c: Support DES.c
49933
49934 2005-10-21  Simon Josefsson  <jas@extundo.com>
49935
49936         * lib/arctwo.h, lib/arctwo.c: New files.
49937
49938         * lib/gc-gnulib.c: Support ARCTWO.
49939
49940 2005-10-21  Simon Josefsson  <jas@extundo.com>
49941
49942         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49943         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49944
49945 2005-10-21  Simon Josefsson  <jas@extundo.com>
49946
49947         * gnulib-tool (func_import, func_create_testdir): Define automake
49948         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49949         Makefile.am snippet),
49950         suggested by Bruno Haible <bruno@clisp.org>.
49951
49952         * modules/gc (Makefile.am): Use it.
49953
49954 2005-10-21  Bruno Haible  <bruno@clisp.org>
49955
49956         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49957         patch.
49958
49959 2005-10-19  Simon Josefsson  <jas@extundo.com>
49960
49961         * tests/test-gc-rijndael.c: New file.
49962
49963         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49964
49965 2005-10-19  Simon Josefsson  <jas@extundo.com>
49966
49967         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49968         interface too.
49969
49970 2005-10-19  Simon Josefsson  <jas@extundo.com>
49971
49972         * tests/test-gc-arcfour.c: New file.
49973
49974         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49975
49976 2005-10-19  Simon Josefsson  <jas@extundo.com>
49977
49978         * modules/gc-md4, modules/gc-md4-tests: New file.
49979
49980         * tests/test-gc-md4.c: New file.
49981
49982 2005-10-19  Simon Josefsson  <jas@extundo.com>
49983
49984         * m4/gc-md4.m4: New file.
49985
49986 2005-10-19  Simon Josefsson  <jas@extundo.com>
49987
49988         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49989         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49990         <kasal@ucw.cz>.
49991
49992 2005-10-19  Simon Josefsson  <jas@extundo.com>
49993
49994         * m4/gc-arcfour.m4: New file.
49995
49996         * m4/gc-rijndael.m4: New file.
49997
49998 2005-10-19  Simon Josefsson  <jas@extundo.com>
49999
50000         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
50001
50002 2005-10-19  Simon Josefsson  <jas@extundo.com>
50003
50004         * lib/gc-gnulib.c: Support ARCFOUR.
50005
50006 2005-10-19  Simon Josefsson  <jas@extundo.com>
50007
50008         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
50009         support.
50010
50011         * lib/gc.h: Add ECB enum type.
50012
50013         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
50014
50015 2005-10-18  Simon Josefsson  <jas@extundo.com>
50016
50017         * tests/test-md5.c: New file.
50018
50019         * modules/md5-tests: New file.
50020
50021 2005-10-18  Simon Josefsson  <jas@extundo.com>
50022
50023         * tests/test-md4.c: New file.
50024
50025         * modules/md4, modules/md4-tests: New files.
50026
50027 2005-10-18  Simon Josefsson  <jas@extundo.com>
50028
50029         * m4/md4.m4: New file.
50030
50031 2005-10-18  Simon Josefsson  <jas@extundo.com>
50032
50033         * lib/md4.h, lib/md4.c: New files, based on md5.?.
50034
50035 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
50036
50037         * gnulib-tool (func_create_testdir): Omit the second check whether
50038         BUILT_SOURCES in nonempty.
50039
50040 2005-10-17  Simon Josefsson  <jas@extundo.com>
50041
50042         * tests/test-rijndael.c: New file.
50043
50044 2005-10-17  Simon Josefsson  <jas@extundo.com>
50045
50046         * modules/sha1: Depend on stdint instead of md5.
50047
50048         * modules/md5: Depend on stdint, remove uint32_t.
50049
50050 2005-10-17  Simon Josefsson  <jas@extundo.com>
50051
50052         * modules/gc-sha1-tests: New file.
50053
50054         * tests/test-gc-sha1.c: New file.
50055
50056 2005-10-17  Simon Josefsson  <jas@extundo.com>
50057
50058         * m4/md5.m4: Remove call to uint32_t.m4.
50059
50060 2005-10-17  Simon Josefsson  <jas@extundo.com>
50061
50062         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
50063
50064         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
50065         md5.h.
50066
50067         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
50068
50069         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
50070
50071 2005-10-17  Simon Josefsson  <jas@extundo.com>
50072
50073         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
50074
50075 2005-10-17  Simon Josefsson  <jas@extundo.com>
50076
50077         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
50078
50079 2005-10-17  Simon Josefsson  <jas@extundo.com>
50080
50081         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
50082
50083         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
50084
50085 2005-10-17  Bruno Haible  <bruno@clisp.org>
50086
50087         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
50088         that it can also be used in a test.
50089
50090 2005-10-16  Bruno Haible  <bruno@clisp.org>
50091
50092         * gnulib-tool (func_emit_tests_Makefile_am): Also define
50093         TESTS_ENVIRONMENT, so that individual tests can augment it.
50094
50095         * gnulib-tool (func_create_testdir): Use an intermediate target for
50096         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
50097         macros, like $(ALLOCA_H), which cannot be passed through the command
50098         line.
50099
50100 2005-10-15  Simon Josefsson  <jas@extundo.com>
50101
50102         * modules/rijndael-tests: New file.
50103
50104         * modules/rijndael: New file.
50105
50106 2005-10-15  Simon Josefsson  <jas@extundo.com>
50107
50108         * m4/rijndael.m4: New file.
50109
50110 2005-10-15  Simon Josefsson  <jas@extundo.com>
50111
50112         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
50113
50114         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
50115
50116 2005-10-14  Simon Josefsson  <jas@extundo.com>
50117
50118         * tests/test-arcfour.c: New file.
50119
50120         * modules/arcfour, modules/arcfour-tests: New files.
50121
50122 2005-10-14  Simon Josefsson  <jas@extundo.com>
50123
50124         * m4/arcfour.m4: New file.
50125
50126 2005-10-14  Simon Josefsson  <jas@extundo.com>
50127
50128         * lib/arcfour.h, lib/arcfour.c: New files.
50129
50130 2005-10-14  Roland McGrath  <roland@redhat.com>
50131
50132         Import from libc.  [BZ #1331]
50133         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
50134         macro argument.
50135         Reported by Matej Vela <vela@debian.org>.
50136
50137 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
50138
50139         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
50140         include <wchar.h>; no longer needed.
50141
50142 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
50143
50144         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
50145
50146 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
50147         and  Ulrich Drepper  <drepper@redhat.com>
50148
50149         Import from libc.
50150         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
50151         instead of inline stream orientation test and two separate
50152         function calls.  Pay no attention to USE_IN_LIBIO.
50153
50154 2005-10-13  Simon Josefsson  <jas@extundo.com>
50155
50156         * modules/gc-hmac-md5-tests: New file.
50157
50158         * tests/test-gc-hmac-sha1.c: New file.
50159
50160         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
50161
50162         * modules/gc-hmac-md5-tests: New file.
50163
50164         * tests/test-gc-md5.c: New file.
50165
50166         * modules/gc-md5-tests: New file.
50167
50168 2005-10-13  Simon Josefsson  <jas@extundo.com>
50169
50170         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
50171         Move memory allocation outside of loop.
50172
50173 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
50174
50175         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
50176         intermediate directory is in a read-only file system.  Problem
50177         reported by Eric Blake.
50178
50179 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
50180
50181         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
50182
50183 2005-10-12  Simon Josefsson  <jas@extundo.com>
50184
50185         * tests/test-hmac-sha1.c: New file.
50186
50187         * modules/hmac-sha1-tests: New file.
50188
50189         * modules/hmac-sha1: New file.
50190
50191 2005-10-12  Simon Josefsson  <jas@extundo.com>
50192
50193         * modules/gc-sha1: New file.
50194
50195 2005-10-12  Simon Josefsson  <jas@extundo.com>
50196
50197         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
50198
50199         * tests/test-gc-pbkdf2-sha1.c: New file.
50200
50201 2005-10-12  Simon Josefsson  <jas@extundo.com>
50202
50203         * modules/gc-md5, modules/gc-hmac-md5: New files.
50204
50205         * modules/gc (Files): Remove md5, memxor and hmac files.
50206
50207 2005-10-12  Simon Josefsson  <jas@extundo.com>
50208
50209         * m4/gc-pbkdf2-sha1.m4: New file.
50210
50211         * m4/gc-hmac-sha1.m4: New file.
50212
50213         * m4/gc-sha1: New file.
50214
50215         * m4/hmac-sha1.m4: New file.
50216
50217 2005-10-12  Simon Josefsson  <jas@extundo.com>
50218
50219         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
50220
50221         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
50222
50223 2005-10-12  Simon Josefsson  <jas@extundo.com>
50224
50225         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
50226         suggested by Bruno Haible <bruno@clisp.org>.
50227
50228 2005-10-12  Simon Josefsson  <jas@extundo.com>
50229
50230         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
50231
50232 2005-10-12  Simon Josefsson  <jas@extundo.com>
50233
50234         * lib/gc-pbkdf2-sha1.c: New file.
50235
50236         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
50237
50238 2005-10-12  Simon Josefsson  <jas@extundo.com>
50239
50240         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
50241
50242         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
50243
50244 2005-10-12  Simon Josefsson  <jas@extundo.com>
50245
50246         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
50247         GC_USE_HMAC_MD5, respectively.
50248
50249         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
50250         (gc_md5): Fix typo.
50251
50252         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
50253
50254         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
50255
50256         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
50257
50258 2005-10-12  Bruno Haible  <bruno@clisp.org>
50259
50260         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
50261         Reported by Stepan Kasal <kasal@ucw.cz>.
50262
50263 2005-10-11  Simon Josefsson  <jas@extundo.com>
50264
50265         * tests/test-crc.c: New file.
50266
50267         * modules/crc, modules/crc-tests: New files.
50268
50269 2005-10-11  Simon Josefsson  <jas@extundo.com>
50270
50271         * m4/crc.m4: New file.
50272
50273 2005-10-11  Simon Josefsson  <jas@extundo.com>
50274
50275         * lib/gc.h: Add gc_hash and gc_hash_buffer.
50276
50277         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
50278
50279         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
50280
50281 2005-10-11  Simon Josefsson  <jas@extundo.com>
50282
50283         * lib/crc.h, lib/crc.c: New files.
50284
50285         * lib/gc.h (gc_hash_buffer): Add doc.
50286
50287 2005-10-11  Bruno Haible  <bruno@clisp.org>
50288
50289         * modules/c-strcasestr: New file.
50290         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
50291
50292 2005-10-11  Bruno Haible  <bruno@clisp.org>
50293
50294         * modules/c-strcase: New file.
50295         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
50296
50297 2005-10-11  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/strcasecmp.c: Include limits.h.
50300         (strcasecmp): Avoid integer overflow on exotic platforms.
50301         * lib/strncasecmp.c: Include limits.h.
50302         (strncasecmp): Avoid integer overflow on exotic platforms.
50303         Reported by Paul Eggert.
50304
50305 2005-10-11  Bruno Haible  <bruno@clisp.org>
50306
50307         * lib/c-strcasestr.h: New file, from GNU gettext.
50308         * lib/c-strcasestr.c: New file, from GNU gettext.
50309
50310 2005-10-11  Bruno Haible  <bruno@clisp.org>
50311
50312         * lib/c-strcase.h: New file, from GNU gettext.
50313         * lib/c-strcasecmp.c: New file, from GNU gettext.
50314         * lib/c-strncasecmp.c: New file, from GNU gettext.
50315
50316 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50317
50318         * modules/mempcpy (License): GPL -> LGPL.
50319         * modules/strchrnul (License): Likewise.
50320         * modules/sysexits (License): Likewise.
50321
50322 2005-10-08  Simon Josefsson  <jas@extundo.com>
50323
50324         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
50325
50326 2005-10-07  Simon Josefsson  <jas@extundo.com>
50327
50328         * m4/memxor.m4: Remove gl_C_RESTRICT call.
50329
50330 2005-10-06  Simon Josefsson  <jas@extundo.com>
50331
50332         * tests/test-hmac-md5.c: New file.
50333
50334         * modules/hmac-md5-tests: New file.
50335
50336         * modules/hmac-md5: New file.
50337
50338 2005-10-06  Simon Josefsson  <jas@extundo.com>
50339
50340         * m4/hmac-md5.m4: New file.
50341
50342         * m4/memxor.m4: Require gl_C_RESTRICT.
50343
50344 2005-10-06  Simon Josefsson  <jas@extundo.com>
50345
50346         * lib/memxor.c (memxor): Avoid casts and warnings.
50347
50348 2005-10-06  Simon Josefsson  <jas@extundo.com>
50349
50350         * lib/hmac-md5.c: New file.
50351
50352         * lib/hmac.h: New file.
50353
50354 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50355
50356         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
50357         promotes to int, not unsigned int, to catch the AIX 5.3
50358         compiler bug.
50359
50360 2005-10-05  Simon Josefsson  <jas@extundo.com>
50361
50362         * modules/memxor: New file.
50363
50364         * modules/iconv (Files): Move config.rpath to havelib, it is used
50365         there.
50366
50367         * modules/havelib (Files): Add config.rpath.
50368
50369 2005-10-05  Simon Josefsson  <jas@extundo.com>
50370
50371         * m4/memxor.m4: New file.
50372
50373 2005-10-05  Simon Josefsson  <jas@extundo.com>
50374
50375         * lib/memxor.c (memxor): Fix compiler error.
50376
50377         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
50378         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
50379
50380         * lib/memxor.h, lib/memxor.c: New files.
50381
50382         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
50383         we assume all systems have it, suggested by Jim Meyering
50384         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
50385         any systems lack sys/socket.h; mingw32 is known to lack it, but we
50386         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
50387         same reasons.
50388
50389 2005-10-05  Simon Josefsson  <jas@extundo.com>
50390
50391         * config/srclist.txt: Add glibc bug 1423 for md5.h.
50392
50393 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50394
50395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
50396         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
50397         needed, since the source code now assumes these .h files.
50398
50399 2005-10-05  Derek Price  <derek@ximbiot.com>
50400
50401         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
50402
50403 2005-10-05  Bruno Haible  <bruno@clisp.org>
50404
50405         * modules/stdint (License): Change to LGPL.
50406
50407 2005-10-04  Simon Josefsson  <jas@extundo.com>
50408
50409         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
50410         D. Baushke" <mdb@gnu.org>.
50411
50412 2005-10-04  Bruno Haible  <bruno@clisp.org>
50413
50414         * lib/verify.h (verify_true): Provide alternative definition for C++.
50415
50416 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
50417
50418         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
50419         (SSIZE_MAX): New macro, if not already defined.
50420         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
50421         than 2 GiB.
50422
50423 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50424
50425         Sync from coreutils.
50426         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
50427         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
50428         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
50429         ULLONG_MAX doesn't work with 2.7.2.1.
50430
50431 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50432
50433         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
50434         From Ben Pfaff.
50435
50436         * modules/exclude (Depends-on): Depend on verify.
50437         * modules/strtoimax (Depends-on): Likewise.
50438         * modules/utimecmp (Depends-on): Likewise.
50439
50440 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50441
50442         * lib/exclude.c: Include verify.h.
50443         (verify): Remove.  All callers changed to use verify.h's version.
50444         * lib/strtoimax.c: Likewise.
50445         * lib/utimecmp.c: Likewis.e
50446
50447         Sync from coreutils.
50448         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
50449         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
50450         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
50451         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
50452         bother returning ENOSYS if settimeofday or stime fails; just let
50453         them return whatever errno they want to return.
50454         * lib/utimens.c: Include unistd.h, for dup2.
50455         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
50456         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
50457
50458 2005-10-02  Jim Meyering  <jim@meyering.net>
50459
50460         Sync from coreutils.
50461         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
50462         from glibc-2.2.5 that fails for read-only files.
50463
50464 2005-10-02  Jim Meyering  <jim@meyering.net>
50465
50466         Sync from coreutils.
50467         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
50468         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
50469         `#if HAVE_CONFIG_H'.
50470         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
50471         Remove AT_FDCWD test.
50472         Do not consume the fd unless successful.
50473         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
50474         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
50475         block, so that we don't even try to compile it if settimeofday is
50476         available.  This works around a compilation failure on OSF1 V5.1,
50477         due to stime requiring a `long int*' while tv_sec is `int'.
50478
50479 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
50480
50481         Sync from coreutils.
50482         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
50483         against `yes', rather than just testing for nonempty.
50484
50485 2005-10-01  Simon Josefsson  <jas@extundo.com>
50486
50487         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
50488         and Darwin.
50489
50490         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
50491         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
50492         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
50493         freeaddrinfo and gai_strerror are declared by the POSIX headers.
50494         Check if struct addrinfo is declared.
50495
50496 2005-10-01  Simon Josefsson  <jas@extundo.com>
50497
50498         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
50499         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
50500         AI_* and EAI_* definitions.  Protect function declarations.
50501
50502 2005-10-01  Jim Meyering  <jim@meyering.net>
50503
50504         Sync from coreutils.
50505
50506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
50507         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
50508         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
50509         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50510         in the inet and nsl libraries.  Required on Solaris 5.7.
50511
50512 2005-10-01  Jim Meyering  <jim@meyering.net>
50513
50514         Sync from coreutils.
50515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50516         in the inet and nsl libraries.  Required on Solaris 5.7.
50517
50518 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
50519
50520         * lib/getdelim.c (getdelim): Remove unused variables.
50521
50522 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50523
50524         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
50525         so that the code works even with ancient cpp.  Portability problem
50526         with GCC 2.7.2.1 reported by Thomas M.Ott.
50527
50528 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50529
50530         * modules/regex (Depends-on): Add strcase.
50531
50532         * modules/gethostname (Licence): Change from GPL to LGPL, since
50533         gethostname.c is a trivial implementation of a standard library
50534         function.
50535         * modules/poll (License): Change from GPL to LGPL, since it's
50536         derived from LGPL code.
50537
50538 2005-09-27  Jim Meyering  <jim@meyering.net>
50539
50540         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
50541         HAVE_CONFIG_H.
50542
50543         * lib/intprops.h (signed_type_or_expr__): Define.
50544         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
50545         for unsigned types.
50546
50547 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50548
50549         * lib/verify.h (verify_expr): Remove, replacing with:
50550         (verify_true): New macro that returns true instead of void.
50551         (verify_type__): Remove.
50552         (verify): Use verify_true rather than verify_type__.
50553
50554 2005-09-26  Bruno Haible  <bruno@clisp.org>
50555
50556         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
50557         is necessary.
50558         (lib_SOURCES): Remove mbchar.c.
50559         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
50560         (Files): Add m4/mbrtowc.m4.
50561         * modules/mbiter: Likewise.
50562         * modules/mbuiter: Likewise.
50563
50564 2005-09-26  Bruno Haible  <bruno@clisp.org>
50565
50566         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
50567         compile mbchar.c if they are not both present.
50568         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
50569         * m4/mbiter.m4 (gl_MBITER): Likewise.
50570         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
50571         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
50572         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
50573
50574 2005-09-25  Jim Meyering  <jim@meyering.net>
50575
50576         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
50577         also uses socklen_t.
50578
50579 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
50580
50581         * lib/utimens.c (ENOSYS): Define if not already defined.
50582         (futimens): Support having a null PATH if the file descriptor
50583         is nonnegative.
50584
50585         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
50586         Remove.
50587         (__attribute): Define to empty unless GCC 3.1 or later.
50588         This works around a core dump on OpenBSD 3.4, which has GCC
50589         2.95.3, which dumps core when given __attribute__(()).  It also
50590         simplifies other tests, since we really don't want to bother with
50591         worrying about which ancient version of GCC supported what.
50592         Original problem reported by Yoann Vandoorselaere, with part of
50593         the fix suggested by Derek Price.
50594
50595 2005-09-24  Jim Meyering  <jim@meyering.net>
50596
50597         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
50598         so we can once again use a positive bitfield width of 1 -- now we
50599         don't have to explain why we were using a bitfield width of 2.
50600
50601 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50602
50603         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
50604         and similarly for the other external symbols.  Problem reported
50605         by James Gallager.
50606
50607         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
50608         bug reported by Jim Meyering.
50609
50610         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
50611         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
50612         not needed, since socklen is a prerequisite module.
50613
50614 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50615
50616         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
50617         Problem reported by Eric Blake.
50618         (getaddrinfo): Initialize se so that it's not garbage.
50619         Redo internal storage allocation so that it doesn't make unportable
50620         assumptions about alignment.
50621         Fix a memory leak.
50622
50623         * lib/utimens.c (futimens): Use futimesat if available.
50624         Prefer it to futimes since it doesn't have the futimes bug.
50625
50626         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50627         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50628         Instead, declare a function that returns a pointer to an array,
50629         and use verify_type__ to declare the size of the array.
50630         Problem and germ of a solution reported by Bruno Haible.
50631         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50632         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50633
50634 2005-09-23  Jim Meyering  <jim@meyering.net>
50635
50636         Sync from coreutils.
50637         Correct build failure (socklen_t not defined) on at least
50638         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50639         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50640
50641 2005-09-23  Jim Meyering  <jim@meyering.net>
50642
50643         * modules/getaddrinfo (Depends-on): Add socklen.
50644
50645 2005-09-23  Bruno Haible  <bruno@clisp.org>
50646
50647         * tests/test-verify.c: New file.
50648
50649 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50650
50651         Sync from coreutils.
50652
50653         * modules/argmatch (Depends-on): Add verify.
50654         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50655         unistd-safer.
50656         * modules/save-cwd (Depends-on): Likewise.
50657
50658         * modules/openat (Files): Add lib/openat-die.c.
50659         (Depends-on): Remove error, exitfail.
50660         Add dirname.
50661
50662         * modules/verify: New file.
50663         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50664         with "verify" module.
50665
50666 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50667
50668         Sync from coreutils.
50669
50670         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50671         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50672         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50673         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50674         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50675         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50676         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50677         Don't bother checking for string.h, stdlib.h, unistd.h.
50678         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50679         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50680         module's job.
50681         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50682         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50683
50684         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50685         (gl_GETDATE): Use it.
50686
50687         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50688
50689 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50690
50691         Sync from coreutils.
50692
50693         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50694         stat-time.h.
50695         * lib/argmatch.h: Include verify.h
50696         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50697         (ARGMATCH_ASSERT): Remove; unused.
50698         * lib/canonicalize.c: Assume STDC_HEADERS.
50699         * lib/exclude.c: Include "strcase.h".
50700         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50701         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50702         and stdio-safer.h.
50703         (getusershell): Call fopen, not fopen_safer.
50704         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50705         Do not include unistd-safer.h.
50706         (save_cwd): Don't call fd_safer; no longer needed
50707         now that we include fcntl--.h.
50708
50709         * lib/getdate.y (relative_time): New type.
50710         (RELATIVE_TIME_0): New constant.
50711         (parser_control): Use relative_time instead of doing it ourselves.
50712         (%union): Add new relative_time rel member.
50713         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50714         Now typeless.
50715         (relunit, relunit_snumber): Now of type rel.
50716         (zone, rel, relunit, get_date): Adjust to above changes.
50717
50718         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50719         Do not include unistd-safer.h.
50720         (getloadavg): Don't call fd_safer; no longer needed
50721         now that we include fcntl--.h.
50722
50723         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50724         (make_dir_parents): Treat ENOSYS like EEXIST.
50725
50726         Improve quality of diagnostics on restore_cwd failure.
50727         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50728         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50729         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50730         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50731         each time through the loop.  Do not diagnose restore_cwd failure;
50732         that is the caller's job (and perhaps the caller does not care).
50733
50734         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50735         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50736         If the file already exists but is not a directory, don't bother
50737         to try to make its parents.
50738         Close potential file descriptor leak if we can't chdir("/") (!).
50739         Don't always return true if chdir($PWD) fails; return true only
50740         if the requested action was done successfully (except for the
50741         chdir($PWD)).
50742         Don't log final directory unless we actually made it.
50743         Refactor to avoid duplicate code to fix up permissions.
50744         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50745
50746         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50747         to make it a bit faster and (I hope) clearer.
50748         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50749         Fix bug in formats like %2N.
50750
50751         * lib/verify.h: New file.
50752
50753 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50754
50755         Sync from coreutils.
50756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50757
50758 2005-09-22  Jim Meyering  <jim@meyering.net>
50759
50760         Sync from coreutils.
50761
50762         * m4/lstat.m4 (gl_FUNC_LSTAT):
50763         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50764         Remove obsolete comment.
50765         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50766         * m4/xstrtod.m4: Likewise.
50767
50768         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50769
50770 2005-09-22  Jim Meyering  <jim@meyering.net>
50771
50772         Sync from coreutils.
50773
50774         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50775
50776         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50777         the .tm_year member, since otherwise gcc-4.0 would now warn about
50778         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50779
50780         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50781         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50782
50783         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50784         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50785         when run in a time zone for which daylight savings time is in effect
50786         for the starting date.
50787
50788         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50789         stop us from restricting permissions of just-created absolute-named
50790         directories.
50791         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50792         to restore initial working directory.
50793         * lib/mkdir-p.c (make_dir_parents): New parameter:
50794         different_working_dir, to tell caller if/when we change the working
50795         directory and are unable to return to the initial one.
50796         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50797         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50798         `return false'.  This fixes a bug introduced on 2004-07-30.
50799
50800         * lib/openat.c (fdopendir): Be sure to close the supplied
50801         file descriptor before returning.  This makes our replacement
50802         implementation a little closer to Solaris's, where fdopendir
50803         ties the file descriptor to the returned DIR* pointer.
50804         * lib/openat.c (unlinkat): New function.
50805         * lib/openat.h (unlinkat): Add prototype.
50806         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50807         (openat_restore_fail): Rename from openat_restore_die.
50808         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50809
50810         Provide an alternative to exiting immediately upon save_cwd or
50811         restore_cwd failure.  Now, an application can arrange e.g.,
50812         to perform a longjump in that case.
50813         * lib/openat.c: Include dirname.h.
50814         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50815         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50816         and openat_restore_die rather than calling error directly.
50817         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50818
50819         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50820         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50821         define.
50822
50823         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50824         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50825                             int utc, int nanoseconds);
50826         Background:
50827         date should not have to allocate a megabyte of virtual memory to
50828         handle a format argument like +%1048575T.  When implemented with
50829         strftime, it must allocate such a buffer, use strftime to fill it
50830         in, print it, then free it.
50831         With fprintftime, it simply prints everything and exits.
50832         With no need for memory allocation, that's one fewer way to fail.
50833         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50834         optional field width, not before, so we accept %9:z, not %:9z.
50835         (my_strftime): Be sure to use L_('x') for literals.
50836
50837         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50838         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50839         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50840         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50841         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50842         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50843         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50844         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50845         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50846         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50847         * lib/xgethostname.c, lib/xreadlink.c:
50848         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50849
50850         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50851         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50852         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50853         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50854         and don't include <sys/file.h>).
50855
50856 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50857
50858         Sync from coreutils.
50859
50860         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50861         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50862         [!LDAV_DONE]: Avoid unused variable warning.
50863
50864 2005-09-21  Bruno Haible  <bruno@clisp.org>
50865
50866         * lib/unicodeio.h (unicode_to_mb): New declaration.
50867
50868 2005-09-20  Derek Price  <derek@ximbiot.com>
50869
50870         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50871         getaddrinfo.h.
50872
50873 2005-09-20  Bruno Haible  <bruno@clisp.org>
50874
50875         * gnulib-tool: Remove trailing slashes from the values specified for
50876         --source-base, --m4-base, --tests-base, --aux-dir.
50877         Suggested by Simon Josefsson <jas@extundo.com>.
50878
50879 2005-09-20  Bruno Haible  <bruno@clisp.org>
50880
50881         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50882         func_modules_to_filelist, func_import, func_create_testdir): Make all
50883         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50884         change when gnulib-tool is invoked in a different locale.
50885
50886 2005-09-19  Simon Josefsson  <jas@extundo.com>
50887
50888         * m4/socklen.m4: Fix typo.
50889
50890 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50891
50892         Use a consistent style for including <config.h>.
50893         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50894         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50895         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50896         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50897         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50898         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50899         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50900         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50901         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50902         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50903         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50904         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50905         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50906         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50907         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50908         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50909         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50910         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50911         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50912         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50913         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50914         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50915         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50916         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50917         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50918         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50919         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50920         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50921         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50922         lib/xstrtoumax.c, lib/yesno.c:
50923         Standardize inclusion of config.h.
50924         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50925         lib/inttostr.h:  Removed inclusion of config.h from header files.
50926         * lib/inttostr.c:  Adjusted in-tree users.
50927         * lib/timespec.h: Remove superfluous warning to include config.h.
50928         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50929         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50930         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50931         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50932         config.h with HAVE_CONFIG_H.
50933
50934 2005-09-19  Jim Meyering  <jim@meyering.net>
50935
50936         * modules/pathmax (License): Change to LGPL.
50937
50938 2005-09-19  Derek Price  <derek@ximbiot.com>
50939
50940         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50941
50942 2005-09-19  Bruno Haible  <bruno@clisp.org>
50943
50944         * gnulib-tool (import): Provide default for --tests-base.
50945
50946 2005-09-19  Bruno Haible  <bruno@clisp.org>
50947
50948         * doc/quote.texi: New file, extracted from gnulib.texi.
50949         * doc/ctime.texi: New file, extracted from gnulib.texi.
50950         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50951         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50952         * doc/gnulib.texi: Include them.
50953
50954 2005-09-18  Bruno Haible  <bruno@clisp.org>
50955
50956         Portability fix.
50957         * gnulib-tool (func_readlink): New function.
50958         (func_ln_if_changed): Use it.
50959
50960 2005-09-18  Bruno Haible  <bruno@clisp.org>
50961
50962         * gnulib-tool: Support --with-tests also with --import.
50963         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50964         (func_import): Use variables $testsbase and $inctests. Emit a
50965         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50966         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50967         SUBDIRS += $testsdir.
50968         (func_create_testdir): Update.
50969
50970 2005-09-18  Bruno Haible  <bruno@clisp.org>
50971
50972         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50973         instead of $dry_run.
50974         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50975         (func_ln_if_changed): Don't handle dry-run here.
50976         (func_import): In dry-run mode, detect more precisely which actions
50977         would be performed, and don't use "...ing" verbs.
50978
50979 2005-09-18  Bruno Haible  <bruno@clisp.org>
50980
50981         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50982         (func_import): Use join on two temporary files instead of three nested
50983         loops, in order to determine which files are new or old.
50984
50985 2005-09-18  Bruno Haible  <bruno@clisp.org>
50986
50987         * gnulib-tool (func_import): Comment out code that spits out the
50988         new files with --dry-run.
50989
50990 2005-09-18  Bruno Haible  <bruno@clisp.org>
50991
50992         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50993
50994 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * lib/stat-time.h: New file.
50997         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50998         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50999         in a different way.
51000         (timespec_cmp): New function.
51001         * lib/utimecmp.c: Include stat-time.h.
51002         (SYSCALL_RESOLUTION): Depend on whether various struct stat
51003         members exist, not on the obsolescent ST_MTIM_NSEC.
51004         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
51005
51006 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
51007
51008         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
51009
51010 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
51011
51012         * MODULES.html.sh (File system functions): Add stat-time.
51013         * modules/stat-time: New file.
51014         * modules/timespec (Files): Remove m4/st_mtim.m4; this
51015         is now done in a different way, by the stat-time module.
51016         * modules/utimecmp (Depends-on): Add stat-time.
51017
51018 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51019
51020         * m4/st_mtim.m4: Remove.  Superseded by...
51021         * m4/stat-time.m4: New file.
51022         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
51023         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
51024
51025 2005-09-15  Derek Price  <derek@ximbiot.com>
51026
51027         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
51028
51029 2005-09-15  Derek Price  <derek@ximbiot.com>
51030
51031         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
51032         * lib/regex_internal.c: Ditto, using this...
51033         (__GNUC_PREREQ): ...new macro.
51034         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
51035         using...
51036         (__GNUC_PREREQ): ...this new macro.
51037
51038         * lib/strstr.h: Include string.h. Define strstr as a macro here.
51039
51040 2005-09-15  Derek Price  <derek@ximbiot.com>
51041             Paul Eggert  <eggert@cs.ucla.edu>
51042
51043         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
51044         changes, consolidating in...
51045         * lib/regex_internal.h: ...this file.
51046
51047 2005-09-13  Jim Meyering  <jim@meyering.net>
51048
51049         * lib/canon-host.c: Filter through gnu indent and reword comments
51050         slightly.
51051         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
51052
51053 2005-09-13  Derek Price  <derek@ximbiot.com>
51054
51055         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
51056         failure.
51057         Reported by Jim Meyering  <jim@meyering.net>.
51058
51059 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51060
51061         * lib/base64.c: Typo.
51062         (base64_encode): Put b64str in initialized data section.
51063
51064 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
51065
51066         Merge glibc and coreutils changes into gnulib, plus a few
51067         extra fixes.
51068         * lib/md5.c: Use #error rather than a string.
51069         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
51070         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
51071         (__attribute__): Define to empty for non recent-GCC.
51072         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
51073         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
51074         Renamed from their non-__ counterparts, with new macros replacing
51075         them if not _LIBC.  Add __THROW attribute.
51076         (rol): Remove.
51077         (struct md5_ctx): Align buffer if using GCC.
51078         * lib/sha1.h (struct sha1_ctx): Likewise.
51079         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
51080         The old name was backwards.
51081         (NOTSWAP): Remove; not used.
51082         (rol): New macro, moved here from md5.h.
51083         (sha1_process_block): Remove a FIXME that doesn't make sense.
51084
51085 2005-09-12  Derek Price  <derek@ximbiot.com>
51086
51087         Return usable errors from canon-host.
51088         * lib/canon-host.h: New file.
51089         * lib/canon-host.c (canon_host): Wrap...
51090         (canon_host_r): ...this new function, which now relies exclusively on
51091         getaddrinfo.
51092         (ch_strerror): New function.
51093         (last_cherror): New global.
51094         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
51095         interface.
51096         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
51097         void *.
51098         (freeaddrinfo): Free ai->ai_canonname when set.
51099
51100 2005-09-12  Derek Price  <derek@ximbiot.com>
51101
51102         Make canon-host require getaddrinfo.
51103         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
51104         AC_LIBSOURCE canon-host.h.  Call...
51105         (gl_PREREQ_CANON_HOST): ...this new function, which requires
51106         gl_GETADDRINFO.
51107         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
51108
51109 2005-09-12  Derek Price  <derek@ximbiot.com>
51110
51111         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
51112         LGPL.
51113         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
51114
51115 2005-09-12  Derek Price  <derek@ximbiot.com>
51116
51117         * lib/gai_strerror.c: Include config.h when available.  Include
51118         getaddrinfo.h before other headers to test interface.
51119         Reported by Larry Jones <lawrence.jones@ugs.com>.
51120
51121 2005-09-12  Derek Price  <derek@ximbiot.com>
51122             Paul Eggert  <eggert@cs.ucla.edu>
51123
51124         * modules/glob (Files): Add glob-libc.h.
51125
51126 2005-09-12  Derek Price  <derek@ximbiot.com>
51127             Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
51130         glob_.h, glob-libc.h.
51131         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
51132
51133 2005-09-12  Derek Price  <derek@ximbiot.com>
51134             Paul Eggert  <eggert@cs.ucla.edu>
51135
51136         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
51137         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
51138         protecting things that should be done only in gnulib contexts.
51139         * lib/glob_.h: New file, containing only the glob things needed for
51140         gnulib.
51141         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
51142         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
51143         (glob, globfree, glob_pattern_p): Now defined simply in terms of
51144         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
51145         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
51146         and to respect the namespace rules better.
51147
51148 2005-09-08  Simon Josefsson  <jas@extundo.com>
51149
51150         * modules/socklen: New file.
51151
51152 2005-09-08  Simon Josefsson  <jas@extundo.com>
51153
51154         * m4/socklen.m4: New file.
51155
51156 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51157
51158         * modules/utimens (Files): Add m4/utimbuf.m4, since
51159         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
51160         Reported by Sergey Poznyakoff.
51161
51162 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51163
51164         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
51165         definitions, since that's the preferred style in glibc.
51166         Fix a minor spacing issue, and update copyright notice to match
51167         glibc's.
51168
51169 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51170
51171         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
51172
51173 2005-09-06  Simon Josefsson  <jas@extundo.com>
51174
51175         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
51176         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
51177
51178 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51179
51180         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
51181         warning.
51182
51183 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51184
51185         * config/srclist.txt: Add glibc bug 1302.
51186
51187 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
51188
51189         Change bitset word type from unsigned int to unsigned long int,
51190         as this has better performance on typical 64-bit hosts.
51191         Port bitset code to hosts with unusual word sizes.
51192         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
51193         (build_collating_symbol):
51194         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
51195         argument is a bitset.  This is merely a style issue, but it makes
51196         it clearer that an entire array is expected.
51197         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
51198         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
51199         Port to the case where bitset_word is not the same as unsigned int.
51200         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
51201         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
51202         Likewise.
51203         * lib/regexec.c (check_dst_limits_calc_pos_1,
51204         check_subexp_matching_top):
51205         (build_trtable, group_nodes_into_DFAstates):
51206         Likewise.
51207         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
51208         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
51209         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
51210         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
51211         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
51212         * lib/regcomp.c (optimize_subexps, lower_subexp):
51213         Work even if bitset_word has holes in its bitwise representation.
51214         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
51215         * lib/regexec.c (check_dst_limits_calc_pos_1,
51216         check_subexp_matching_top):
51217         Likewise.
51218         * lib/regex_internal.c (re_string_reconstruct):
51219         Don't assume UCHAR_MAX == 255.
51220         * lib/regex_internal.h (bitset_set_all): Likewise.
51221         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
51222         All uses changed.
51223         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
51224         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
51225         All uses changed.
51226         (BITSET_WORD_MAX): New macro.
51227         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
51228         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
51229         (bitset_empty, bitset_copy):
51230         Prefer sizeof (bitset) to multiplying it out ourselves.
51231         (bitset_not_merge): Remove; unused.
51232         (bitset_contain): Return bool, not unsigned int with one bit on.
51233         All callers changed.
51234         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
51235         alignment than re_node_set; do this by defining a new internal
51236         type struct dests_alloc and using it to allocate memory.
51237
51238 2005-09-05  Bruno Haible  <bruno@clisp.org>
51239
51240         * gnulib-tool (func_import): Fix comparison in handling of symbolic
51241         links.
51242
51243 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
51244
51245         * modules/size_max (Makefile.am): Add size_max.h
51246
51247 2005-09-04  Derek Price  <derek@ximbiot.com>
51248
51249         * gnulib-tool (func_import): Fix reversed $symbolic logic.
51250
51251 2005-09-03  Simon Josefsson  <jas@extundo.com>
51252
51253         * gnulib-tool: Fix typo.
51254
51255 2005-09-03  Simon Josefsson  <jas@extundo.com>
51256
51257         * config/srclist.txt: Add glibc bug 1293.
51258
51259 2005-09-03  Derek Price  <derek@ximbiot.com>
51260
51261         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
51262         From Larry Jones <lawrence.jones@ugs.com>.
51263
51264 2005-09-02  Simon Josefsson  <jas@extundo.com>
51265
51266         * modules/socklen: New file.
51267
51268 2005-09-02  Simon Josefsson  <jas@extundo.com>
51269
51270         * modules/havelib: New module.
51271
51272         * modules/gettext, modules/iconv, modules/lock, modules/readline:
51273         Use havelib.
51274
51275 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         Check for arithmetic overflow when calculating sizes, to prevent
51278         some buffer-overflow issues.  These patches are conservative, in the
51279         sense that when I couldn't determine whether an overflow was possible,
51280         I inserted a run-time check.
51281         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
51282         macros.
51283         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
51284         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
51285         (re_xnrealloc, re_x2nrealloc): New inline functions.
51286         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
51287         parse_bracket_exp):
51288         (build_equiv_class, build_charclass): Check for arithmetic overflow
51289         in size expression calculations.
51290         * lib/regex_internal.c (re_string_realloc_buffers):
51291         (build_wcs_upper_buffer, re_node_set_add_intersect):
51292         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
51293         (re_dfa_add_node, register_state): Likewise.
51294         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
51295         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
51296         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
51297         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
51298
51299 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
51300
51301         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51302         m4/ulonglong.m4.  Problem reported by Martin Lambers.
51303
51304 2005-09-02  Bruno Haible  <bruno@clisp.org>
51305
51306         Support for lib vs. lib64 distinction on biarch platforms.
51307         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
51308         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
51309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
51310
51311 2005-09-02  Bruno Haible  <bruno@clisp.org>
51312
51313         * gnulib-tool (import): In the other first-use case, provide defaults
51314         as well.
51315
51316 2005-09-02  Bruno Haible  <bruno@clisp.org>
51317
51318         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
51319         patches not yet found in the latest gettext release.
51320
51321 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51322
51323         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
51324         to avoid a collision with bits/local_lim.h in glibc.
51325         All uses changed.  Problem reported by Dmitry V. Levin in
51326         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
51327
51328         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
51329         bugs in int versus size_t comparisons.
51330         (re_string_context_at): Fix bug where the code assumed that
51331         Idx is signed.
51332
51333         Use bool where appropriate.
51334         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
51335         All callers changed.
51336         (calc_eclosure_iter): Likewise, for ROOT arg.
51337         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
51338         (build_charclass_op): Likewise, for NON_MATCH arg.
51339         * lib/regex_internal.c (re_string_allocate, re_string_construct):
51340         (re_string_construct_common): Likewise, for ICASE arg.
51341         * lib/regexec.c (re_search_2_stub, re_search_stub):
51342         Likewise, for RET_LEN arg.
51343         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
51344         (set_regs): Likewise, for FL_BACKTRACK arg.
51345         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
51346         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
51347         (calc_eclosure_iter, parse_bracket_exp):
51348         Use bool for internal variables that are booleans.
51349         * lib/regexec.c (re_search_internal, check_matching,
51350         proceed_next_node):
51351         (set_regs, build_sifted_states, sift_states_bkref):
51352         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
51353         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51354         (find_collation_sequence_value):
51355         Likewise.
51356         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
51357         (re_node_set_compare):
51358         Return bool, not int. All callers changed.
51359         * lib/regexec.c (check_halt_node_context, check_dst_limits):
51360         (build_trtable, check_node_accept): Likewise.
51361         * lib/regex_internal.h: Include stdbool.h.
51362
51363         Fix bugs uncovered when converting to bool.
51364         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
51365         failure instead of charging ahead blindly.
51366         * lib/regex_internal.c (register_state): Likewise.
51367         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
51368         for freeing internal storage.
51369         (group_nodes_into_DFA_states): Use unsigned int, not int, for
51370         bitset pieces used as boolean, to avoid undefined behavior
51371         on hosts that do int overflow checking.
51372
51373 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51374
51375         * config/srclist.txt: Add glibc bugs 1285-1287.
51376
51377 2005-09-01  Jim Meyering  <jim@meyering.net>
51378
51379         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
51380         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
51381         Require gl_STAT_MACROS, too.
51382
51383 2005-09-01  Bruno Haible  <bruno@clisp.org>
51384
51385         * gnulib-tool (import): In the first-use case, provide defaults.
51386
51387 2005-09-01  Bruno Haible  <bruno@clisp.org>
51388
51389         * gnulib-tool (func_import): Remove the .tmp files.
51390
51391 2005-09-01  Bruno Haible  <bruno@clisp.org>
51392
51393         * gnulib-tool (func_import): Fix handling of symbolic links.
51394
51395 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51396
51397         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
51398         old glibc regex code mishandles strings longer than 2**31 bytes.
51399         This patch fixes this when the regex code is used in gnulib
51400         (i.e., outside glibc).
51401
51402         This patch should not affect the use of the regex code inside
51403         glibc.  No doubt this problem also needs to be handled for glibc
51404         as well, but the result will be an incompatible change to the
51405         glibc ABI, and the old ABI will have to be supported too.  That
51406         can be the the subject for another patch.
51407
51408         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
51409         governing whether the rest of this patch is active.  By default,
51410         the macro is disabled and the patch has no effect.
51411         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
51412         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
51413         (struct re_pattern_buffer, re_search, re_search_2, re_match):
51414         (re_match_2, re_set_registers): Use the new types.
51415         * lib/regex_internal.h (Idx, re_hashval_t): New types.
51416         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
51417         New macros.
51418         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
51419         (re_string_context_at, bin_tree_t, re_dfastate_t):
51420         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
51421         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
51422         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
51423         (re_string_char_size_at, re_string_wchar_at):
51424         (re_string_elem_size_at):
51425         Use the new types and macros to port to 64-bit hosts.
51426         Use unsigned types for internal values, so that the code
51427         mostly works even for arrays larger than SSIZE_MAX.
51428         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
51429         (search_duplicated_node, calc_eclosure_iter, fetch_number):
51430         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
51431         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
51432         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
51433         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
51434         (calc_inveclosure, parse_dup_op, build_range_exp):
51435         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
51436         (fetch_number, create_token_tree, mark_opt_subexp):
51437         Likewise.
51438         * lib/regex_internal.c (re_string_construct_common,
51439         create_ci_newstate):
51440         (create_cd_newstate, re_string_allocate, re_string_construct):
51441         (re_string_realloc_buffers, build_wcs_upper_buffer):
51442         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51443         (re_string_reconstruct, re_string_peek_byte_case):
51444         (re_string_fetch_byte_case, re_string_context_at):
51445         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51446         (re_node_set_init_copy, re_node_set_add_intersect):
51447         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51448         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51449         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51450         (re_acquire_state, re_acquire_state_context, register_state):
51451         Likewise.
51452         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
51453         search_cur_bkref_entry):
51454         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
51455         (re_search_internal, re_search_2_stub, re_search_stub)
51456         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
51457         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
51458         (update_cur_sifted_state, check_dst_limits):
51459         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51460         (check_subexp_limits, sift_states_bkref, merge_state_array):
51461         (check_subexp_matching_top, get_subexp, get_subexp_sub):
51462         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
51463         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51464         (expand_bkref_cache, check_node_accept_bytes):
51465         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
51466         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
51467         (acquire_init_state_context, check_halt_node_context):
51468         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
51469         (sift_states_backward, clean_state_log_if_needed):
51470         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
51471         (find_recover_state, transit_state_sb, transit_state_mb):
51472         (transit_state_bkref, build_trtable, match_ctx_clean):
51473         Likewise.
51474         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
51475         to work around an assumption that REG_MISSING is negative.
51476
51477         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
51478         (seek_collating_symbol_entry) [defined _LIBC]:
51479         (lookup_collation_sequence_value) [defined _LIBC]:
51480         (build_range_exp, build_collating_symbol) [defined _LIBC]:
51481         Use prototypes rather than old-style function definitions.
51482         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
51483         (transit_state_sb) [0]:
51484         (find_collation_sequence_value) [defined _LIBC]: Likewise.
51485
51486         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
51487         rm_eo.
51488
51489         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
51490         (optimize_subexps, lower_subexp):
51491         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
51492         since the signed shift might overflow.  Use 1u<<31 instead.
51493         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
51494         Likewise.
51495         * lib/regexec.c (check_dst_limits_calc_pos_1,
51496         check_subexp_matching_top): Likewise.
51497
51498         * lib/regcomp.c (optimize_subexps, lower_subexp):
51499         Use CHAR_BIT rather than 8, for clarity.
51500         * lib/regexec.c (check_dst_limits_calc_pos_1):
51501         (check_subexp_matching_top): Likewise.
51502         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
51503         have to worry about portability issues when shifting it left.
51504         Remove no-longer-needed test for table_size > 0.
51505         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
51506         in a word, as the resulting behavior is undefined.
51507         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
51508         in one case, a <= should have been an <, and in another case the
51509         whole test was missing.
51510         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
51511         the standard name CHAR_BIT.
51512         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
51513         this is not true on one's complement and signed-magnitude hosts.
51514
51515         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
51516         next_last_offset.
51517         (struct re_dfa_t): Remove unused member states_alloc.
51518         * lib/regcomp.c (init_dfa): Don't initialize unused members.
51519
51520 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51521
51522         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
51523         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
51524         and large-file glibc and in 32-bit large-file Solaris.
51525
51526 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51527
51528         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
51529         lengths fit in regoff_t; this isn't true if regoff_t is the same
51530         width as size_t.
51531         * lib/regex.c (re_search_internal): 5th arg is LAST_START
51532         (= START + RANGE) instead of RANGE.  This avoids overflow
51533         problems when regoff_t is the same width as size_t.
51534         All callers changed.
51535         (re_search_2_stub): Check for overflow when adding the
51536         sizes of the two strings.
51537         (re_search_stub): Check for overflow when adding START
51538         to RANGE; if it occurs, substitute the extreme value.
51539
51540 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
51543
51544 2005-08-31  Jim Meyering  <jim@meyering.net>
51545
51546         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
51547         a pointer-to-const.
51548         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
51549         (register_state): Likewise.
51550         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
51551         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51552         (group_nodes_into_DFAstates): Likewise.
51553
51554 2005-08-31  Jim Meyering  <jim@meyering.net>
51555
51556         * check-module: Add a FIXME comment.
51557
51558 2005-08-31  Eric Blake  <ebb9@byu.net>
51559
51560         * modules/unistd-safer (Files): Add unistd--.h.
51561         * modules/stdio-safer (Files): Add stdio--.h.
51562
51563 2005-08-31  Derek Price  <derek@ximbiot.com>
51564
51565         * lib/getdelim.c (getdelim): Return EOF on EOF.
51566         Reported by Larry Jones <lawrence.jones@ugs.com>.
51567
51568 2005-08-31  Bruno Haible  <bruno@clisp.org>
51569
51570         Avoid unnecessary diffs in the generated lib/Makefile.am.
51571         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
51572         the generated files.
51573         (func_import): Don't set cmd.
51574
51575 2005-08-31  Bruno Haible  <bruno@clisp.org>
51576
51577         * lib/strstr.c: Include <stddef.h>, for NULL.
51578         * lib/strcasestr.c: Likewise.
51579         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51580
51581 2005-08-31  Bruno Haible  <bruno@clisp.org>
51582
51583         * gnulib-tool: New option --macro-prefix.
51584         (func_import): Use macro_prefix.
51585         (import): Handle option --macro-prefix.
51586
51587 2005-08-31  Bruno Haible  <bruno@clisp.org>
51588
51589         * gnulib-tool (import): Rename most ac_* variables to cached_*.
51590         Also use new variables cached_lgpl, cached_libtool.
51591
51592 2005-08-31  Bruno Haible  <bruno@clisp.org>
51593
51594         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
51595         always instantiating them.
51596
51597 2005-08-31  Bruno Haible  <bruno@clisp.org>
51598
51599         * gnulib-tool (func_import): Read the previous cached settings
51600         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
51601         earlier added by gnulib but are now dropped. Warn when a gnulib file
51602         overwrites a non-gnulib file.
51603
51604 2005-08-31  Bruno Haible  <bruno@clisp.org>
51605
51606         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
51607         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
51608         projects that don't keep autogenerated files in CVS. Put into
51609         actioncmd only the specified modules, not the transitive closure.
51610
51611 2005-08-31  Bruno Haible  <bruno@clisp.org>
51612
51613         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
51614         Create directories that shall be filled.
51615         (import): Don't look for gl_* macros in configure.ac. Recurse across
51616         all directories containing a gnulib-cache.m4 files, if meaningful.
51617
51618 2005-08-31  Bruno Haible  <bruno@clisp.org>
51619
51620         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51621         (import): Set seen_libtool when we see gl_LIBTOOL.
51622
51623 2005-08-31  Bruno Haible  <bruno@clisp.org>
51624
51625         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51626         declaration macro definitions from generated gnulib.m4.
51627
51628 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51629
51630         * lib/iconvme.h: Add prototype for iconv_alloc.
51631
51632 2005-08-29  Simon Josefsson  <jas@extundo.com>
51633
51634         * lib/iconvme.c: Fix errno.
51635
51636 2005-08-29  Bruno Haible  <bruno@clisp.org>
51637
51638         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51639         that it works when the directory contains spaces.
51640
51641 2005-08-29  Bruno Haible  <bruno@clisp.org>
51642
51643         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51644
51645 2005-08-29  Bruno Haible  <bruno@clisp.org>
51646
51647         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51648         Emit more advice.
51649
51650 2005-08-29  Bruno Haible  <bruno@clisp.org>
51651         and Stepan Kasal  <kasal@ucw.cz>
51652
51653         * check-module: If more parameters are given, check each of them
51654         separately; add more exceptions, as noted by Jim Meyering.
51655         (check_module): New procedure.
51656         (%exempt_header): Now contains all exceptions.
51657
51658 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51659
51660         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51661
51662 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51663
51664         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51665
51666 2005-08-28  Bruno Haible  <bruno@clisp.org>
51667
51668         * m4/gnulib-tool.m4: New file.
51669
51670 2005-08-27  Jim Meyering  <jim@meyering.net>
51671
51672         * modules/unistd-safer (Files): Add pipe-safer.c.
51673         * modules/fcntl-safer (Files): Add creat-safer.c.
51674
51675 2005-08-27  Jim Meyering  <jim@meyering.net>
51676
51677         * m4/stdlib-safer.m4: New file.  From coreutils.
51678         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51679         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51680         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51681         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51682         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51683
51684 2005-08-27  Jim Meyering  <jim@meyering.net>
51685
51686         * lib/fopen-safer.c: Merge minor changes from coreutils.
51687         * lib/dup-safer.c: Likewise.
51688         * lib/fd-safer.c: Likewise.
51689
51690         Merge from coreutils.
51691         * lib/stdio--.h: New file.
51692         * lib/stdlib--.h: New file.
51693         * lib/mkstemp-safer.c: New file.
51694
51695         GNU tar needs these.
51696         * lib/pipe-safer.c: New file.
51697         * lib/creat-safer.c: New file.
51698         * lib/fcntl--.h (creat): Define to creat_safer.
51699         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51700         * lib/unistd--.h (pipe): Define to pipe_safer.
51701         * lib/unistd-safer.h: Declare pipe_safer.
51702
51703 2005-08-26  Simon Josefsson  <jas@extundo.com>
51704
51705         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51706         Haible <bruno@clisp.org>.
51707
51708 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51709
51710         * lib/regex_internal.h: Remove all references to
51711         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51712         or better.
51713         (bitset_not, bitset_merge, bitset_not_merge):
51714         (bitset_mask, re_string_allocate, re_string_construct):
51715         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51716         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51717         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51718         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51719         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51720         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51721         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51722         (re_acquire_state_context):
51723         Remove unnecessary forward decls.
51724         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51725         Put __attribute at function definition,
51726         now that the function decl has been removed.
51727         * lib/regex_internal.c (re_string_peek_byte_case):
51728         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51729         Likewise.
51730
51731 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51732
51733         * m4/regex.m4: Add AC_PREREQ(2.50).
51734         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51735
51736 2005-08-25  Simon Josefsson  <jas@extundo.com>
51737
51738         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51739         __fsetlocking.
51740
51741 2005-08-25  Simon Josefsson  <jas@extundo.com>
51742
51743         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51744         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51745         GLIBC specific code.
51746
51747 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51748
51749         Make regex safe for g++.  This fixes one real bug (an "err"
51750         that should have been "*err").  g++ problem reported by
51751         Sam Steingold.
51752         * lib/regex_internal.h (re_calloc): New macro, consistent with
51753         re_malloc etc.  All callers of calloc changed to use re_calloc.
51754         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51755         not int.  All callers changed.
51756         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51757         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51758         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51759         (find_recover_state): Change "err" to "*err"; this fixes what
51760         appears to be a real bug.
51761         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51762         versus int.
51763
51764 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51765
51766         * modules/regex (Depends-on): Add malloc, since the code
51767         assumes that !malloc(0) means failure.
51768
51769 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51770
51771         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51772
51773         alloca modernization/simplification for regex.
51774         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51775         needs to be at the start of the file, and can be moved into
51776         regex_internal.h and simplified.
51777         * lib/regex_internal.h: Include <alloca.h>.
51778         (__libc_use_alloca) [!defined _LIBC]: New macro.
51779         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51780         now works outside glibc.
51781
51782 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51783
51784         * config/srclist.txt: Add glibc bugs 1241, 1245.
51785
51786 2005-08-25  Jim Meyering  <jim@meyering.net>
51787
51788         * lib/open-safer.c: Include <config.h>.
51789         Otherwise, we'd lose LARGEFILE support in any file using
51790         e.g. "fcntl--.h"
51791
51792 2005-08-25  Bruno Haible  <bruno@clisp.org>
51793
51794         * m4/minmax.m4: Require autoconf 2.52.
51795         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51796         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51797         alternatives of translit over the alphabet.
51798         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51799
51800 2005-08-24  Simon Josefsson  <jas@extundo.com>
51801
51802         * tests/test-getpass.c: New file.
51803
51804 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51805
51806         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51807         for GNU regex features.
51808
51809 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51810
51811         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51812         * lib/regex.h (regerror): Likewise.
51813
51814         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51815         requires this.  (The code never needed it.)
51816
51817         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51818         All uses of recently-renamed identifiers changed to use the new,
51819         POSIX-compliant names.  The code will build and run just fine
51820         without these changes, but it's better to eat our own dog food
51821         and use the standard-conforming names.
51822
51823         * lib/regex.h: Fix a multitude of POSIX name space violations.
51824         These changes have an effect only for programs that define
51825         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51826         do not change anything for programs compiled in the normal way.
51827         Also, there is no effect on the ABI.
51828
51829         (_REGEX_SOURCE): New macro.
51830         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51831         defined and _GNU_SOURCE is not; this fixes a name space violation.
51832
51833         Rename the following macros to obey POSIX requirements.
51834         The old names are still visible as macros if _REGEX_SOURCE is defined.
51835         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51836         RE_BACKSLASH_ESCAPE_IN_LISTS.
51837         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51838         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51839         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51840         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51841         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51842         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51843         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51844         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51845         (REG_INTERVALS): renamed from RE_INTERVALS.
51846         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51847         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51848         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51849         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51850         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51851         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51852         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51853         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51854         RE_UNMATCHED_RIGHT_PAREN_ORD.
51855         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51856         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51857         (REG_DEBUG): renamed from RE_DEBUG.
51858         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51859         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51860         unusual, since we can't clash with the POSIX REG_ICASE.
51861         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51862         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51863         (REG_NO_SUB): renamed from RE_NO_SUB.
51864         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51865         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51866         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51867         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51868         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51869         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51870         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51871         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51872         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51873         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51874         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51875         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51876         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51877         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51878         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51879         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51880         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51881         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51882         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51883         (REG_FIXED): Renamed from REGS_FIXED.
51884         (REG_NREGS): Renamed from RE_NREGS.
51885
51886         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51887         of other REG_* macros, since POSIX says the user is allowed to
51888         #undef these macros selectively.
51889
51890         (reg_errcode_t): Update comment stating what other tables need
51891         to be consistent.
51892
51893         Rename the following enum values to obey POSIX requirements.
51894         The old names are still visible as macros.
51895         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51896         is not defined, since GNU is supposed to be a superset of POSIX as
51897         much as possible, and since we want reg_errcode_t to be a signed
51898         type for implementation consistency.
51899         (_REG_NOERROR): Renamed from REG_NOERROR.
51900         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51901         (_REG_BADPAT): Renamed from REG_BADPAT.
51902         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51903         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51904         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51905         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51906         (_REG_EBRACK): Renamed from REG_EBRACK.
51907         (_REG_EPAREN): Renamed from REG_EPAREN.
51908         (_REG_EBRACE): Renamed from REG_EBRACE.
51909         (_REG_BADBR): Renamed from REG_BADBR.
51910         (_REG_ERANGE): Renamed from REG_ERANGE.
51911         (_REG_ESPACE): Renamed from REG_ESPACE.
51912         (_REG_BADRPT): Renamed from REG_BADRPT.
51913         (_REG_EEND): Renamed from REG_EEND.
51914         (_REG_ESIZE): Renamed from REG_ESIZE.
51915         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51916         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51917         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51918         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51919         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51920
51921         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51922         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51923         changed.  But support the old name if the new one is not defined
51924         and if _REGEX_SOURCE.
51925
51926         Change the following member names in struct re_pattern_buffer.
51927         The old names are still supported if !_REGEX_SOURCE.
51928         The new names are always supported, regardless of _REGEX_SOURCE.
51929         (re_buffer): Renamed from buffer.
51930         (re_allocated): Renamed from allocated.
51931         (re_used): Renamed from used.
51932         (re_syntax): Renamed from syntax.
51933         (re_fastmap): Renamed from fastmap.
51934         (re_translate): Renamed from translate.
51935         (re_can_be_null): Renamed from can_be_null.
51936         (re_regs_allocated): Renamed from regs_allocated.
51937         (re_fastmap_accurate): Renamed from fastmap_accurate.
51938         (re_no_sub): Renamed from no_sub.
51939         (re_not_bol): Renamed from not_bol.
51940         (re_not_eol): Renamed from not_eol.
51941         (re_newline_anchor): Renamed from newline_anchor.
51942
51943         Change the following member names in struct re_registers.
51944         The old names are still supported if !_REGEX_SOURCE.
51945         The new names are always supported, regardless of _REGEX_SOURCE.
51946         (rm_num_regs): Renamed from num_regs.
51947         (rm_start): Renamed from start.
51948         (rm_end): Renamed from end.
51949
51950         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51951         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51952         Prepend __ to parameter names.
51953
51954         Undo yesterday's changes.
51955
51956 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51957
51958         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51959         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51960         lib/regex.c.
51961
51962 2005-08-24  Jim Meyering  <jim@meyering.net>
51963
51964         Sync from coreutils.
51965         * m4/fcntl-safer.m4: New file.
51966
51967         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51968         and object files for this module.
51969
51970 2005-08-24  Jim Meyering  <jim@meyering.net>
51971
51972         Sync from coreutils.
51973         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51974
51975 2005-08-24  Jim Meyering  <jim@meyering.net>
51976
51977         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51978         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51979
51980 2005-08-24  Jim Meyering  <jim@meyering.net>
51981
51982         * modules/fcntl-safer: New module.
51983         * modules/fts (Depends-on): Add fcntl-safer.
51984         * MODULES.html.sh (File descriptor based Input/Output):
51985         Add fcntl-safer.
51986
51987 2005-08-24  Bruno Haible  <bruno@clisp.org>
51988
51989         Support for unit test modules.
51990         * modules/README: Mention tests modules.
51991         * modules/TEMPLATE-TESTS: New file.
51992         * gnulib-tool: New options --extract-tests-module, --with-tests and
51993         --tests-base (unused for the moment).
51994         (testsbase, inctests): New variables.
51995         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51996         (func_verify_module): Exclude TEMPLATE-TESTS.
51997         (func_verify_nontests_module, func_verify_tests_module): New functions.
51998         (func_get_dependencies): Add implicit dependency for tests modules.
51999         (func_get_tests_module): New function.
52000         (func_modules_transitive_closure): When --with-tests was specified,
52001         include the unit tests as well, unless explicitly avoided.
52002         (func_emit_lib_Makefile_am): Ignore the tests modules here.
52003         (func_emit_tests_Makefile_am): New function.
52004         (func_create_testdir): When --with-tests was specified, emit a
52005         tests/ directory.
52006         * MODULES.html.sh (Future developments): Update.
52007
52008 2005-08-24  Bruno Haible  <bruno@clisp.org>
52009
52010         * modules/tls-tests: New file.
52011         * tests/test-tls.c: New file, from GNU gettext.
52012
52013 2005-08-24  Bruno Haible  <bruno@clisp.org>
52014
52015         * modules/lock-tests: New file.
52016         * tests/test-lock.c: New file, from GNU gettext.
52017
52018 2005-08-24  Bruno Haible  <bruno@clisp.org>
52019
52020         * lib/lock.h: Add multiple inclusion guard.
52021         * lib/tls.h: Add multiple inclusion guard.
52022
52023 2005-08-24  Bruno Haible  <bruno@clisp.org>
52024
52025         * gnulib-tool: Add support for the --aux-dir option to
52026         --create-testdir, --create-megatestdir, --test, --megatest.
52027         (func_create_testdir, func_create_megatestdir): Optionally emit a
52028         AC_CONFIG_AUX_DIR directive.
52029         (create-testdir, create-megatestdir, test, megatest): Provide a
52030         default value for $auxdir.
52031
52032 2005-08-24  Bruno Haible  <bruno@clisp.org>
52033
52034         * gnulib-tool (import): Use compound statement instead of subshell
52035         where possible.
52036
52037 2005-08-24  Bruno Haible  <bruno@clisp.org>
52038
52039         * gnulib-tool (import): Change --aux-dir default to "build-aux".
52040
52041 2005-08-24  Bruno Haible  <bruno@clisp.org>
52042
52043         * gnulib-tool (func_version): Update.
52044
52045 2005-08-24  Bruno Haible  <bruno@clisp.org>
52046
52047         * gnulib-tool (func_import, func_create_testdir,
52048         func_create_megatestdir): Quote all autoconf macro arguments.
52049
52050 2005-08-24  Bruno Haible  <bruno@clisp.org>
52051
52052         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
52053         option --force, because --force causes the aclocal.m4 of each
52054         subdirectory to be newer than the corresponding config.h.in.
52055
52056 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52057
52058         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
52059         All contents moved to gl_REGEX.
52060         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
52061         assume that it does.
52062
52063 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52064
52065         * lib/regex.h (REG_NOSYS)
52066         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
52067         Define, since POSIX requires it as of 2001.
52068         (_REG_ENOSYS)
52069         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
52070         New private symbol, used to keep the enum signed in all cases.
52071         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
52072         Youngman in
52073         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
52074
52075         * lib/regex_internal.c (re_string_skip_chars, register_state):
52076         (calc_state_hash):
52077         Remove forward decls; no longer needed now that we use prototypes.
52078         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
52079         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
52080         (clean_state_log_if_needed): Likewise.
52081
52082 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52083
52084         * config/srclist.txt: Add glibc bugs 1231-1233.
52085
52086 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52087
52088         Fix problems reported by Sam Steingold in
52089         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
52090         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
52091         assumed that reg_errcode_t is a signed type, which is not
52092         necessarily true if _XOPEN_SOURCE is not defined.
52093         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
52094         since some compilers warn about it otherwise.
52095
52096 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52097
52098         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
52099         (init_word_char, create_initial_state, duplicate_node_closure):
52100         (fetch_token, peek_token_bracket, build_range_exp):
52101         (build_collating_symbol): Remove forward decls; no longer needed
52102         now that we use prototypes.
52103
52104         * lib/regcomp.c:
52105         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
52106         (re_compile_fastmap_iter, regcomp, regerror, regfree):
52107         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
52108         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
52109         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
52110         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
52111         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
52112         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
52113         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
52114         (build_range_exp, build_collating_symbol, parse_bracket_exp):
52115         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
52116         (build_charclass, build_charclass_op, fetch_number, create_tree):
52117         (create_token_tree, mark_opt_subexp, duplicate_tree):
52118         Use prototypes rather than old-style definitions.
52119
52120         * lib/regex_internal.c:
52121         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
52122         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
52123         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
52124         (re_string_reconstruct, re_string_peek_byte_case):
52125         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
52126         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
52127         (re_node_set_init_copy, re_node_set_add_intersect):
52128         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
52129         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
52130         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
52131         (re_acquire_state, re_acquire_state_context, register_state):
52132         (create_ci_newstate, create_cd_newstate, free_state):
52133         Likewise.
52134         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
52135         re_search_2):
52136         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
52137         (re_search_internal, prune_impossible_nodes):
52138         (acquire_init_state_context, check_matching, static):
52139         (check_halt_node_context, check_halt_state_context, proceed_next_node):
52140         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
52141         (update_regs, sift_states_backward, build_sifted_states):
52142         (clean_state_log_if_needed, merge_state_array):
52143         (update_cur_sifted_state, add_epsilon_src_nodes):
52144         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
52145         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
52146         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
52147         (find_recover_state, check_subexp_matching_top, transit_state_mb):
52148         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
52149         (check_arrival, check_arrival_add_next_nodes):
52150         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
52151         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
52152         (check_node_accept_bytes, check_node_accept, extend_buffers):
52153         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
52154         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
52155         (sift_ctx_init):
52156         Likewise.
52157
52158         * lib/regex_internal.h:
52159         (re_string_allocate, re_string_construct, re_string_reconstruct):
52160         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
52161         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
52162         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
52163         (re_string_context_at, re_string_peek_byte_case):
52164         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
52165         is defined, since we now use prototypes always.
52166
52167         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
52168         C89 or better.  All uses removed.
52169
52170 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52171
52172         * config/srclist.txt: Add glibc bugs 1220-1227.
52173
52174 2005-08-20  Jim Meyering  <jim@meyering.net>
52175
52176         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
52177         of unused local, dfa.
52178
52179 2005-08-20  Bruno Haible  <bruno@clisp.org>
52180
52181         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
52182
52183 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52184
52185         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
52186         (re_node_set_insert_last, re_dfa_add_node):
52187         Rename local variables to avoid GCC shadowing warnings.
52188
52189 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52190
52191         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
52192         [defined lint]: Suppress bogus uninitialized-variable warnings.
52193
52194         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
52195         and let the caller return REG_ESPACE if out of space.  This
52196         removes an uninitialied-variable warning with GCC 4.0.1, and also
52197         avoids taking the address of a local variable.  All callers
52198         changed.
52199
52200 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52201
52202         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
52203         $LIBCSRC/posix/regexec.c.
52204         Add glibc bug 1217 for regcomp.c.
52205
52206 2005-08-19  Jim Meyering  <jim@meyering.net>
52207
52208         * lib/regexec.c (proceed_next_node): Redo local variables to
52209         avoid GCC shadowing warnings.
52210
52211 2005-08-18  Bruno Haible  <bruno@clisp.org>
52212
52213         * lib/strstr.c (strstr): Fix return value in multibyte case.
52214         * lib/strcasestr.c (strcasestr): Likewise.
52215
52216 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52217
52218         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
52219
52220 2005-08-17  Jim Meyering  <jim@meyering.net>
52221
52222         Make the %s format (seconds since the epoch) work for a negative
52223         number and when used with a zero-padded field width, e.g. %015s.
52224
52225         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
52226         label so that it precedes the code to set `digits'.  Otherwise,
52227         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
52228         print `00-22'.  Now, it prints `-0022', as it should.
52229
52230 2005-08-17  Bruno Haible  <bruno@clisp.org>
52231
52232         * modules/strstr (Files): Add m4/mbrtowc.m4.
52233         (Depends-on): Add mbuiter.
52234
52235 2005-08-17  Bruno Haible  <bruno@clisp.org>
52236
52237         * modules/strcasestr: New file.
52238         * MODULES.html.sh (String handling, based on ANSI C 89): Add
52239         strcasestr.
52240
52241 2005-08-17  Bruno Haible  <bruno@clisp.org>
52242
52243         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
52244
52245 2005-08-17  Bruno Haible  <bruno@clisp.org>
52246
52247         * modules/mbuiter: New file.
52248         * MODULES.html.sh (Extended multibyte and wide character utilities):
52249         Add mbuiter.
52250
52251 2005-08-17  Bruno Haible  <bruno@clisp.org>
52252
52253         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
52254         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
52255
52256 2005-08-17  Bruno Haible  <bruno@clisp.org>
52257
52258         * m4/strcasestr.m4: New file.
52259
52260 2005-08-17  Bruno Haible  <bruno@clisp.org>
52261
52262         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
52263         * lib/strstr.c: Completely rewritten, with multibyte locale support.
52264
52265 2005-08-17  Bruno Haible  <bruno@clisp.org>
52266
52267         * lib/strcasestr.h: New file.
52268         * lib/strcasestr.c: New file.
52269
52270 2005-08-17  Bruno Haible  <bruno@clisp.org>
52271
52272         * lib/strcasecmp.c: Use mbuiter.h.
52273
52274 2005-08-17  Bruno Haible  <bruno@clisp.org>
52275
52276         * lib/mbuiter.h: New file.
52277
52278 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52279
52280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
52281         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
52282         and gl_GETOPT are both invoked via different paths (as happens
52283         with GNU tar CVS because it uses both argp and getopt), the former
52284         wins.
52285
52286 2005-08-16  Bruno Haible  <bruno@clisp.org>
52287
52288         * modules/tls: New file.
52289         * MODULES.html.sh (Multithreading): Add tls.
52290
52291 2005-08-16  Bruno Haible  <bruno@clisp.org>
52292
52293         * modules/strnlen1: New file.
52294         * MODULES.html.sh (String handling): Add strnlen1.
52295
52296 2005-08-16  Bruno Haible  <bruno@clisp.org>
52297
52298         * modules/strcase (Files): Add m4/mbrtowc.m4.
52299         (Depends-on): Add strnlen1, mbchar.
52300
52301 2005-08-16  Bruno Haible  <bruno@clisp.org>
52302
52303         * modules/mbiter: New file.
52304         * MODULES.html.sh (Extended multibyte and wide character utilities):
52305         Add mbiter.
52306
52307 2005-08-16  Bruno Haible  <bruno@clisp.org>
52308
52309         * modules/mbfile: New file.
52310         * MODULES.html.sh (Extended multibyte and wide character utilities):
52311         Add mbfile.
52312
52313 2005-08-16  Bruno Haible  <bruno@clisp.org>
52314
52315         * modules/mbchar: New file.
52316         * MODULES.html.sh (Extended multibyte and wide character utilities):
52317         New section.
52318
52319 2005-08-16  Bruno Haible  <bruno@clisp.org>
52320
52321         * m4/tls.m4: New file, from GNU gettext.
52322
52323 2005-08-16  Bruno Haible  <bruno@clisp.org>
52324
52325         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
52326         always.
52327         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
52328
52329 2005-08-16  Bruno Haible  <bruno@clisp.org>
52330
52331         * m4/mbiter.m4: New file.
52332
52333 2005-08-16  Bruno Haible  <bruno@clisp.org>
52334
52335         * m4/mbfile.m4: New file.
52336
52337 2005-08-16  Bruno Haible  <bruno@clisp.org>
52338
52339         * m4/mbchar.m4: New file.
52340
52341 2005-08-16  Bruno Haible  <bruno@clisp.org>
52342
52343         * lib/tls.h: New file, from GNU gettext.
52344         * lib/tls.c: New file, from GNU gettext.
52345
52346 2005-08-16  Bruno Haible  <bruno@clisp.org>
52347
52348         * lib/strnlen1.h: New file.
52349         * lib/strnlen1.c: New file.
52350
52351 2005-08-16  Bruno Haible  <bruno@clisp.org>
52352
52353         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
52354         (mbi_init): Update.
52355         (mbi_avail, mbi_advance): Let the iteration end before the terminating
52356         NUL byte, not after it.
52357
52358 2005-08-16  Bruno Haible  <bruno@clisp.org>
52359
52360         * lib/strcase.h (strcasecmp): Add note in comments.
52361         * lib/strncasecmp.c: Use code from strcasecmp.c.
52362         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
52363         (strcasecmp): Work correctly in multibyte locales.
52364
52365 2005-08-16  Bruno Haible  <bruno@clisp.org>
52366
52367         * lib/mbiter.h: New file.
52368
52369 2005-08-16  Bruno Haible  <bruno@clisp.org>
52370
52371         * lib/mbfile.h: New file.
52372
52373 2005-08-16  Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/mbchar.h: New file.
52376         * lib/mbchar.c: New file.
52377
52378 2005-08-16  Bruno Haible  <bruno@clisp.org>
52379
52380         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
52381         the valid ones. Makes the comparison operations transitive:
52382         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
52383         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
52384
52385 2005-08-15  Simon Josefsson  <jas@extundo.com>
52386
52387         * modules/ssize_t (License): Change to 'unlimited'.
52388
52389         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
52390
52391 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52392
52393         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
52394         Add comments for each pending glibc patch.
52395
52396 2005-08-15  Bruno Haible  <bruno@clisp.org>
52397
52398         * lib/regex.h (__restrict_arr): Don't define to __restrict if
52399         __cplusplus is defined.
52400
52401 2005-08-14  Jim Meyering  <jim@meyering.net>
52402
52403         Sync from coreutils.
52404
52405         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
52406         Use the hash-table-based cycle-detection code not just when
52407         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
52408         Reported by James Youngman in
52409         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
52410         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
52411         FTS_TIGHT_CYCLE_CHECK.
52412         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
52413         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
52414         once again.
52415         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
52416         * lib/fts.c (fd_safer): Remove decl.
52417         Include fcntl--.h rather than unistd-safer.h
52418         (fts_safe_changedir): Don't call fd_safer; no longer needed
52419         now that we include fcntl--.h.
52420
52421 2005-08-12  Simon Josefsson  <jas@extundo.com>
52422
52423         * modules/getndelim2: Use ssize_t module.
52424         * modules/getnline: Likewise.
52425         * modules/safe-read: Likewise.
52426         * modules/xreadlink: Likewise.
52427
52428         * modules/ssize_t: New file.
52429
52430 2005-08-12  Simon Josefsson  <jas@extundo.com>
52431
52432         * m4/readline.m4: Look for termcap, curses or ncurses if required.
52433
52434 2005-08-12  Simon Josefsson  <jas@extundo.com>
52435
52436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52437         ssize_t.
52438
52439 2005-08-12  Simon Josefsson  <jas@extundo.com>
52440
52441         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
52442         readline, getdelim and check_version.
52443         (Support for systems lacking ISO C 99: Sizes of integer types):
52444         Add size_max.
52445
52446 2005-08-12  Bruno Haible  <bruno@clisp.org>
52447
52448         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
52449
52450 2005-08-11  Simon Josefsson  <jas@extundo.com>
52451
52452         * modules/readline: New file.
52453
52454         * modules/strnlen (Files): Add strnlen.h.
52455
52456 2005-08-11  Simon Josefsson  <jas@extundo.com>
52457
52458         * m4/readline.m4: New file.
52459
52460 2005-08-11  Simon Josefsson  <jas@extundo.com>
52461
52462         * lib/readline.h, readline.c: New file.
52463
52464 2005-08-11  Simon Josefsson  <jas@extundo.com>
52465
52466         * doc/gnulib.texi (Initial import, Finishing touches): Mention
52467         gl_AVOID.
52468
52469 2005-08-11  Bruno Haible  <bruno@clisp.org>
52470
52471         * lib/strnlen.h (strnlen): Change parameter name to match comment.
52472
52473 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
52474
52475         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
52476
52477 2005-08-10  Simon Josefsson  <jas@extundo.com>
52478
52479         * tests/test-iconvme.c: New file.
52480
52481 2005-08-10  Simon Josefsson  <jas@extundo.com>
52482
52483         * m4/strnlen.m4: New file.
52484
52485         * m4/strndup.m4: Don't check for strnlen declaration, done in
52486         strnlen.m4.
52487
52488 2005-08-10  Simon Josefsson  <jas@extundo.com>
52489
52490         * lib/strndup.c: Use strnlen.h.
52491
52492         * lib/strnlen.h: New file.
52493
52494 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52495
52496         * README: Typos.
52497
52498 2005-08-02  Simon Josefsson  <jas@extundo.com>
52499
52500         * modules/readline: New file.
52501
52502 2005-08-02  Simon Josefsson  <jas@extundo.com>
52503
52504         * modules/getdelim: New file.
52505
52506         * modules/getline: Rewrite, don't use getndelim2.
52507
52508 2005-08-02  Simon Josefsson  <jas@extundo.com>
52509
52510         * m4/getline.m4: Separate out getdelim stuff into separate module.
52511
52512         * m4/getdelim.m4: New file.
52513
52514 2005-08-02  Simon Josefsson  <jas@extundo.com>
52515
52516         * lib/getline.h, getline.c: Rewrite.
52517
52518         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
52519
52520 2005-07-31  Bruno Haible  <bruno@clisp.org>
52521
52522         * lib/lock.h (gl_lock_initializer): New macro.
52523         (gl_lock_define_initialized): Use it.
52524         (gl_rwlock_initializer): New macro.
52525         (gl_rwlock_define_initialized): Use it.
52526         (gl_recursive_lock_initializer): New macro.
52527         (gl_recursive_lock_define_initialized): Use it.
52528
52529 2005-07-30  Karl Berry  <karl@gnu.org>
52530
52531         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
52532         Report from Ben Pfaff, regarding getopt.
52533
52534 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
52535
52536         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
52537         normal way.
52538         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
52539         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
52540         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
52541         (gl_GETOPT): Use the new macros.  Most of the implementation
52542         is moved to the new macros.  This is for programs like Emacs
52543         that don't want all the functionality of gl_GETOPT.
52544
52545 2005-07-26  Bruno Haible  <bruno@clisp.org>
52546
52547         * m4/lock.m4: Update from GNU gettext.
52548
52549 2005-07-26  Bruno Haible  <bruno@clisp.org>
52550
52551         * lib/lock.h: Update from GNU gettext.
52552         * lib/lock.c: Update from GNU gettext.
52553
52554 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
52555
52556         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
52557         obsolescent AC_TRY_RUN.  Include the default includes files, for
52558         'exit'.
52559
52560 2005-07-24  Bruno Haible  <bruno@clisp.org>
52561
52562         * modules/visibility: New file.
52563         * MODULES.html.sh (Misc): Add visibility.
52564
52565 2005-07-24  Bruno Haible  <bruno@clisp.org>
52566
52567         * m4/visibility.m4: New file.
52568
52569 2005-07-24  Bruno Haible  <bruno@clisp.org>
52570
52571         * doc/visibility.texi: New file.
52572
52573 2005-07-22  Bruno Haible  <bruno@clisp.org>
52574
52575         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
52576         $(ALLOCA_H), redundant through BUILT_SOURCES.
52577         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
52578         redundant through BUILT_SOURCES.
52579         * modules/byteswap (Makefile.am): Remove explicit dependency on
52580         $(BYTESWAP_H), redundant through BUILT_SOURCES.
52581         * modules/fnmatch (Makefile.am): Remove explicit dependency on
52582         $(FNMATCH_H), redundant through BUILT_SOURCES.
52583         * modules/getopt (Makefile.am): Remove explicit dependency on
52584         $(GETOPT_H), redundant through BUILT_SOURCES.
52585         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
52586         redundant through BUILT_SOURCES.
52587         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
52588         redundant through BUILT_SOURCES.
52589         * modules/stdbool (Makefile.am): Remove explicit dependency on
52590         $(STDBOOL_H), redundant through BUILT_SOURCES.
52591         * modules/stdint (Makefile.am): Remove explicit dependency on
52592         $(STDINT_H), redundant through BUILT_SOURCES.
52593         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
52594         Remove explicit dependency on $(SYSEXITS_H).
52595         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
52596
52597 2005-07-18  Simon Josefsson  <jas@extundo.com>
52598
52599         * lib/check-version.c (check_version): Accept identical versions too.
52600
52601 2005-07-18  Bruno Haible  <bruno@clisp.org>
52602
52603         * modules/lock: New file.
52604         * MODULES.html.sh (Multithreading): New section.
52605
52606 2005-07-18  Bruno Haible  <bruno@clisp.org>
52607
52608         * m4/lock.m4: New file, from GNU gettext.
52609
52610 2005-07-18  Bruno Haible  <bruno@clisp.org>
52611
52612         * lib/lock.h: New file, from GNU gettext.
52613         * lib/lock.c: New file, from GNU gettext.
52614
52615 2005-07-18  Bruno Haible  <bruno@clisp.org>
52616
52617         * lib/lock.h (gl_once_t): New type.
52618         (gl_once_define, gl_once): New macros.
52619         * lib/lock.c (fresh_once): New variable.
52620         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52621         functions.
52622
52623 2005-07-16  Simon Josefsson  <jas@extundo.com>
52624
52625         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52626         workaround, suggested by Bruno.
52627
52628 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52629
52630         * modules/xalloc (Depends-on): Add xalloc-die.
52631         * modules/xvasprintf (Depends-on): Add xalloc-die.
52632
52633 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52634
52635         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52636         with a minor change.
52637
52638 2005-07-15  Bruno Haible  <bruno@clisp.org>
52639
52640         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52641         When using lib/poll.c, define poll as rpl_poll.
52642
52643 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52644
52645         * modules/argp (Depends-on): Remove unlocked-io.
52646
52647 2005-07-14  Derek Price  <derek@ximbiot.com>
52648
52649         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52650         for glob symlink bug.
52651
52652 2005-07-14  Bruno Haible  <bruno@clisp.org>
52653
52654         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52655         Instead, test for *_unlocked function declarations directly.
52656
52657 2005-07-11  Simon Josefsson  <jas@extundo.com>
52658
52659         * modules/size_max: New file.
52660
52661         * modules/xsize: Depend on size_max module for size_max.m4.
52662
52663 2005-07-11  Simon Josefsson  <jas@extundo.com>
52664
52665         * lib/size_max.h: New file.
52666
52667 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52668
52669         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52670         copyright symbol and the year.
52671         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52672         (version_etc_va): Use parameterized copyright notice.
52673         Reword to conform to the current GNU coding standards.
52674
52675 2005-07-11  Karl Berry  <karl@gnu.org>
52676
52677         * doc/gnulib.texi (Quoting): new node.
52678         (Initial import): more info, from Patrice.
52679
52680 2005-07-11  Bruno Haible  <bruno@clisp.org>
52681
52682         * gnulib-tool (func_usage): Document option --avoid.
52683         (Command line options): Handle --avoid.
52684         (func_acceptable): New function.
52685         (func_modules_transitive_closure): Use it.
52686
52687 2005-07-11  Bruno Haible  <bruno@clisp.org>
52688
52689         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52690         Reported by Jim Meyering.
52691
52692 2005-07-10  Bruno Haible  <bruno@clisp.org>
52693
52694         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52695         Needed when size_t is smaller than 'unsigned int'.
52696         Reported by Paul Eggert.
52697
52698 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52699
52700         * modules/argp (Depends-on): Add unlocked-io
52701
52702 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52703
52704         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52705         block of defines.
52706
52707 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52708
52709         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52710         fix now.
52711
52712 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52713         and Paul Eggert  <eggert@cs.ucla.edu>
52714
52715         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52716         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52717
52718 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52719
52720         * modules/regex (Files): Add lib/regex_internal.c,
52721         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52722         (Depends-on): Add extensions.
52723         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52724
52725 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52726
52727         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52728         pathconf.
52729         * m4/same.m4 (gl_SAME): Likewise.
52730         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52731
52732         * m4/regex.m4: Adjust to new libc regex implementation.
52733         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52734         all the .c and .h parts of (the new) regex.
52735         Quote the m4 stuff better.
52736         Check for RE_ICASE bug of old gnulib.
52737         Check for REG_STARTEND of recent libc.
52738         Rename local variables from jm_* to gl_*.
52739         Quote operand of "test -f".
52740         Say "recent enough" version of libc, not "version 2".
52741         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52742         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52743         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52744         Remove check for btowc, isascii.
52745         Require AM_LANGINFO_CODESET.
52746
52747 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52748
52749         * lib/regex.c, regex.h: Sync from libc.
52750         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52751         * lib/regexec.c:
52752         New files, synced from libc, except that regex_internal.h
52753         currently has a small porting fix.
52754
52755 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52756
52757         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52758         regex_internal.c, regexec.c.
52759         Add regex_internal.h too, but as a comment, since the libc version
52760         is currently broken in gnulib mode.
52761
52762 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52763
52764         Support programs like Emacs that use gnulib but not gettext.
52765         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52766         * modules/gettext-h: New file.
52767         * modules/gettext (Files): Remove lib/gettext.h.
52768         (Depends-on): Add gettext-h.
52769         (Makefile.am): Remove lib_SOURCES.
52770         * modules/argmatch, modules/c-stack, modules/closeout:
52771         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52772         * modules/execute, modules/file-type, modules/getaddrinfo:
52773         * modules/getopt, modules/human, modules/javacomp:
52774         * modules/javaexec, modules/mkdir-p, modules/obstack:
52775         * modules/openat, modules/pagealign_alloc, modules/pipe:
52776         * modules/quotearg, modules/regex, modules/rpmatch:
52777         * modules/unicodeio, modules/userspec, modules/version-etc:
52778         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52779         * modules/xsetenv:
52780         Depend on gettext-h, not gettext.
52781
52782 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52783
52784         * gnulib-tool (func_import): Add support for 'public domain' license.
52785         * modules/alloca, modules/atexit, modules/memmove:
52786         Now public domain, not GPL.
52787         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52788         * modules/realloc, modules/strerror, modules/strtod:
52789         Now LGPL, not GPL.
52790
52791 2005-07-05  Bruno Haible  <bruno@clisp.org>
52792
52793         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52794         autoconf CVS. Needed for mingw.
52795
52796 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52797
52798         Remove the dependency of the strftime module on the tzset module.
52799         * modules/strftime (Depends-on): Remove dependency on tzset.
52800
52801 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52802
52803         Remove the dependency of the strftime module on the tzset module.
52804         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52805         gl_FUNC_TZSET_CLOBBER.
52806
52807 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52808
52809         Remove the dependency of the strftime module on the tzset module.
52810         * lib/strftime.c (my_strftime)
52811         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52812         Copy the input structure, to work around some of the bug with
52813         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52814         Solaris releases, you should also use the tzset module, but we won't
52815         require it as a dependency any more since we don't want LGPLed code
52816         to depend on GPLed code.
52817
52818 2005-07-02  Jim Meyering  <jim@meyering.net>
52819
52820         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52821         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52822         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52823         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52824
52825 2005-07-02  Jim Meyering  <jim@meyering.net>
52826
52827         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52828
52829 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52830
52831         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52832         declares only 'struct timespec;' (!).
52833
52834 2005-07-01  Jim Meyering  <jim@meyering.net>
52835
52836         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52837         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52838         * lib/save-cwd.c, tempname.c:
52839         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52840         and don't include <sys/file.h>).
52841
52842 2005-06-29  Jim Meyering  <jim@meyering.net>
52843
52844         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52845         type name.  Use the variable name instead.
52846         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52847         Likewise.
52848
52849 2005-06-28  Simon Josefsson  <jas@extundo.com>
52850
52851         * modules/check-version (Files): Add check-version.m4.
52852
52853 2005-06-28  Simon Josefsson  <jas@extundo.com>
52854
52855         * m4/check-version.m4: New file, suggested by Jim Meyering
52856         <jim@meyering.net>.
52857
52858 2005-06-28  Simon Josefsson  <jas@extundo.com>
52859
52860         * lib/check-version.h, lib/check-version.c: New files.
52861
52862 2005-06-28  Simon Josefsson  <jas@extundo.com>
52863
52864         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52865         collision with global variable.  Better indentation.  Don't
52866         increment buffer pointer beyond buffer end.  Based on comments
52867         from Paul Eggert <eggert@cs.ucla.edu>.
52868
52869         * lib/base64.h: Indent.
52870
52871 2005-06-28  Simon Josefsson  <jas@extundo.com>
52872
52873         * doc/gnulib.texi (Library version handling): New section.
52874
52875 2005-06-28  Jim Meyering  <jim@meyering.net>
52876
52877         * check-module (find_included_lib_files): Hard-code another
52878         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52879         but modules/fts-lgpl (correctly) does not list those files.
52880
52881         * modules/canonicalize (Files): Add lib/pathmax.h.
52882
52883 2005-06-25  Simon Josefsson  <jas@extundo.com>
52884
52885         * modules/check-version: New file.
52886
52887 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52888
52889         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52890         initializer of struct addrinfo, as an indication that we don't
52891         care how many members the structure has.
52892
52893 2005-06-24  Derek Price  <derek@ximbiot.com>
52894         and Bruno Haible  <bruno@clisp.org>
52895
52896         Remove stat module & update lstat.
52897         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52898         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52899         * m4/stat.m4: Remove this file.
52900
52901 2005-06-24  Derek Price  <derek@ximbiot.com>
52902         and Bruno Haible  <bruno@clisp.org>
52903
52904         Remove stat module & update lstat.
52905         * lib/stat.c: Remove this file...
52906         (slash_aware_lstat): ...moving this content and its support...
52907         * lib/lstat.c (rpl_lstat): ...into here.
52908         * lib/lstat.h: New file.
52909
52910 2005-06-24  Derek Price  <derek@ximbiot.com>
52911         and Bruno Haible  <bruno@clisp.org>
52912
52913         Remove stat module & update lstat.
52914         * config/srclist.txt (libc sources): Remove stat.
52915
52916 2005-06-24  Derek Price  <derek@ximbiot.com>
52917         and Bruno Haible  <bruno@clisp.org>
52918
52919         Remove stat module & update lstat.
52920         * MODULES.html.sh (stat): Remove.
52921         * MODULES.html: Regenerated.
52922         * modules/lstat (Description): Correct function name.
52923         (Files): Add "lstat.h".
52924         (Depends-on): Remove stat, add xalloc, stat-macros.
52925         * modules/stat: Remove this file.
52926         (Include): Add "lstat.h", remove <sys/stat.h>.
52927
52928 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52929
52930         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52931         (ranged_convert): Don't save conversion in a temporary struct.
52932         This causes a warning with GCC 4.0.0, and anyway in the typical
52933         case it's not worth the extra 100 bytes or so of code.
52934         (ranged_convert, __mktime_internal): When calling a function via a
52935         pointer P, use P () rather than (*P) (), as we now assume C89 or
52936         better.
52937
52938 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52939
52940         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52941         "who -r" failed to give output.  Problem reported by Tim Waugh.
52942
52943         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52944         (xcalloc): Use it to avoid needless tests.
52945         Problem reported by Jim Meyering.
52946
52947 2005-06-20  Derek Price  <derek@ximbiot.com>
52948
52949         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52950         unnecessary for Autoconfs > 2.59c.
52951
52952 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52953
52954         * lib/argp.h (__option_is_short): Check upper limit of
52955         __key. Isprint() requires its argument to have the value
52956         of an unsigned char or EOF.
52957
52958 2005-06-16  Jim Meyering  <jim@meyering.net>
52959
52960         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52961         when either N or S is zero.
52962
52963 2005-06-16  Derek Price  <derek@ximbiot.com>
52964
52965         * m4/bison.m4: Declare YACC & YFLAGS precious.
52966
52967 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52968
52969         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52970         multibyte string or pattern, fall back on unibyte matching.
52971         Problem reported by James Youngman.
52972
52973 2005-06-08  Bruno Haible  <bruno@clisp.org>
52974
52975         * modules/csharpcomp: New file.
52976         * MODULES.html.sh (C#): Add csharpcomp.
52977
52978 2005-06-08  Bruno Haible  <bruno@clisp.org>
52979
52980         * m4/csharpcomp.m4: New file, from GNU gettext.
52981
52982 2005-06-08  Bruno Haible  <bruno@clisp.org>
52983
52984         * lib/csharpcomp.h: New file, from GNU gettext.
52985         * lib/csharpcomp.c: New file, from GNU gettext.
52986         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52987
52988 2005-06-08  Bruno Haible  <bruno@clisp.org>
52989
52990         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52991         warning on mingw.
52992
52993 2005-06-07  Derek Price  <derek@ximbiot.com>
52994
52995         Sync from CVS.
52996         * lib/glob_.h: Indent nested #ifdef.
52997
52998 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52999
53000         Sync from coreutils.
53001         Use "file name" when talking about file names, instead of "filename"
53002         or "path", as per the GNU coding standards.
53003         * lib/mkdir-p.c: Renamed from makepath.c.
53004         (make_dir_parents): Renamed from make_path.  All callers changed.
53005         * lib/mkdir-p.h: Likewise.  All includers changed.
53006         * lib/filenamecat.c: Renamed from path-concat.c.
53007         (file_name_concat): Renamed from path_concat.  All callers changed.
53008         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
53009         * lib/filenamecat.h: Likewise.  All includers changed.
53010         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
53011         in comments or local variable names.
53012         * lib/basename.c: Likewise.
53013         * lib/canonicalize.c, canonicalize.h: Likewise.
53014         * lib/dirname.c, dirname.h: Likewise.
53015         * lib/euidaccess.c: Likewise.
53016         * lib/exclude.c: Likewise
53017         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
53018         * lib/fsusage.c, fsuage.h: Likewise.
53019         * lib/fts.c, fts_.h: Likewise.
53020         * lib/getcwd.c: Likewise.
53021         * lib/getloadavg.c: Likewise.
53022         * lib/mkstemp.c: Likewise.
53023         * lib/mountlist.c, mountlist.h: Likewise.
53024         * lib/openat.c, openat.h: Likewise.
53025         * lib/readlink-stub.c: Likewise.
53026         * lib/readutmp.c, readutmp.h: Likewise.
53027         * lib/rename.c: Likewise.
53028         * lib/rmdir.c: Likewise.
53029         * lib/same.c: Likewise.
53030         * lib/savedir.c: Likewise.
53031         * lib/stripslash.c: Likewise.
53032         * lib/tempname.c: Likewise.
53033         * lib/xreadlink.c: Likewise.
53034         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
53035         All uses changed.
53036         * lib/exclude.h: Likewise.
53037
53038         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
53039         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
53040         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
53041         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
53042         * lib/pathmax.h: Include <limits.h> unconditionally, since other
53043         files have been getting away with it for years (MORE/BSD 4.3
53044         is extinct now).
53045         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
53046         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
53047
53048         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
53049         Define to 256, not 255, as per modern POSIX.
53050
53051 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
53052
53053         Sync from coreutils.
53054         Use "file name" when talking about file names, instead of "filename"
53055         or "path", as per the GNU coding standards.
53056         * MODULES.html.sh: mkdir-p renamed from makepath.
53057         filenamecat renamed from path-concat.
53058         * modules/filenamecat: Renamed from modules/path-concat.
53059         (Files): filenamecat.h and filenamecat.c renamed from
53060         path-concat.h and path-concat.c.
53061         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
53062         (Include): filenamecat.h, not path-concat.h.
53063         * modules/mkdir-p: Renamed from modules/makepath.
53064         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
53065         makepath.c.
53066         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
53067         (Include): mkdir-p.h, not makepath.h.
53068
53069 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
53070
53071         Sync from coreutils.
53072         * m4/mkdir-p.m4: Renamed from makepath.m4.
53073         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
53074         Rename files from makepath.c to mkdir-p.c, and from
53075         makepath.h to mkdir-p.h.
53076         * m4/filenamecat.m4: Renamed from path-concat.m4.
53077         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
53078         Rename files from path-concat.c to filenamecat.c,
53079         and from path-concat.h to filenamecat.h.
53080         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
53081         "file name" in local variables or comments.
53082         * m4/rename.m4: Likewise.
53083
53084 2005-06-01  Bruno Haible  <bruno@clisp.org>
53085
53086         * modules/csharpexec: New file.
53087         * MODULES.html.sh (C#): New section.
53088
53089 2005-06-01  Bruno Haible  <bruno@clisp.org>
53090
53091         * m4/csharp.m4: New file, from GNU gettext.
53092         * m4/csharpexec.m4: New file, from GNU gettext.
53093
53094 2005-06-01  Bruno Haible  <bruno@clisp.org>
53095
53096         * lib/csharpexec.h: New file, from GNU gettext.
53097         * lib/csharpexec.c: New file, from GNU gettext.
53098         * lib/csharpexec.sh.in: New file, from GNU gettext.
53099
53100 2005-05-31  Derek Price  <derek@ximbiot.com>
53101             Paul Eggert  <eggert@cs.ucla.edu>
53102
53103         Sync from cvs.
53104         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
53105
53106 2005-05-31  Derek Price  <derek@ximbiot.com>
53107             Paul Eggert  <eggert@cs.ucla.edu>
53108
53109         Sync from cvs.
53110         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
53111
53112 2005-05-29  Derek Price  <derek@ximbiot.com>
53113
53114         * config/srclist.txt (glob_.h, glob.c): Add these files.
53115
53116 2005-05-29  Derek Price  <derek@ximbiot.com>
53117
53118         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
53119         * modules/glob: New file.
53120         * modules/getlogin_r: Add link to POSIX spec in description.
53121
53122 2005-05-29  Derek Price  <derek@ximbiot.com>
53123             Paul Eggert  <eggert@cs.ucla.edu>
53124
53125         * m4/glob.m4: New file.
53126
53127 2005-05-29  Derek Price  <derek@ximbiot.com>
53128             Paul Eggert  <eggert@cs.ucla.edu>
53129
53130         * lib/glob_.h, lib/glob.c: New files.
53131
53132 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
53133
53134         * modules/fts (Files): Remove m4/inttypes-pri.m4.
53135         * modules/fts-lgpl (Depends-on): Remove gettext.
53136
53137 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
53138
53139         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
53140         and don't require gt_INTTYPES_PRI.
53141
53142 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
53143
53144         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
53145
53146         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
53147         the configuration hassle isn't worth it.
53148         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
53149         (LONGEST_MODIFIER, PRIuMAX): Remove.
53150
53151 2005-05-27  Bruno Haible  <bruno@clisp.org>
53152
53153         * lib/getlogin_r.h: Remove second include of <stddef.h>.
53154
53155 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
53156
53157         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
53158         _POSIX_PTHREAD_SEMANTICS for Solaris.
53159
53160 2005-05-25  Derek Price  <derek@ximbiot.com>
53161
53162         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
53163
53164 2005-05-25  Derek Price  <derek@ximbiot.com>
53165             Paul Eggert  <eggert@cs.ucla.edu>
53166
53167         * modules/getlogin_r, m4/getlogin_r.m4: New files.
53168         * lib/getlogin_r.c, getlogin_r.h: New files.
53169
53170 2005-05-25  Bruno Haible  <bruno@clisp.org>
53171             Derek Price  <derek@ximbiot.com>
53172
53173         * lib/getlogin_r.h: Simplify API documentation.
53174
53175 2005-05-23  Derek Price  <derek@ximbiot.com>
53176
53177         * modules/minmax (Files): Add m4/minmax.m4.
53178         (configure.ac): Add gl_MINMAX.
53179
53180 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53181
53182         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
53183         so that unistd-safer.h (GPL'ed code) need not be included.
53184
53185 2005-05-22  Bruno Haible  <bruno@clisp.org>
53186
53187         * m4/minmax.m4: New file.
53188         Based on a patch by Derek Price <derek@ximbiot.com>.
53189
53190 2005-05-22  Bruno Haible  <bruno@clisp.org>
53191
53192         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
53193         (INT64_MIN): Fix definition.
53194         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
53195
53196         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
53197         NEED_SIGNED_INT_TYPES.
53198
53199         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
53200         HAVE_SYSTEM_INTTYPES.
53201
53202 2005-05-22  Bruno Haible  <bruno@clisp.org>
53203
53204         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
53205         Also include <sys/param.h> if it defines MIN, MAX.
53206         Based on a patch by Derek Price <derek@ximbiot.com>.
53207
53208 2005-05-21  Jim Meyering  <jim@meyering.net>
53209
53210         * modules/fts (Files): Add m4/inttypes-pri.m4.
53211         (Depends-on): Add lstat and remove gettext.  Alphabetize.
53212
53213 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53214
53215         New fts module.
53216         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
53217         (setup_dir, free_dir): New functions.
53218         (enter_dir, leave_dir): Define trivial
53219         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
53220         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
53221         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
53222         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
53223         Move to fts-cycle.c.
53224         (fts_open): Use setup_dir.
53225         (fts_close): Use free_dir.
53226         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
53227         This adds a label and some gotos, but the alternatives were messier.
53228         Check for memory allocation failure when entering a dir.
53229         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
53230         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
53231         (FTS): New member fts_cycle, that is a union that contains the
53232         old active_dir_ht and cycle_state.  All uses changed to mention
53233         fts_cycle.ht and fts_cycle.state.
53234         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
53235         fts.c, with the following changes:
53236         (setup_dir, free_dir): New functions.
53237         (enter_dir): Now returns bool.  Return true if successful, false
53238         if memory exhausted.  All callers changed.
53239         Do not bother partly cleaning up on
53240         memory allocation failure; that is free_dir's job.
53241         However, free ad if hash_insert fails, to avoid memory leak.
53242         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
53243         fts->fts_options to see which union member to use.
53244
53245 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53246
53247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
53248         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
53249
53250 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53251
53252         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
53253
53254 2005-05-20  Jim Meyering  <jim@meyering.net>
53255
53256         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
53257         Now a macro, to pacify GCC.
53258
53259 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
53260
53261         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
53262         of -1.
53263
53264 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
53265
53266         * lib/chown.c (rpl_chown): Return -1 on failure.
53267
53268 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
53269
53270         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
53271         Don't check for stddef.h.
53272         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
53273         don't use its results.
53274         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
53275         since we include them unconditionally.  Don't require
53276         AM_STDBOOL_H, since stdbool is a prerequisite.
53277         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
53278         since we assume C89 or better.
53279         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
53280         as we don't use their results.
53281         Don't check for fchdir, memmove, memset, strrchr, as we use
53282         them unconditionally.
53283         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
53284         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
53285
53286 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
53287
53288         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
53289         Include <stddef.h> unconditionally, since we assume C89 now.
53290         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
53291         * lib/fts.c: Include fts_.h first, to check interface.
53292         Do not include intprops.h; no longer needed.
53293         Include cycle-check.h and hash.h, since fts_.h no longer does.
53294         Remove unnecessary casts of closedir to void.
53295         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
53296         decide whether to decrement nlinks.
53297         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
53298         (FTS): Use struct hash_table * instead of Hash_table, so that
53299         we no longer need to include hash.h here.
53300
53301 2005-05-18  Jim Meyering  <jim@meyering.net>
53302
53303         * modules/dirfd (License): Change to LGPL.  Most of the code
53304         is already in the public domain.
53305
53306 2005-05-18  Jim Meyering  <jim@meyering.net>
53307
53308         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
53309         Reported by Yoann Vandoorselaere.
53310
53311 2005-05-17  Jim Meyering  <jim@meyering.net>
53312
53313         * m4/fts.m4: New file, from coreutils.
53314
53315 2005-05-17  Jim Meyering  <jim@meyering.net>
53316
53317         * lib/fts.c, lib/fts_.h: New files, from coreutils.
53318
53319 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53320
53321         Sync from coreutils.
53322         * m4/unlinkdir.m4: New file.
53323
53324 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53325
53326         Sync from coreutils.
53327         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
53328         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
53329         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
53330         White space changes only.
53331         * lib/makepath.c (make_path): Port to hosts where leading "//" is
53332         special.
53333         * lib/yesno.c: Include getline.h, not ctype.h.
53334         (yesno): Don't remove leading white space; POSIX doesn't allow it.
53335         Use getline to remove arbitrary restriction on response length.
53336
53337 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53338
53339         * config/srclist-update: Spell out "Street" in FSF postal
53340         mail address; this is the style the FSF seems to prefer.
53341
53342         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
53343         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
53344         this updates FSF postal mail address.
53345
53346         Sync from coreutils.
53347         * modules/unlinkdir: New file.
53348         * modules/yesno (Depends-on): Add getline.
53349         * MODULES.html.sh (File system functions): Add unlinkdir.
53350
53351 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53352
53353         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
53354         lib/strsep.h:
53355         Change the initial comment to refer to GPL, not LGPL.
53356         gnulib-tool will change it to LGPL as needed.
53357
53358         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
53359         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
53360         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
53361         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
53362         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
53363         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
53364         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
53365         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
53366         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
53367         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
53368         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
53369         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
53370         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
53371         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
53372         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
53373         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
53374         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
53375         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
53376         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
53377         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
53378         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
53379         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
53380         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
53381         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
53382         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
53383         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
53384         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
53385         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
53386         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
53387         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
53388         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
53389         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
53390         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
53391         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
53392         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
53393         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
53394         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
53395         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
53396         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
53397         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
53398         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
53399         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
53400         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
53401         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
53402         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
53403         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
53404         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
53405         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
53406         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
53407         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
53408         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53409         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
53410         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
53411         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
53412         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
53413         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
53414         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
53415         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
53416         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
53417         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
53418         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
53419         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
53420         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
53421         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
53422         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
53423         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
53424         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
53425         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
53426         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
53427         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
53428         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
53429         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
53430         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
53431         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
53432         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
53433         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
53434         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
53435         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
53436         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
53437         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
53438         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
53439         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
53440         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
53441         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
53442         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
53443         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
53444         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
53445         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
53446         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
53447         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
53448         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
53449         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
53450         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
53451         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
53452         lib/yesno.c, lib/yesno.h:
53453         Update FSF postal mail address.
53454
53455 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53456
53457         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
53458         tests/test-memmem.c, tests/test-stpncpy.c:
53459         Update FSF postal mail address.
53460
53461 2005-05-13  Bruno Haible  <bruno@clisp.org>
53462
53463         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
53464         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
53465         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
53466         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
53467         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
53468         Add support for 64-bit integers in the MSVC compiler.
53469
53470 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53471
53472         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
53473
53474 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
53475
53476         * gnulib-tool (func_import): Sort and uniquify recommended includes.
53477
53478 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
53479
53480         * doc/getdate.texi (General date syntax): Don't say that date
53481         date --iso-8601=ns generates acceptable dates; it doesn't yet.
53482         Problem reported by Nic Ferrier.
53483
53484 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53485
53486         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
53487         specified in ai_socktype. Fix invalid ai_protocol
53488         check. ai_protocol is usually set to 0 or depending on
53489         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
53490         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
53491         ai_socktype / ai_protocol in the returned addrinfo structure.
53492
53493 2005-05-10  Simon Josefsson  <jas@extundo.com>
53494
53495         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
53496         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53497
53498 2005-05-10  Karl Berry  <karl@gnu.org>
53499
53500         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
53501         (from http://www.gnu.org/licenses).
53502         * doc/COPYING.LIB: also rename to COPYING.LESSER.
53503         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
53504         fdl.texi suffices.
53505
53506 2005-05-10  Karl Berry  <karl@gnu.org>
53507
53508         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
53509         (COPYING.DOC): remove.
53510
53511         * config/srclist-update: new FSF address.
53512
53513 2005-05-10  Derek Price  <derek@ximbiot.com>
53514
53515         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
53516         possible.
53517
53518 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53519             Bruno Haible  <bruno@clisp.org>
53520
53521         * modules/inet_ntop: New file.
53522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53523         inet_ntop.
53524
53525 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53526             Bruno Haible  <bruno@clisp.org>
53527
53528         * m4/inet_ntop.m4: New file.
53529
53530 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53531             Bruno Haible  <bruno@clisp.org>
53532
53533         * lib/inet_ntop.h: New file.
53534         * lib/inet_ntop.c: New file, from glibc with modifications.
53535
53536 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
53537
53538         * modules/time_r (License): Change to LGPL.
53539         * modules/extensions (License): Change to LGPL.  Actually,
53540         the license is more permissive than that, but currently gnulib-tool
53541         doesn't know how to handle more-permissive licenses.
53542
53543         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
53544         Problem reported by Dave Love.
53545
53546 2005-05-08  Jim Meyering  <jim@meyering.net>
53547
53548         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
53549         blank.
53550
53551 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53552
53553         * modules/argmatch (Depends-on): Add stdbool.
53554         * modules/backupfile (Depends-on): Likewise.
53555         * modules/chdir-long (Depends-on): Likewise.
53556         * modules/closeout (Depends-on): Likewise.
53557         * modules/cycle-check (Depends-on): Likewise.
53558         * modules/dirname (Depends-on): Likewise.
53559         * modules/fnmatch (Depends-on): Likewise.
53560         * modules/fsusage (Depends-on): Likewise.
53561         * modules/fwriteerror (Depends-on): Likewise.
53562         * modules/getcwd (Depends-on): Likewise.
53563         * modules/getloadavg (Depends-on): Likewise.
53564         * modules/hard-locale (Depends-on): Likewise.
53565         * modules/makepath (Depends-on): Likewise.
53566         * modules/mountlist (Depends-on): Likewise.
53567         * modules/nanosleep (Depends-on): Likewise.
53568         * modules/posixtm (Depends-on): Likewise.
53569         * modules/quotearg (Depends-on): Likewise.
53570         * modules/readtokens (Depends-on): Likewise.
53571         * modules/readtokens0 (Depends-on): Likewise.
53572         * modules/readutmp (Depends-on): Likewise.
53573         * modules/save-cwd (Depends-on): Likewise.
53574         * modules/strftime (Depends-on): Likewise.
53575         * modules/userspec (Depends-on): Likewise.
53576         * modules/utimecmp (Depends-on): Likewise.
53577         * modules/xgetcwd (Depends-on): Likewise.
53578         * modules/xnanosleep (Depends-on): Likewise.
53579         * modules/xstrtod (Depends-on): Likewise.
53580         * modules/yesno (Depends-on): Likewise.
53581
53582 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53583
53584         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
53585         needless checks.
53586
53587 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53588
53589         Merge from coreutils.  Among other things,
53590         add bulletproofing for cases where stdin, stdout, or stderr are closed.
53591         * lib/fd-safer.c: New file.
53592         * lib/fcntl-safer.h, open-safer.c: Remove.
53593         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
53594         * lib/dup-safer.c: Include unistd-safer.h first.
53595         Don't include errno.h.
53596         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
53597         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
53598         * lib/file-type.c: Rely on file-type.h change.
53599         * lib/getloadavg.c: Include unistd-safer.h.
53600         (getloadavg): Use safer open.
53601         * lib/getusershell.c: Include "stdio-safer.h".
53602         (getusershell): Use safer fopen.
53603         * lib/long-options.c (long_options): Use NULL rather than 0.
53604         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
53605         'free'.
53606         * lib/modechange.c: Likewise.
53607         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
53608         (MODE_DONE): New constant.
53609         (struct mode_change): Remove 'next' member.
53610         (make_node_op_equals): New function; like the old one of the
53611         same name, except it allocates an array.
53612         (mode_compile, mode_create_from_ref): Use it.
53613         (mode_compile): Allocate result as an array, not a linked list.
53614         Parse octal string ourself, so that we catch mistakes like "+0".
53615         (mode_adjust): Arg is an array, not a linked list.
53616         * lib/modechange.c: Include stat-macros.h, xalloc.h.
53617         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53618         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53619         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53620         Remove.  This is now stat-macros.h's job.
53621         (talloc): Remove.  All callers replaced by xalloc, so that
53622         our invokers don't have to worry about reporting memory failures.
53623         (make_node_op_equals): Remove.
53624         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53625         New constants.
53626         (struct mode_change): Moved here from modechange.h.
53627         (mode_append_entry): Remove.
53628         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53629         apps to have incorrect behavior.  Use simpler algorithm for head
53630         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53631         Detect more invalid usages rather than having somewhat-random behavior.
53632         Don't insert an "a=" action, as that leads to incorrect behavior.
53633         (mode_compile, mode_create_from_ref): Return NULL on error instead
53634         of an enum, since now there's only one way to have an error.  All
53635         callers changed.
53636         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53637         at the correct time.  Simplify calculation of "+u" and its ilk.
53638         Don't mishandle "+X".
53639         (mode_free): Remove "register" and localize decls.
53640         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53641         (struct mode_change): Move to modechange.c; callers don't
53642         need to see this stuff.
53643         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53644         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53645         (mode_change, mode_adjust): Reflect the new signatures noted above.
53646         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53647         that might redefine system include files.
53648         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53649         (my_usleep): Use NULL rather than (void *) 0.
53650         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53651         Use siginterrupt to specify that system calls should be interrupted.
53652         (rpl_nanosleep): Move initialization of suspended closer to call of
53653         my_usleep.
53654         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53655         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53656         (desirable_utmp_entry): New function.
53657         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53658         using x2nrealloc, to simplify logic.
53659         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53660         size calculation.  Do not assume utmp file is a regular file.
53661         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53662         (READ_UTMP_CHECK_PIDS): New constant.
53663         * lib/save-cwd.c: Include unistd-safer.h.
53664         (save_cwd): Use fd_safer.
53665         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53666         [!_LIBC] Include "stat-macros.h" instead.
53667         * lib/unistd-safer.h (fd_safer): New decl.
53668
53669 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53670
53671         * modules/getloadavg (Depends-on): Add unistd-safer.
53672         * modules/getusershell (Depends-on): Add stdio-safer.
53673         * modules/lstat (Depends-on): Remove xalloc.
53674         * modules/mkstemp (Depends-on): Add stat-macros.
53675         * modules/modechange (Depends-on): Remove xstrtol.
53676         Add stat-macros, xalloc.
53677         * modules/save-cwd (Depends-on): Add unistd-safer.
53678         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53679         * modules/unistd-safer (Files): Add lib/fd-safer.c
53680         (Makefile.am): Remove lib_SOURCES.
53681
53682         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53683         Remove fcntl-safer; unistd-safer supersedes it.
53684
53685 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53686
53687         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53688         AC_HEADER_STAT.
53689         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53690         (gl_PREREQ_CHOWN): Remove.
53691         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53692         it.  Don't require AC_HEADER_STAT.
53693         (gl_PREREQ_LSTAT): Remove.
53694         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53695         Don't require AC_HEADER_STAT.
53696         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53697         (gl_PREREQ_RMDIR): Remove.
53698         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53699         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53700         the stat-macros module a prerequisite.
53701         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53702         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53703         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53704         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53705         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53706         variable names.
53707         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53708         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53709         variable prefixes.
53710         * m4/fcntl-safer.m4: Remove.
53711         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53712         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53713         Invoke gl_PREREQ_FD_SAFER.
53714         (gl_PREREQ_FD_SAFER): New macro.
53715         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53716         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53717         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53718         Remove duplicate call to AC_LIBOBJ(readutmp).
53719         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53720
53721         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53722         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53723
53724 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53725
53726         * MODULES.html.sh (Misc): Add byteswap.
53727
53728 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53729
53730         * modules/getcwd (Depends-on): Add extensions.
53731         * modules/openat (Depends-on): Likewise.
53732
53733 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53734
53735         * modules/byteswap: New file.
53736
53737 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53738
53739         * m4/byteswap.m4: New file.
53740
53741 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53742
53743         * lib/byteswap_.h: New file.
53744
53745 2005-04-25  Karl Berry  <karl@gnu.org>
53746
53747         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53748
53749 2005-04-25  Albert Chin  <china@thewrittenword.com>
53750
53751         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53752         Toolkit C bug.
53753
53754 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53755
53756         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53757         (func_ln_if_changed) Remove forcibly for no error message
53758         in case file does not exist.
53759
53760 2005-04-19  Simon Josefsson  <jas@extundo.com>
53761
53762         * gnulib-tool (Options): Make --symlink mean --symbolic.
53763
53764 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53765
53766         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53767
53768 2005-04-16  Simon Josefsson  <jas@extundo.com>
53769
53770         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53771
53772 2005-04-15  Simon Josefsson  <jas@extundo.com>
53773
53774         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53775
53776 2005-04-15  Simon Josefsson  <jas@extundo.com>
53777
53778         * gnulib-tool: Rename --symlink to --symbolic.
53779
53780 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53781
53782         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53783         symbolic links to files instead of copying/moving.  Add --aux-dir,
53784         specifying directory relative --dir where auxiliary build tools
53785         are placed.
53786
53787 2005-04-14  Bruno Haible  <bruno@clisp.org>
53788
53789         * modules/allocsa (License): Change to LGPL.
53790         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53791
53792 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53793
53794         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53795         that "UTC +1 second" continues to work.  Problem reported
53796         by Dmitry V. Levin.
53797         (relunit_snumber): New rule.
53798         (relunit): Use it.
53799
53800 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53801
53802         * lib/getdate.y (universal_time_zone_table): New constant.
53803         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53804         universal_time_zone_table.
53805         (lookup_zone): Prefer universal_time_zone_table to
53806         local_time_zone_table, so that "GMT" time stamps are allowed in
53807         London during the summer.  Problem reported by Ian Abbott.
53808
53809 2005-04-12  Jim Meyering  <jim@meyering.net>
53810
53811         * lib/human.c (humblock): Set *options even when returning due to
53812         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53813         warning from gcc-4.
53814
53815 2005-04-09  Jim Meyering  <jim@meyering.net>
53816
53817         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53818         -Wuninitialized: initialize tm0.tm_year.
53819
53820 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53821
53822         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53823         count, since there's no maximum.  All uses changed.
53824         Add member dsts_seen.
53825         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53826         not being INT_MAX.
53827         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53828         Use pc_rels_seen to decide whther a date is absolute.
53829
53830         * lib/getdate.y (number): Don't overwrite year.
53831         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53832         check.
53833
53834 2005-04-02  Simon Josefsson  <jas@extundo.com>
53835
53836         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53837         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53838
53839 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53840
53841         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53842         where no absolute path name can be longer than PATH_MAX.
53843
53844 2005-03-27  Jim Meyering  <jim@meyering.net>
53845
53846         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53847
53848 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53849
53850         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53851         "one's complement" -> "ones' complement" in comment, as per Knuth.
53852         "value of type" -> "type or expression" in comment.
53853         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53854
53855 2005-03-26  Jim Meyering  <jim@meyering.net>
53856
53857         Comment nits.
53858         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53859         Correct typos: s/or/of/.
53860
53861 2005-03-26  Jim Meyering  <jim@meyering.net>
53862
53863         * modules/check-include-files: Move to ../ and rename to...
53864         * check-module: ...this.
53865
53866 2005-03-25  Jim Meyering  <jim@meyering.net>
53867
53868         * modules/xvasprintf (Files): Add xalloc.h.
53869
53870 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53871
53872         * modules/gettext (Files): config/config.rpath ->
53873         build-aux/config.rpath
53874         * modules/iconv (Files): Likewise.
53875         Problem reported by Oskar Liljeblad.
53876
53877 2005-03-23  Jim Meyering  <jim@meyering.net>
53878
53879         * modules/check-include-files: New script to check for
53880         missing dependencies, multiple includes, etc.
53881
53882         * modules/c-strtold (Depends-on): Add xalloc.
53883         * modules/c-strtod (Depends-on): Add xalloc.
53884         * modules/hash (Depends-on): Add xalloc.
53885         (Files): Remove lib/xalloc.h.
53886
53887         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53888         * modules/userspec (Files): Add lib/inttostr.h.
53889
53890 2005-03-23  Jim Meyering  <jim@meyering.net>
53891
53892         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53893
53894 2005-03-22  Jim Meyering  <jim@meyering.net>
53895
53896         * modules/stat-macros: New module.
53897         * modules/canonicalize, modules/euidaccess, modules/file-type,
53898         * modules/filemode, modules/lchown, modules/makepath,
53899         * modules/rmdir, modules/stat: Depend on new stat-macros module
53900         rather than listing lib/stat-macros.h manually.
53901         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53902
53903 2005-03-22  Jim Meyering  <jim@meyering.net>
53904
53905         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53906
53907 2005-03-22  Bruno Haible  <bruno@clisp.org>
53908
53909         * config/srclist.txt: Replace target directory 'config' with
53910         'build-aux'.
53911         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53912         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53913         ../build-aux/.
53914
53915 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53916
53917         * modules/chdir-long (Depends-on): Add mempcpy.
53918
53919         * modules/acl, modules/backupfile, modules/c-strtod,
53920         modules/c-strtold, modules/canon-host, modules/canonicalize,
53921         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53922         modules/exclude, modules/exitfail, modules/file-type,
53923         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53924         modules/getdate, modules/getline, modules/getpagesize,
53925         modules/getpass, modules/getugroups, modules/group-member,
53926         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53927         modules/inttostr, modules/long-options, modules/makepath,
53928         modules/md5, modules/memcasecmp, modules/memcoll,
53929         modules/modechange, modules/mountlist, modules/path-concat,
53930         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53931         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53932         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53933         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53934         modules/strftime, modules/strndup, modules/strverscmp,
53935         modules/timespec, modules/unlocked-io, modules/userspec,
53936         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53937         modules/yesno:
53938         Remove lib_SOURCES line from Makefile.am section, as this is now
53939         done automatically by the corresponding Autoconf macro.
53940
53941 2005-03-21  Jim Meyering  <jim@meyering.net>
53942
53943         Changes imported from coreutils.
53944
53945         * lib/cycle-check.c: Don't include xalloc.h.
53946
53947         * lib/path-concat.c: Don't include assert.h.
53948         (path_concat): Remove assertion that would have triggered
53949         for ABASE starting with more than one slash.
53950         Reported by Andreas Schwab.
53951
53952         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53953         properly when ABASE is an absolute file name.
53954         Correct the description of this function.
53955         Include <assert.h>.
53956         Add an assertion and a test driver.
53957         This fixes a bug introduced on 2004-07-02.
53958         Andreas Schwab reported the resulting failure of cp --parents:
53959         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53960
53961 2005-03-21  Jim Meyering  <jim@meyering.net>
53962
53963         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53964         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53965
53966 2005-03-21  Jim Meyering  <jim@meyering.net>
53967         and  Paul Eggert  <eggert@cs.ucla.edu>
53968
53969         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53970         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53971         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53972         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53973         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53974         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53975         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53976         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53977         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53978         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53979         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53980         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53981         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53982         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53983         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53984         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53985         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53986         for these modules.
53987
53988 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53989
53990         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53991         (which shouldn't happen), generate nothing instead of returning 0
53992         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53993
53994 2005-03-16  Bruno Haible  <bruno@clisp.org>
53995
53996         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53997         HAVE_LONGLONG_64BIT.
53998
53999 2005-03-16  Bruno Haible  <bruno@clisp.org>
54000
54001         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
54002         HAVE_LONGLONG_64BIT.
54003
54004 2005-03-16  Bruno Haible  <bruno@clisp.org>
54005
54006         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
54007         HAVE_LONGLONG_64BIT.
54008
54009 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
54010
54011         * lib/strftime.c (my_strftime): Prepend space to format so that we can
54012         reliably distinguish strftime failure from empty output on POSIX
54013         hosts.
54014
54015 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
54016
54017         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
54018         (iconv_string): Don't guess a size-zero buffer, as that might cause
54019         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
54020         result would be 'too large', where 'too large' is (heuristically)
54021         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
54022         overflow concerns.  This will prevent some unwanted malloc failures
54023         when the inputs are very large.
54024
54025 2005-03-15  Karl Berry  <karl@gnu.org>
54026
54027         * config/srclist.txt (config.rpath): from gettext.
54028         * config/config.rpath: update.
54029
54030 2005-03-15  Bruno Haible  <bruno@clisp.org>
54031
54032         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
54033         to 'negate'.
54034
54035         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
54036         variable.
54037
54038         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
54039         results.
54040
54041 2005-03-14  Simon Josefsson  <jas@extundo.com>
54042
54043         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
54044         <fx@gnu.org>.
54045
54046 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
54047
54048         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
54049         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
54050         intprops.h.
54051         * lib/strtol.c: Likewise.
54052
54053 2005-03-14  Jim Meyering  <jim@meyering.net>
54054
54055         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
54056         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
54057         to be nonzero so that we (and caller) can detect the difference
54058         between a valid zero-length expansion and an error return, even
54059         when the underlying strftime fails before writing anything into
54060         that location.
54061
54062 2005-03-14  Bruno Haible  <bruno@clisp.org>
54063
54064         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
54065         Update from GNU gettext 0.14.3.
54066
54067 2005-03-10  Jim Meyering  <jim@meyering.net>
54068
54069         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
54070
54071 2005-03-10  Jim Meyering  <jim@meyering.net>
54072
54073         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
54074         so that this module works on systems without fchdir.
54075
54076 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
54077
54078         Factor int-properties macros into a single file, except for
54079         glibc-related files.
54080         * lib/intprops.h: New file.
54081         * lib/getloadavg.c: Include it instead of limits.h.
54082         (INT_STRLEN_BOUND): Remove.
54083         * lib/human.c: Include intprops.h.
54084         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
54085         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
54086         302/1000.
54087         * lib/inttostr.h: Include intprops.h instead of limits.h.
54088         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
54089         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
54090         for consistency with intprops.h.
54091         (time_t_is_integer, twos_complement_arithmetic): Use them.
54092         * lib/sig2str.h: Include <signal.h>, intprops.h.
54093         (INT_STRLEN_BOUND): Remove.
54094         * lib/strftime.c (TYPE_SIGNED): Remove.
54095         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
54096         * lib/strtol.c: Adjust comments to match intprops.h.
54097         * lib/userspec.c: Include intprops.h.
54098         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
54099         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
54100         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
54101         instead of rolling our own expressions.
54102         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
54103
54104         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
54105         instead of int.
54106         (my_strftime): Do not mishandle years close to INT_MAX, by doing
54107         the right thing even if adding 1900 would overflow.  Similarly
54108         for tm_mon + 1 and tm_yday + 1.
54109         Make %Y always equivalent to %C%y, and similarly for %G and %g.
54110         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
54111         (DO_SIGNED_NUMBER): New macro.
54112         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
54113
54114 2005-03-07  Bruno Haible  <bruno@clisp.org>
54115
54116         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
54117
54118 2005-03-07  Bruno Haible  <bruno@clisp.org>
54119
54120         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
54121
54122 2005-03-04  Derek R. Price  <derek@ximbiot.com>
54123
54124         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
54125         (func_import): Only replace files via --import when they have actually
54126         changed.
54127
54128 2005-03-03  Derek R. Price  <derek@ximbiot.com>
54129
54130         * m4/mmap-anon.m4: New file.
54131         * m4/pagealign_alloc.m4: New file.
54132
54133 2005-03-03  Derek R. Price  <derek@ximbiot.com>
54134             Bruno Haible  <bruno@clisp.org>
54135
54136         * modules/pagealign_alloc: New file.
54137         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
54138
54139 2005-03-03  Derek R. Price  <derek@ximbiot.com>
54140             Bruno Haible  <bruno@clisp.org>
54141
54142         * lib/pagealign_alloc.h: New file.
54143         * lib/pagealign_alloc.c: New file.
54144
54145 2005-03-03  Bruno Haible  <bruno@clisp.org>
54146
54147         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
54148         Use an all-permissive copyright notice, recommended by RMS.
54149
54150 2005-03-02  Bruno Haible  <bruno@clisp.org>
54151
54152         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
54153         of AIX, the replacement has to be done only after <string.h> is
54154         included, therefore not in config.h. stpncpy.h does the replacement,
54155         and stpncpy.c uses it.
54156
54157 2005-03-02  Bruno Haible  <bruno@clisp.org>
54158
54159         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
54160         stpncpy.c uses it.
54161
54162 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54163
54164         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
54165         The workaround isn't strictly needed for POSIX conformance, and
54166         it's too much of a pain to configure and maintain.  We'll ask
54167         people to fix their kernels instead.
54168         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
54169         (NANOSLEEP_BUG_WORKAROUND): Remove.
54170         (xnanosleep): Remove the workaround.
54171
54172 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54173
54174         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
54175         Reported by Derek Price.
54176         (Include): Add "timespec.h".
54177
54178         * modules/xnanosleep (Depends-on): Remove gethrxtime.
54179
54180 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54181
54182         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
54183         to detect nanosleep bug.
54184
54185 2005-03-01  Bruno Haible  <bruno@clisp.org>
54186
54187         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
54188
54189 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * modules/gethrxtime: New file.
54192         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
54193         (Depends-on): Add gethrxtime.
54194         (configure.ac): Add gl_XNANOSLEEP.
54195         (Makefile.am): Remove lib_SOURCES line.
54196
54197 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54198
54199         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
54200         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
54201
54202 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54203
54204         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
54205         * lib/timespec.h (gettime): Return void, since it always
54206         succeeds now.  All uses changed.
54207         * lib/gettime.c (gettime) Likewise.
54208         [HAVE_NANOTIME]: Prefer nanotime.
54209         Assume gettimeofday succeeds, as POSIX requires.
54210         Assime time () succeeds, since other code already does.
54211         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
54212         (timespec_subtract): Remove.
54213         (NANOSLEEP_BUG_WORKAROUND): New constant.
54214         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
54215         things considerably.  Use it only on GNU/Linux hosts, since the
54216         workaround shouldn't be needed elsewhere.
54217
54218 2005-02-24  Bruno Haible  <bruno@clisp.org>
54219
54220         * modules/gettext (Files): Add m4/glibc2.m4.
54221
54222 2005-02-24  Bruno Haible  <bruno@clisp.org>
54223
54224         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
54225         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
54226         * m4/progtest.m4:
54227         Update from GNU gettext 0.14.2.
54228         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
54229
54230 2005-02-24  Bruno Haible  <bruno@clisp.org>
54231
54232         * lib/localcharset.c: Update from GNU gettext 0.14.2.
54233         * lib/config.charset: Update from GNU gettext 0.14.2.
54234
54235 2005-02-24  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/gettext.h: Update from GNU gettext 0.14.2.
54238
54239 2005-02-23  Simon Josefsson  <jas@extundo.com>
54240
54241         * m4/iconvme.m4: New file.
54242
54243 2005-02-23  Jim Meyering  <jim@meyering.net>
54244
54245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
54246         change.
54247         Thanks to Bruno Haible for catching it.
54248
54249 2005-02-22  Simon Josefsson  <jas@extundo.com>
54250
54251         * modules/iconvme: New file.
54252
54253         * MODULES.html.sh: Add iconvme.
54254
54255 2005-02-22  Simon Josefsson  <jas@extundo.com>
54256
54257         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
54258
54259 2005-02-22  Simon Josefsson  <jas@extundo.com>
54260
54261         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
54262
54263 2005-02-22  Jim Meyering  <jim@meyering.net>
54264
54265         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
54266         s/ifndef/ifdef/.
54267
54268 2005-02-20  Neil Conway  <neilc@samurai.com>
54269
54270         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
54271         returned by OSX/Darwin if the specified buffer is not large
54272         enough for the hostname.
54273
54274 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54275
54276         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
54277         pass it to _help, otherwise the latter coredumps trying to
54278         dereference state.root_argp.
54279
54280 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54281
54282         * modules/chdir-long (Depends-on): Add memrchr.
54283         * modules/memrchr (Files): Add lib/memrchr.h.
54284         (Include): "memrchr.h".
54285
54286 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54287
54288         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
54289
54290 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54291
54292         * lib/memrchr.h: New file.
54293         * lib/chdir-long.c: Include it.
54294         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
54295         Don't bother including stddef.h.
54296
54297 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54298
54299         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
54300         inclusion.
54301         Include <sys/types.h>, for dev_t.
54302         (ME_DUMMY, ME_REMOTE): Move from here....
54303         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
54304         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
54305         Dmitry V. Levin.
54306         Include mountlist.h first, to test the interface.
54307
54308 2005-01-29  Bruno Haible  <bruno@clisp.org>
54309
54310         * lib/progname.c (program_name): Initialize.
54311         Needed when linking statically on MacOS X.
54312
54313 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54314
54315         Sync from coreutils.
54316         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
54317         (Depends-on): Add c-strtod.
54318         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
54319
54320 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54321
54322         Sync from coreutils.
54323         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
54324
54325         Remove files that are specific to coreutils.
54326         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
54327
54328 2005-01-28  Bruno Haible  <bruno@clisp.org>
54329
54330         * modules/javacomp: New file.
54331         * MODULES.html.sh (Java): Add javacomp.
54332
54333 2005-01-28  Bruno Haible  <bruno@clisp.org>
54334
54335         * m4/javacomp.m4: New file, from GNU gettext.
54336
54337 2005-01-28  Bruno Haible  <bruno@clisp.org>
54338
54339         * lib/javacomp.sh.in: New file, from GNU gettext.
54340         * lib/javacomp.h: New file, from GNU gettext.
54341         * lib/javacomp.c: New file, from GNU gettext.
54342
54343 2005-01-26  Simon Josefsson  <jas@extundo.com>
54344
54345         * lib/gai_strerror.c: Use GPL in header.
54346
54347 2005-01-26  Bruno Haible  <bruno@clisp.org>
54348
54349         * modules/javaexec: New file.
54350         * MODULES.html.sh (Java): Add javaexec.
54351
54352 2005-01-26  Bruno Haible  <bruno@clisp.org>
54353
54354         * m4/javaexec.m4: New file, from GNU gettext.
54355
54356 2005-01-26  Bruno Haible  <bruno@clisp.org>
54357
54358         * lib/javaexec.sh.in: New file, from GNU gettext.
54359         * lib/javaexec.h: New file, from GNU gettext.
54360         * lib/javaexec.c: New file, from GNU gettext.
54361
54362 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54363
54364         * modules/lchown (Depends-on): Remove lchown.h
54365
54366 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54367
54368         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
54369         must be defined if the header file was not found, in order
54370         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
54371
54372 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54373
54374         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
54375         initializers for struct pentry_state.
54376         (__argp_error): Check return value of __asprintf
54377         (__argp_failure): Translate error message
54378
54379         * lib/argp-parse.c: Removed braces around the expansion of N_()
54380
54381 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54382
54383         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
54384         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
54385         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
54386         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
54387         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
54388         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
54389         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
54390         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
54391         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
54392         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
54393         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
54394         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
54395         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
54396         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
54397         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
54398         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
54399         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
54400         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
54401         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
54402         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
54403         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
54404         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
54405         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
54406         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
54407         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
54408         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
54409         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
54410         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
54411         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
54412         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
54413         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
54414         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
54415         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
54416         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
54417         xstrtol.m4, xstrtoumax.m4, yesno.m4:
54418         Use an all-permissive copyright notice, recommended by RMS.
54419
54420 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
54421
54422         * modules/chdir-long (Depends-on): Remove mempcpy.
54423
54424 2005-01-21  Jim Meyering  <jim@meyering.net>
54425
54426         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
54427         same value as for Solaris 9.
54428
54429         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
54430         component length.  This included changing the parameter to be
54431         of type `char *' rather than `char const *'.
54432         * lib/chdir-long.h (chdir_long): Update prototype.
54433
54434         * lib/openat.c (fdopendir, fstatat): New functions.
54435         * lib/openat.h: Include headers required for use of DIR and struct
54436         stat.
54437         [AT_SYMLINK_NOFOLLOW]: Define.
54438         (fdopendir, fstatat): Add prototypes.
54439
54440 2005-01-21  Bruno Haible  <bruno@clisp.org>
54441
54442         * modules/classpath: New file.
54443         * MODULES.html.sh (Java): Add classpath.
54444
54445 2005-01-21  Bruno Haible  <bruno@clisp.org>
54446
54447         * lib/classpath.h: New file, from GNU gettext.
54448         * lib/classpath.c: New file, from GNU gettext.
54449
54450 2005-01-20  Simon Josefsson  <jas@extundo.com>
54451
54452         * modules/version-etc-fsf: New file.
54453
54454 2005-01-20  Simon Josefsson  <jas@extundo.com>
54455
54456         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
54457         * lib/version-etc.c: Remove version_etc_copyright.
54458         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
54459         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
54460
54461 2005-01-20  Simon Josefsson  <jas@extundo.com>
54462
54463         * lib/base64.h (isbase64): Add.
54464
54465         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
54466         using a unsigned prototype, don't inline.
54467         (base64_decode): Use it.
54468
54469 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54470
54471         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
54472         it.
54473
54474 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54475
54476         * lib/save-cwd.c (save_cwd): Remove code to support the case
54477         where fchdir is missing or flaky.
54478
54479 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54480
54481         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
54482
54483 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
54486         AC_LIBSOURCES now does this.
54487         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
54488         with new ullong_max module.
54489
54490 2005-01-19  Bruno Haible  <bruno@clisp.org>
54491
54492         * modules/sh-quote: New file.
54493         * MODULES.html.sh (Executing programs): Add sh-quote.
54494
54495 2005-01-19  Bruno Haible  <bruno@clisp.org>
54496
54497         * lib/sh-quote.h: New file, from GNU gettext.
54498         * lib/sh-quote.c: New file, from GNU gettext.
54499
54500 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54501
54502         Merge from coreutils.
54503         * m4/ullong_max.m4: New file.
54504         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
54505         (gl_MACROS): Assume localeconv exists.
54506
54507 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         Merge changes from coreutils, as described below in several
54510         changelogs dated today.
54511
54512         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
54513         (O_DIRECTORY): Remove; not needed here, since "." must be
54514         a directory.  All uses removed.
54515         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
54516         universal on Suns, and we also need to test for IRIX.
54517         Revamp code to use 'if' rather than '#if'.
54518         Avoid unnecessary comparison of cwd->desc to 0.
54519
54520         * lib/utimens.c (futimens): Robustify the previous patch, by checking
54521         for known valid error numbers rather than observed invalid ones.
54522
54523 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54524
54525         * modules/ullong_max: New file.
54526
54527         * modules/chdir-long, modules/openat: New files.
54528         * modules/save-cwd (Depends-on): Depend on chdir-long.
54529         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
54530
54531 2005-01-18  Jim Meyering  <jim@meyering.net>
54532
54533         Merge from coreutils.
54534         * m4/chdir-long.m4, m4/openat.m4: New files.
54535         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
54536         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
54537         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
54538         is sane and DOES follow symlinks.  Besides, testing 20 different
54539         systems found no broken chown implementations.
54540         Prompted by a change in rsync's copy of this macro.
54541         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
54542
54543         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
54544
54545         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
54546         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
54547         NULL-means-set-to-current-time semantics.
54548         Remove temporary file immediately, rather than waiting
54549         for configure's at-exit trap code to do it.
54550
54551 2005-01-18  Jim Meyering  <jim@meyering.net>
54552
54553         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54554
54555         * lib/utimens.c (futimens): Account for the fact that futimes
54556         can also fail with errno == ENOSYS or errno == ENOENT.
54557         Patch from Dmitry V. Levin.
54558
54559         Change the name of the robust chdir function from chdir to chdir_long.
54560         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
54561         (restore_cwd): Use chdir_long, not chdir.
54562         * lib/chdir-long.c: Renamed from chdir.c.
54563         * lib/chdir-long.h: Renamed from chdir.h.
54564         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
54565         Hurd.
54566
54567 2005-01-18  Bruno Haible  <bruno@clisp.org>
54568
54569         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
54570         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
54571         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
54572         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
54573         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
54574         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
54575         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
54576         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
54577         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
54578         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
54579         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
54580         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
54581         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
54582         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
54583         Use an all-permissive copyright notice, recommended by RMS.
54584
54585 2005-01-18  Bob Proulx  <bob@proulx.com>
54586
54587         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
54588         simplify offsetof() macro construct to avoid compile failure with
54589         native HP-UX 11.0 ANSI C compiler.
54590
54591 2005-01-17  Bruno Haible  <bruno@clisp.org>
54592
54593         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
54594         redundant because stpncpy.m4 takes care of it.
54595
54596 2005-01-17  Bruno Haible  <bruno@clisp.org>
54597
54598         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
54599
54600 2005-01-17  Bruno Haible  <bruno@clisp.org>
54601
54602         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
54603         used.
54604
54605 2005-01-17  Bruno Haible  <bruno@clisp.org>
54606
54607         * lib/fwriteerror.h (fwriteerror): Change specification to include
54608         fclose.
54609         * lib/fwriteerror.c: Include <stdbool.h>.
54610         (fwriteerror): At the end, close the file stream. Record whether
54611         stdout was already closed.
54612
54613 2005-01-17  Bruno Haible  <bruno@clisp.org>
54614
54615         * lib/execute.c (environ): Declare if needed.
54616         * lib/pipe.c (environ): Likewise.
54617         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54618
54619 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54620
54621         * modules/argp: Depend on vsnprintf
54622
54623 2005-01-10  Jim Meyering  <jim@meyering.net>
54624
54625         * modules/closeout (Depends-on): Add atexit.
54626
54627 2005-01-06  Bruno Haible  <bruno@clisp.org>
54628
54629         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54630
54631 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54632
54633         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54634         definitions to be after all include files, to avoid collisions.
54635         Problem reported by Bob Proulx.
54636
54637 2005-01-04  Jim Meyering  <jim@meyering.net>
54638
54639         Changes imported from coreutils.
54640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54641         as the mkstemp template, use a temporary directory and an
54642         8.3-friendly template to avoid trouble on systems like DJGPP.
54643         Reported by Juan M. Guerrero via Stepan Kasal.
54644         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54645         close. Remove the temporary directory right away, rather than waiting
54646         for configure's at-exit trap code to do it.
54647         Suggestion from Stepan Kasal.
54648
54649 2005-01-01  Simon Josefsson  <jas@extundo.com>
54650
54651         * gnulib-tool: Print #include directives when --import'ing.
54652
54653 2004-12-28  Simon Josefsson  <jas@extundo.com>
54654
54655         * tests/test-base64.c: Include required header files.  Remove
54656         unused variables.
54657
54658 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54659
54660         * modules/error (Depends-on): Remove gettext.
54661
54662 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54663
54664         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54665         not needed.  This removes a dependency on the gettext module.
54666         [defined _LIBC]: Do not include <libintl.h>; not needed.
54667
54668 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54669
54670         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54671         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54672
54673 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54674
54675         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54676         HAVE_DECL_STRTOLD.
54677
54678 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54679
54680         * modules/getdate (Depends-on): Remove alloca-opt.
54681
54682 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54683
54684         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54685
54686 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54687
54688         * lib/argp-parse.c: Include <stddef.h>.
54689         (alignof, alignto): New macros.
54690         (parser_init): Don't assume that void * is aligned sufficiently
54691         for struct option.
54692
54693         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54694         need to extend the stack.
54695         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54696         large.
54697
54698 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54699
54700         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54701
54702 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54703
54704         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54705         (2004-10-24) change.  Apparently this was a false alarm.
54706
54707         * modules/getdate: Depend on alloca-opt, not alloca.
54708
54709 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54710
54711         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54712         Remove now-obsolete comment about AIX.
54713         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54714         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54715         (YYMAXDEPTH): New macro.
54716
54717 2004-12-18  Simon Josefsson  <jas@extundo.com>
54718
54719         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54720
54721 2004-12-18  Bruno Haible  <bruno@clisp.org>
54722
54723         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54724
54725 2004-12-18  Bruno Haible  <bruno@clisp.org>
54726
54727         * lib/fatal-signal.c (fatal_signals): Make non-const.
54728         (init_fatal_signals): New function.
54729         (uninstall_handlers, install_handlers): Ignore signals that were set to
54730         SIG_IGN.
54731         (at_fatal_signal): Call init_fatal_signals.
54732         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54733         SIG_IGN.
54734         Reported by Paul Eggert.
54735
54736 2004-12-18  Bruno Haible  <bruno@clisp.org>
54737
54738         * doc/alloca.texi: New file.
54739         * doc/alloca-opt.texi: New file.
54740
54741 2004-12-17  Jim Meyering  <jim@meyering.net>
54742
54743         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54744         Otherwise, install-sh could exit with improper exit status when
54745         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54746
54747 2004-12-16  Simon Josefsson  <jas@extundo.com>
54748
54749         * tests/test-base64.c: Add license.
54750
54751 2004-12-15  Stepan Kasal  <address@hidden>
54752
54753         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54754
54755 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54756
54757         * modules/getcwd (Files): Add m4/d-ino.m4.
54758         Suggested by Mark D. Baushke.
54759
54760 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54761
54762         * lib/getdate.y (textint): New member "negative".
54763         (time_zone_hhmm): New function.
54764         Expect 14 shift-reduce conflicts, not 13.
54765         (o_colon_minutes): New rule.
54766         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54767         (yylex): Set the "negative" member of signed numbers.
54768
54769 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54770
54771         * doc/getdate.texi (Time of day items, Time zone items):
54772         Describe new formats +00:00, UTC+00:00.
54773
54774 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54775
54776         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54777         spurious "-l"s.  Problem reported by Stepan Kasal.
54778
54779 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54780
54781         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54782         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54783
54784 2004-12-04  Simon Josefsson  <jas@extundo.com>
54785
54786         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54787         Vandoorselaere <yoann@prelude-ids.org>.
54788
54789 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54790
54791         Changes imported from coreutils.
54792         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54793         exist.
54794         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54795
54796 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54797
54798         Changes imported from coreutils.
54799         * lib/hard-locale.c: Assume <locale.h> exists.
54800         Include "strdup.h".
54801         (GLIBC_VERSION): New macro.
54802         (hard_locale): Assume setlocale exists.
54803         Rewrite to avoid #ifdef.
54804         Use strdup rather than malloc + strcpy.
54805         * lib/human.c: Assume <locale.h> exists.
54806         (human_readable): Assume localeconv exists.
54807
54808 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54809
54810         * modules/hard-locale (Depends-on): Add strdup.
54811
54812 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54813
54814         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54815         convert T2, not T.  (Imported from libc.)
54816
54817 2004-11-30  Simon Josefsson  <jas@extundo.com>
54818
54819         * modules/restrict (License): Change to LGPL.
54820
54821 2004-11-30  Simon Josefsson  <jas@extundo.com>
54822
54823         * m4/restrict.m4: Add copyright and copying conditions.
54824
54825 2004-11-30  Simon Josefsson  <jas@extundo.com>
54826
54827         * m4/base64.m4: New file.
54828
54829 2004-11-30  Simon Josefsson  <jas@extundo.com>
54830
54831         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54832         base64.
54833
54834         * tests/test-base64.c: New file.
54835
54836         * modules/base64: New file.
54837
54838 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54839
54840         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54841         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54842
54843         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54844
54845 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54846
54847         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54848         (__getcwd.c): Don't restore errno; glibc doesn't.
54849         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54850         first, falling back to our code only if its results look suspicious.
54851         Ensure that the resulting buffer is only as large as necessary.
54852
54853         * lib/readutmp.c: Include readutmp.h first.
54854         Include <errno.h>, since readutmp.h no longer does that.
54855         * lib/readutmp.h: Don't include <errno.h>,
54856         <sys/param.h>, <time.h>; not needed to establish interface.
54857         (errno): Remove decl.
54858         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54859         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54860         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54861
54862 2004-11-28  Simon Josefsson  <jas@extundo.com>
54863
54864         * lib/base64.h, base64.c: New file.
54865
54866 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54867
54868         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54869
54870 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54871
54872         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54873         (Depends-on): Remove pathmax, same.  Add mempcpy.
54874         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54875         (Makefile.am): Append getcwd.h to lib_SOURCES.
54876         (Include): Add getcwd.h.
54877         (Maintainer): Change from Jim Meyering to "all, glibc",
54878         since getdate now uses intended-for-glibc code.
54879         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54880         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54881
54882 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54883
54884         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54885         HP's ANSI C compiler.
54886         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54887         Declaring int functions causes warnings on some modern systems and
54888         shouldn't be needed to compile on ancient ones.
54889         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54890         defined.
54891
54892         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54893         with the following changes.
54894         (__set_errno): Parenthesize properly.
54895         Include <stdbool.h>.
54896         (MIN, MAX, MATCHING_INO): New macros.
54897         (__getcwd): Define with prototype, not K&R form.
54898         Use heuristics to allocate default buffer on stack if possible.
54899         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54900         behavior, and to avoid the PATH_MAX limit when computing
54901         ../../../../...
54902         Use MATCHING_INO to compare inode number to file.
54903         Check for arithmetic overflow in size calculations.
54904         Fix bug in reallocation of dot array that caused getcwd to fail
54905         on directories nested deeper than 75.
54906         Be more careful about saving errno on error.
54907         Do not use realloc; use only free+malloc, as this is a bit
54908         more flexible and avoids a needless copy operation.
54909         Do not inspect st_dev and st_ino for symbolic links; POSIX
54910         doesn't specify the latter.
54911         Check for closedir errors.
54912         Avoid needless casts.
54913         Use "#ifdef weak_alias" around weak_alias, to be like other
54914         glibc code.
54915         The following changes to getcwd.c have effect only when used in
54916         gnulib; they have no effect inside glibc proper.
54917         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54918         as alloca isn't used.
54919         (alloca, __alloca): Likewise.
54920         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54921         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54922         unconditionally, as gnulib assumes C89 or better.
54923         Do not include <sys/param.h>.
54924         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54925         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54926         better.
54927         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54928         Include <dirent.h> in a way that is compatible with modern Autoconf.
54929         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54930         New macros, if not already defined.
54931         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54932         Use "_LIBC", not "defined _LIBC", for consistency.
54933         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54934         a mempcpy module.
54935         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54936         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54937         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54938         credit only to Jim Meyering and adjust the copyright dates.
54939         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54940         <stdlib.h>, <unistd.h>, "pathmax.h".
54941         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54942         (INITIAL_BUFFER_SIZE): Remove.
54943         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54944
54945 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54946
54947         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54948         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54949         Use the _ONCE methods, for efficiency.
54950         Check for fcntl.h.  In test program, include <errno.h>
54951         and <fcntl.h> if available.  Remove old K&R cruft from
54952         test program.  Check for common errors in GNU/Linux,
54953         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54954         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54955         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54956         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54957         name accordingly.
54958         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54959         accommodate new getcwd.c.
54960         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54961         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54962         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54963         that's all we need now.
54964
54965 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54966
54967         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54968         argp-parse.c depends on getopt internals, that means we should
54969         always use our getopt, to be on the safe side.
54970         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54971         order not to spoil the result of an eventual previous invocation
54972         of gl_GETOPT_SUBSTITUTE.
54973
54974 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54975
54976         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54977         redefinition warnings. To avoid them, include the defines
54978         in `#if !defined __need_getopt ... #endif'. The only place
54979         where __getopt_argv_const is used is in definitions
54980         of getopt_long and getopt_long_only below, which are as well
54981         protected by `#ifndef __need_getopt'.
54982         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54983         __need_getopt after including <stdio.h> and <unistd.h> These
54984         headers might have defined it.
54985
54986 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54987
54988         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54989
54990 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54991
54992         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54993         (futimens): New function, which uses futimes if available.
54994         (futimens, utimens): Support timespec==NULL, with same semantics
54995         as utime and utimens.
54996         * lib/utimens.h (futimens): New decl.
54997
54998 2004-11-23  Jim Meyering  <jim@meyering.net>
54999
55000         * lib/getopt_.h: Remove trailing blanks.
55001
55002 2004-11-23  Jim Meyering  <jim@meyering.net>
55003
55004         * lib/__fpending.c: Add comment.
55005
55006 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         * modules/canonicalize (Depends-on): Add xreadlink.
55009         Problem reported by James Youngman.
55010
55011 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55012
55013         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
55014         New macros.
55015         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
55016         optopt): Use them instead of invoking ## directly; otherwise, the
55017         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
55018
55019 2004-11-19  Bruno Haible  <bruno@clisp.org>
55020
55021         * lib/strtok_r.c: Move comments from here...
55022         * lib/strtok_r.h: ... to here.
55023
55024 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55025
55026         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
55027         implementations that mishandle size_t overflow.
55028
55029 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55030
55031         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
55032         might fail.  Problem reported by Yoann Vandoorselaere.
55033         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
55034         implementations that mishandle size_t overflow.
55035
55036 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55037
55038         * modules/canon-host (Depends-on): Add strdup.
55039
55040 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55041
55042         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
55043
55044 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55045
55046         * lib/canon-host.c: Include "strdup.h".
55047         (canon_host): Use getaddrinfo if available, so that IPv6 works.
55048         Use strdup instead of malloc/strcpy to duplicate strings.
55049
55050         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
55051         (human_space_before_unit): New constant.
55052         * lib/human.c (human_readable): Support it.
55053
55054         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
55055         (xgetcwd): Set errno correctly when failing.
55056         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
55057         the failure is actually due to a PATH_MAX problem.
55058
55059         Further getopt changes to make it more likely that glibc will
55060         buy the changes back.
55061         * lib/getopt.c (POSIXLY_CORRECT): New constant.
55062         (getopt): Use it, so to preserve glibc semantic
55063         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
55064         when compiling for libc.
55065         * lib/getopt_.h (__getopt_argv_const): Bring it back.
55066         (getopt_long, getopt_long_only): Use it.
55067
55068         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
55069         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
55070         (getopt): Argv is now char * const *, as per standard.
55071         (_getopt_internal_r, _getopt_internal): Argv is now char **,
55072         not char *__getopt_argv_const *.
55073         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
55074         _getopt_long_only_r): Likewise.
55075         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
55076         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
55077         _getopt_long_r, _getopt_long_only_r): Likewise.
55078         * lib/getopt_.h (__getopt_argv_const): Remove.
55079         (getopt): Argv is now char * const *, as per standard.
55080
55081         * lib/getdate.y (tORDINAL): New token.
55082         (day, relunit): Allow it for relative times.
55083         (relative_time_table): Use tORDINAL for ordinals.
55084
55085 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55086
55087         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
55088         Document that "second" isn't allowed as an ordinal number.
55089
55090 2004-11-16  Jim Meyering  <jim@meyering.net>
55091
55092         * modules/closeout (Depends-on): Add fpending.
55093
55094 2004-11-15  Jim Meyering  <jim@meyering.net>
55095
55096         * lib/closeout.c: Include "__fpending.h" once again.
55097         Include <stdbool.h>.
55098         (close_stdout): Don't fail just because stdout was closed initially,
55099         since some programs don't write to stdout in the normal course of
55100         operation (other than --version and --help), and we don't want this
55101         function to make e.g. `touch file >&-' fail.
55102         But do fail if it was closed and someone has tried to write to it.
55103         E.g., `printf foo >&-' must fail.
55104
55105 2004-11-13  Jim Meyering  <jim@meyering.net>
55106
55107         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
55108
55109 2004-11-12  Simon Josefsson  <jas@extundo.com>
55110
55111         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
55112         small doc fix is still pending.
55113
55114 2004-11-11  Simon Josefsson  <jas@extundo.com>
55115
55116         * modules/strtok_r: New file.
55117
55118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55119         strtok_r.
55120
55121 2004-11-11  Simon Josefsson  <jas@extundo.com>
55122
55123         * m4/strtok_r.m4: New file.
55124
55125         * m4/getopt.m4: Replace opterr.
55126
55127 2004-11-11  Simon Josefsson  <jas@extundo.com>
55128
55129         * lib/strtok_r.h, strtok_r.c: New file.
55130
55131 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
55132
55133         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
55134         of replacing opterr, getopt, etc.  This should handle the
55135         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
55136
55137 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
55138
55139         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
55140         we can stop lying to compilers about the constness of argv when we
55141         are compiled outside glibc.
55142         (getopt, getopt_long, getopt_long_only): Use it.
55143         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
55144         _getopt_internal, getopt): Likewise.
55145         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
55146         _getopt_long_only_r): Likewise.
55147         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
55148         _getopt_long_r, _getopt_long_only_r): Likewise.
55149
55150         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
55151         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
55152         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
55153         the other external symbols.
55154         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
55155         declaration, since the above renaming now works around collisions.
55156
55157 2004-11-11  Jim Meyering  <jim@meyering.net>
55158
55159         * lib/linebreak.c: Remove trailing blanks.
55160         * lib/alloca_.h: Likewise.
55161         * lib/acosl.c: Likewise.
55162         * lib/euidaccess.c: Likewise.
55163         * lib/allocsa.h: Likewise.
55164
55165 2004-11-10  Simon Josefsson  <jas@extundo.com>
55166
55167         * m4/getaddrinfo.m4: New file.
55168
55169 2004-11-10  Simon Josefsson  <jas@extundo.com>
55170
55171         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
55172
55173 2004-11-10  Simon Josefsson  <jas@extundo.com>
55174
55175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55176         getaddrinfo.
55177
55178         * modules/getaddrinfo: New file.
55179
55180 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55181
55182         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
55183
55184 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55185
55186         * lib/mktime.c (SHR): New macro, which is a portable
55187         substitute for >> that should work even on Crays.
55188         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
55189         Problem reported by Mark D. Baushke in
55190         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
55191         * lib/getdate.y (SHR): Likewise.
55192         (tm_diff): Use it.
55193         * lib/strftime.c (SHR): Likewise.
55194         (tm_diff): Use it.
55195         * lib/quotearg.c (struct quoting_options): Use unsigned int for
55196         quote_these_too, so that right shifts are well defined.  All uses
55197         changed.
55198
55199 2004-11-10  Jim Meyering  <jim@meyering.net>
55200
55201         Ensure that no close failure goes unreported.
55202         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
55203         return early when it seems there's nothing to flush.
55204         Don't include __fpending.h.
55205
55206 2004-11-10  Jim Meyering  <jim@meyering.net>
55207
55208         * modules/closeout (Depends-on): Remove fpending.
55209
55210 2004-11-10  Jim Meyering  <jim@meyering.net>
55211
55212         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
55213
55214 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55215
55216         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
55217         gl_FUNC_STRFTIME.
55218         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
55219         and AC_REQUIRE when possible, to avoid duplicate checks.
55220         Check for <wchar.h>.
55221
55222 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55223
55224         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
55225
55226 2004-11-09  Bruno Haible  <bruno@clisp.org>
55227
55228         * m4/sockpfaf.m4: New file.
55229
55230 2004-11-05  Bruno Haible  <bruno@clisp.org>
55231
55232         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
55233         Reported by Mark D. Baushke <mdb@cvshome.org>.
55234
55235 2004-11-04  Bruno Haible  <bruno@clisp.org>
55236
55237         2004-09-11  Bruno Haible  <bruno@clisp.org>
55238                 * allocsa.valgrind: New file.
55239         2004-02-06  Bruno Haible  <bruno@clisp.org>
55240                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
55241                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
55242                 Reported by Christopher Seip <chris.seip@hp.com>.
55243
55244 2004-11-04  Bruno Haible  <bruno@clisp.org>
55245
55246         * modules/allocsa (Files): Add lib/allocsa.valgrind.
55247         (Makefile.am): Distribute it.
55248
55249 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55250
55251         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
55252         with errno == ERANGE if the buffer is too small.
55253         Problem reported by Mark D. Baushke.
55254
55255 2004-11-03  Albert Chin  <china@thewrittenword.com>
55256             Paul Eggert  <eggert@cs.ucla.edu>
55257
55258         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
55259         equivalent, substitute $ac_type for equivalent type rather than
55260         blindly using uint32_t *always* which won't work if uint32_t is not
55261         available.  Define _UINT32_T to work around typedef of uint32_t if
55262         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
55263         2.5.1.
55264
55265 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55266
55267         * m4/jm-macros.m4: Sync from coreutils.
55268         (gl_MACROS): Check for mbrlen, for pathchk.
55269         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
55270
55271 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         * lib/xreadlink.c (MAXSIZE): New macro.
55274         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
55275         size does not exceed MAXSIZE.  Avoid cast.
55276         As suggested by Mark D. Baushke in
55277         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
55278         if readlink fails with buffer size just under MAXSIZE, try again
55279         with MAXSIZE.
55280
55281 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55282
55283         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
55284
55285 2004-11-02  Derek R. Price  <derek@ximbiot.com>
55286         and  Paul Eggert  <eggert@cs.ucla.edu>
55287
55288         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
55289         (get_date): Overparenthesize to avoid GCC warning.
55290
55291 2004-11-02  Bruno Haible  <bruno@clisp.org>
55292
55293         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
55294         returns void.
55295
55296 2004-11-02  Bruno Haible  <bruno@clisp.org>
55297
55298         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
55299         function returns void.
55300
55301 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55302
55303         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
55304         fflush_unlocked, flockfile, funlockfile, funlockfile,
55305         fputs_unlocked, putc_unlocked.
55306
55307 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55308
55309         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
55310         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
55311         already declared.
55312
55313 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55314
55315         * modules/getdate (Files): Add doc/getdate.texi.
55316         (Depends-on): Add setenv, xalloc.
55317
55318 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55319
55320         * lib/getdate.y: Add support for TZ="foo" within a date string.
55321         Fix some bugs near time_t boundaries.  Reject dates with
55322         out-of-range components, e.g., "Sept 31".
55323         Include <stdlib.h>, "setenv.h", "xalloc.h".
55324         (ISDIGIT_LOCALE): Remove; unused.
55325         Note that the TZ and time functions used here are not reentrant.
55326         (mktime_ok, get_tz): New functions.
55327         (TZBUFSIZE): New constant.
55328         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
55329         This requires that we sometimes generate our own TZ="XXX..." setting.
55330
55331 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55332
55333         * doc/getdate.texi: New file, from coreutils with modifications for
55334         the new TZ parsing.
55335
55336 2004-10-27  Derek R. Price  <derek@ximbiot.com>
55337
55338         * lib/mktime.c (not_equal_tm): Remove redundant check.
55339
55340 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55341
55342         * modules/regex (lib_SOURCES): Add regex.c.
55343         Reported by James Youngman in
55344         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
55345
55346 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55347
55348         * lib/getdate.y: Use Bison 1.875 features, and some minor
55349         code cleanups.  This change does not affect semantics.
55350         Don't include <stdlib.h>; no longer needed.
55351         Don't include unlocked-io.h; only the "#if TEST" code uses
55352         stdio, and performance isn't crucial there.
55353         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
55354         Bison 1.875 features as described below.
55355         All uses of "PC." replaced by "pc->".
55356         (YYSTYPE): Add a forward declaration.
55357         (yylex, yyerror): Use full prototypes in forward decls.
55358         Use "%pure-parser" rather than obsolescent "%pure_parser".
55359         Use %parse-param and %lex-param instead of obsolescent
55360         YYPARSE_PARAM and YYLEX_PARAM.
55361         (meridian_table, month_and_day_table, time_units_table,
55362         relative_time_table, time_zone_table, military_table,
55363         lookup_zone, lookup_word, get_date):
55364         Use NULL instead of 0 where appropriate.
55365         (to_hour): Avoid abort (), to avoid a dependency on
55366         stdlib.h.
55367         (yyerror, yylex): Now accepts parser_control * arg.
55368         (main) [TEST]: Use '\0' rather than 0 for char.
55369
55370 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55371
55372         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
55373
55374 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55375
55376         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
55377         It's now the caller's responsibility to handle the case where
55378         !HAVE_GETPAGESIZE && !defined getpagesize.
55379
55380         * lib/mktime.c (leapyear): Arg is long int, not int.
55381
55382 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
55383
55384         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
55385
55386 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55387
55388         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
55389         missing.  Problem reported by James Youngman.
55390
55391 2004-10-16  Simon Josefsson  <jas@extundo.com>
55392
55393         * gnulib-tool: Fix comments.  Fix parse problem.
55394         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
55395
55396 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
55397
55398         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
55399         implementation of getopt_long.  Problem reported by Alexander Taler in:
55400         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
55401
55402 2004-10-15  Bruno Haible  <bruno@clisp.org>
55403
55404         * gnulib-tool: Untabify. Initialize supplied_libname.
55405         (func_usage): More homogenous output.
55406         (func_modules_transitive_closure, func_modules_to_filelist,
55407         func_emit_lib_Makefile_am): New functions.
55408         (func_import): New function, extracted from big case statement. Use
55409         func_get_license, func_modules_transitive_closure,
55410         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
55411         opt_lgpl. Don't use test -a, as it's not portable.
55412         (func_create_testdir): Use func_modules_transitive_closure,
55413         func_modules_to_filelist, func_emit_lib_Makefile_am.
55414
55415 2004-10-15  Bruno Haible  <bruno@clisp.org>
55416
55417         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
55418
55419 2004-10-15  Bruno Haible  <bruno@clisp.org>
55420
55421         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
55422         the portions belonging to each module.
55423         Suggested by Derek Robert Price <derek@ximbiot.com>.
55424
55425 2004-10-12  Simon Josefsson  <jas@extundo.com>
55426
55427         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
55428         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
55429         to real functions.
55430
55431 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55432
55433         * modules/vsnprintf: New file.
55434
55435 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55436
55437         * m4/vsnprintf.m4: New file.
55438
55439 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55440
55441         * lib/vsnprintf.h: New file.
55442         * lib/vsnprintf.c: New file.
55443
55444 2004-10-11  Bruno Haible  <bruno@clisp.org>
55445
55446         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
55447         vsnprintf.
55448
55449 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
55452
55453 2004-10-07  Bruno Haible  <bruno@clisp.org>
55454
55455         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
55456         fits into the provided buffer.
55457
55458 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55459
55460         * lib/diacrit.c, diacrit.h: Add GPL notice.
55461
55462         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
55463         notice.
55464         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
55465         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
55466         This avoids a potential constant-folding bug.
55467
55468 2004-10-05  Bruno Haible  <bruno@clisp.org>
55469
55470         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
55471         for the declaration of strsep.
55472
55473 2004-10-05  Bruno Haible  <bruno@clisp.org>
55474
55475         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
55476
55477 2004-10-04  Simon Josefsson  <jas@extundo.com>
55478
55479         * modules/memmem: New file.
55480         * tests/test-memmem.c: New file.
55481         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
55482
55483 2004-10-04  Simon Josefsson  <jas@extundo.com>
55484
55485         * m4/memmem.m4: New file.
55486
55487 2004-10-04  Simon Josefsson  <jas@extundo.com>
55488
55489         * lib/memmem.h: New file.
55490         * lib/memmem.c: New file, taken from glibc.
55491
55492 2004-10-04  Simon Josefsson  <jas@extundo.com>
55493
55494         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
55495         '#ifdef USE_UNLOCKED_IO'.
55496
55497 2004-10-04  Simon Josefsson  <jas@extundo.com>
55498
55499         * config/srclist.txt: Add memmem from glibc.
55500
55501 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55502
55503         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
55504
55505         * modules/argmatch, modules/argp, modules/closeout, modules/error,
55506         modules/exclude, modules/getdate, modules/getline,
55507         modules/getndelim2, modules/getpass, modules/getpass-gnu,
55508         modules/getusershell, modules/linebuffer, modules/md5,
55509         modules/mountlist, modules/posixtm, modules/readtokens,
55510         modules/readutmp, modules/regex, modules/sha1,
55511         modules/version-etc, modules/yesno:
55512         Remove dependency on unlocked-io.
55513
55514 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55515
55516         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
55517
55518         * m4/unlocked-io.m4: Add copyright notice.
55519         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
55520
55521 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55522
55523         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
55524         * lib/xmalloc.c (xmemdup): Likewise.
55525         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
55526         XFREE): Remove these long-obsolescent macros.
55527         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
55528         * lib/xstrdup.c: Remove.
55529
55530         * lib/regex.c (re_comp): Cast gettext return value to char *,
55531         Problem reported by Martin Neitzel via Mark D. Baushke.
55532
55533 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55534
55535         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
55536         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
55537         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
55538         regex.c, sha1.c, version-etc.c, yesno.c:
55539         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
55540         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
55541         the includer's responsibility.
55542
55543         Sync from coreutils.
55544
55545         * lib/modechange.c (mode_compile): Don't decrement a pointer that
55546         points to the start of a string, as the C Standard says the
55547         resulting behavior is undefined.
55548
55549         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
55550         simple -> simple_backups, numbered_existing ->
55551         numbered_existing_backups, numbered -> numbered_backups
55552         to avoid shadowing problems.  All uses changed.
55553         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
55554         * lib/backupfile.c (check_extension, numbered_backup):
55555         Rename locals to avoid shadowing 'basename'.
55556         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
55557         once.
55558
55559         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
55560         * lib/.cvsignore: Add getopt.h.
55561
55562 2004-10-04  Bruno Haible  <bruno@clisp.org>
55563
55564         * modules/README: New file.
55565         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
55566         not a module.
55567
55568 2004-10-02  Jim Meyering  <jim@meyering.net>
55569
55570         * lib/dirfd.h, getpagesize.h: Add copyright notice.
55571
55572 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55573
55574         * modules/strsep: New file.
55575
55576 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55577
55578         * m4/strsep.m4: New file.
55579
55580 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55581
55582         * lib/strsep.h: New file.
55583         * lib/strsep.c: New file.
55584
55585 2004-10-01  Simon Josefsson  <jas@extundo.com>
55586
55587         * lib/snprintf.c (snprintf): Handle size==0.
55588
55589 2004-10-01  Simon Josefsson  <jas@extundo.com>
55590             Bruno Haible  <bruno@clisp.org>
55591
55592         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
55593         (snprintf): Declare 'args'.
55594
55595 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
55596
55597         * lib/snprintf.c: Remove comments as to why each header is needed.
55598
55599 2004-10-01  Bruno Haible  <bruno@clisp.org>
55600
55601         * MODULES.html.sh: Add strsep.
55602
55603 2004-09-30  Simon Josefsson  <jas@extundo.com>
55604
55605         * modules/snprintf: New file.
55606
55607 2004-09-30  Simon Josefsson  <jas@extundo.com>
55608
55609         * m4/snprintf.m4: New file.
55610
55611 2004-09-30  Simon Josefsson  <jas@extundo.com>
55612
55613         * lib/snprintf.h, lib/snprintf.c: New files.
55614
55615 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55616
55617         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55618         (hol_entry_help): Never translate an empty string.
55619         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55620         * lib/argp.h (OPTION_NO_TRANS): New option.
55621
55622 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55623
55624         * modules/argp (Maintainer): Replace Simon Josefsson
55625         by Sergey Poznyakoff.
55626
55627 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55628
55629         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55630         changes merged back into glibc.
55631
55632 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55633
55634         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55635
55636 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55637
55638         * lib/xvasprintf.c: Include xalloc.h.
55639         (xvasprintf): Use xalloc_die, not xmalloc_die.
55640
55641 2004-09-29  Bruno Haible  <bruno@clisp.org>
55642
55643         * modules/alloca-opt: New file, derived from modules/alloca.
55644         * modules/allocsa: Depend on alloca-opt instead of alloca.
55645         * modules/setenv: Likewise.
55646         * modules/vasnprintf: Likewise.
55647         * MODULES.html.sh: Add alloca-opt.
55648
55649 2004-09-28  Simon Josefsson  <jas@extundo.com>
55650
55651         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55652         LGPL, and to replace license template from GPL to LGPL.
55653
55654 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55655
55656         * modules/dummy: Change license to LGPL.
55657
55658 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55659
55660         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55661
55662 2004-09-24  Simon Josefsson  <jas@extundo.com>
55663
55664         * modules/minmax (License): Change from GPL to LGPL.
55665
55666 2004-09-23  Simon Josefsson  <jas@extundo.com>
55667
55668         * gnulib-tool (--import): Typo.
55669
55670 2004-09-23  Simon Josefsson  <jas@extundo.com>
55671
55672         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55673
55674 2004-09-22  Bruno Haible  <bruno@clisp.org>
55675
55676         * modules/*: Add 'License' field.
55677         * gnulib-tool: Accept --extract-license option.
55678         (func_get_license): New function.
55679
55680 2004-09-21  Bruno Haible  <bruno@clisp.org>
55681
55682         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55683         Reported by Simon Josefsson.
55684
55685 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55686
55687         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55688         gl_AC_TYPE_LONG_LONG.
55689
55690 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55691
55692         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55693
55694 2004-09-18  Simon Josefsson  <jas@extundo.com>
55695         and  Paul Eggert  <eggert@cs.ucla.edu>
55696
55697         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55698         calls with autoreconf.  Define GL_LIB.
55699
55700 2004-09-14  Karl Berry  <karl@gnu.org>
55701
55702         * config/srclist.txt: unsync setenv.c, sigh.
55703
55704 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55705
55706         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55707         Problem reported by Bruno Haible in:
55708         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55709
55710 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55711
55712         * config/srclist.txt: Comment out argp-pvh.c.
55713
55714 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55715
55716         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55717         in case some system header has #define'd it.  Problem reported by
55718         Soeren D. Schulze in
55719         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55720
55721 2004-09-09  Karl Berry  <karl@gnu.org>
55722
55723         * regex.[ch]: delete from the root.  These were supposed to be
55724                 synced with emacs cvs, but this has not happened for about
55725                 a year, and anyway nothing else uses emacs regex.[ch].
55726                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55727                 lib/regex[.ch] is untouched.
55728
55729 2004-09-09  Bruno Haible  <bruno@clisp.org>
55730
55731         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55732
55733 2004-09-09  Bruno Haible  <bruno@clisp.org>
55734
55735         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55736         modifications.
55737         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55738
55739 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55740
55741         * modules/xvasprintf: New file.
55742         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55743
55744 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55745
55746         * lib/xvasprintf.h: New file.
55747         * lib/xvasprintf.c: New file.
55748         * lib/xasprintf.c: New file.
55749
55750 2004-09-08  Bruno Haible  <bruno@clisp.org>
55751
55752         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55753
55754 2004-09-08  Bruno Haible  <bruno@clisp.org>
55755
55756         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55757         length is > INT_MAX.
55758         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55759         more.
55760
55761 2004-09-08  Bruno Haible  <bruno@clisp.org>
55762
55763         * lib/stdint_.h: New file, taken from GNU clisp.
55764
55765 2004-09-08  Bruno Haible  <bruno@clisp.org>
55766             Oskar Liljeblad  <oskar@osk.mine.nu>
55767
55768         * modules/stdint: New file.
55769         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55770
55771 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55772
55773         Import from coreutils.
55774         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55775         strings on unbounded length.  alloca's performance benefits aren't
55776         that important here.
55777         (V_STRDUP): Remove.
55778         (parse_with_separator): New function, with most of the internals
55779         of the old parse_user_spec.  Allow user to omit both user and group,
55780         for compatibility with FreeBSD.
55781         Clone only the user name, not the entire spec.
55782         Do not set *uid, *gid unless entirely successful.
55783         Avoid memory leak in some failing cases.
55784         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55785         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55786         (parse_user_spec): Rewrite to use parse_with_separator.
55787
55788 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55789
55790         * modules/userspec: Don't depend on alloca.
55791
55792 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55793
55794         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55795
55796 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55797
55798         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55799         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55800         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55801
55802 2004-08-16  Simon Josefsson  <jas@extundo.com>
55803
55804         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55805         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55806         Add --dry-run for --import.
55807         Let user provided command line parameters override configure.ac
55808         settings.
55809
55810 2004-08-12  Simon Josefsson  <jas@extundo.com>
55811
55812         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55813         as discussed with Paul Eggert in threads rooted at
55814         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55815         and
55816         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55817         Before, the test was empty, and relied on ELIDE_CODE in source
55818         code.)
55819         (gl_PREREQ_GETOPT): New macro.
55820         (gl_GETOPT): Use them.
55821
55822 2004-08-12  Simon Josefsson  <jas@extundo.com>
55823
55824         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55825         * lib/getopt_.h: Renamed from getopt.h.
55826
55827 2004-08-12  Simon Josefsson  <jas@extundo.com>
55828
55829         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55830         Change default library name from libfoo to libgnu.
55831         Now, if you have a configure.ac that says:
55832                 gl_SOURCE_BASE(gl)
55833                 gl_M4_BASE(gl/m4)
55834                 gl_MODULES(error getopt etcetera)
55835                 gl_INIT
55836         you can import all you need by running:
55837                 ../gnulib/gnulib-tool --import
55838
55839         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55840         (Makefile.am): Rewrite, use logic from argz.
55841         (Include): Use <getopt.h> instead of "getopt.h".
55842
55843 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55844
55845         * modules/argp (Files): Add m4/unlocked-io.m4.
55846         (Depends-on): Add extensions.
55847
55848 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55849
55850         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55851         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55852         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55853         Check for program_invocation_name, program_invocation_short_name,
55854         flockfile, funlockfile, features.h, _getopt_long_only_r.
55855
55856 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55857
55858         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55859         its complicated substitute.
55860         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55861         and program_invocation_name.
55862         (__argp_basename) [!_LIBC]: Remove; the only use was
55863         replaced by its body.
55864         (__argp_short_program_name): Change condition from
55865         !defined __argp_short_program_name to
55866         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55867         to match argp-namefrob.h.
55868         (__argp_failure): Don't assume strerror_r returns char *.
55869         * lib/argp-parse.c (N_): Define unconditionally.
55870         (argp_default_options): Fill out initializers with 0 to avoid
55871         gcc warnings.
55872
55873 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55874
55875         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55876         getopt1.c.
55877
55878 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55879
55880         Merge from coreutils.
55881
55882         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55883
55884         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55885         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55886
55887 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55888
55889         Merge from coreutils.
55890
55891         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55892         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55893         for Reliant Unix 5.43.
55894
55895         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55896         (union fooround): Use uintmax_t, not long int.
55897         The rest is a merge from libc:
55898         [defined _LIBC]: Include <shlib-compat.h>.
55899         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55900
55901         * lib/settime.c (settime): Recode to avoid warning with
55902         Sun Forte C 6U2.
55903
55904         * lib/strverscmp.c: Convert to UTF-8.
55905
55906 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55907
55908         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55909         m4/uintmax_t.m4.
55910
55911 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55912
55913         * modules/xalloc-die: New file.
55914         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55915
55916         * modules/md5 (Files): Add m4/uint32_t.m4.
55917         * modules/sha1: Renamed from modules/sha.
55918         (Files):
55919         Rename lib/sha.h to lib/sha1.h.
55920         Rename lib/sha.c to lib/sha1.c.
55921         Rename m4/sha.m4 to m4/sha1.m4.
55922         (lib_SOURCES): Likewise.
55923         (configure.ac): Rename gl_SHA to gl_SHA1.
55924         (Include): sha.h -> sha1.h.
55925
55926 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55927
55928         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55929         * m4/sha1.m4: Renamed from sha.m4.
55930         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55931
55932 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55933
55934         * lib/obstack.h (obstack_empty_p):
55935         Don't assume that chunk->contents is suitably aligned.
55936         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55937         Likewise. Problem reported by Benno in
55938         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55939
55940         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55941         readable.  This could be improved further but it'd take some work.
55942
55943 2004-08-08  Simon Josefsson  <jas@extundo.com>
55944
55945         * modules/xgethostname (Depends-on): Remove exit and error (not
55946         used).
55947
55948         * modules/getpass-gnu: Add getpass.h.
55949         (Depends-on): Add stdbool.
55950         * modules/getpass: Add getpass.h.
55951
55952 2004-08-08  Simon Josefsson  <jas@extundo.com>
55953
55954         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55955         Check getpass declaration.
55956
55957 2004-08-08  Simon Josefsson  <jas@extundo.com>
55958
55959         * lib/xgethostname.c: Don't include error.h (not used).
55960
55961         * lib/getpass.h: Add.
55962         * lib/getpass.c: Include getpass.h first.
55963
55964 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55965
55966         * lib/xalloc-die.c: New file.
55967         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55968         All uses removed.
55969         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55970         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55971         xalloc-die.c.
55972         (_, N_, xalloc_die): Move to xalloc-die.c.
55973         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55974         so that we needn't mess with xalloc_msg_memory_exhausted.
55975
55976         * lib/sha1.h: Renamed from sha.h.
55977         (SHA1_H): Renamed from _SHA_H.
55978         (sha1_ctx): Renamed from sha_ctx.
55979         (sha1_init_ctx): Renamed from sha_init_ctx.
55980         (sha1_process_block): Renamed from sha_process_block.
55981         (sha1_process_bytes): Renamed from sha_process_bytes.
55982         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55983         (sha1_read_ctx): Renamed from sha_read_ctx.
55984         (sha1_stream): Renamed from sha_stream.
55985         (sha1_buffer): Renamed from sha_buffer.
55986         * lib/sha1.c: Likewise; renamed from sha.c.
55987         Do not include <sys/types.h>.
55988         Include <stddef.h> rather than <stdlib.h>.
55989
55990 2004-08-08  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55993         FILESYSTEM_PREFIX_LEN.
55994         * lib/progreloc.c: Likewise.
55995         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55996
55997 2004-08-06  Simon Josefsson  <jas@extundo.com>
55998
55999         * modules/progname (Depends-on): Don't depend on stdbool.
56000
56001 2004-08-06  Simon Josefsson  <jas@extundo.com>
56002
56003         * modules/getsubopt: New file.
56004         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56005         getsubopt.
56006
56007 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56008
56009         More merge from coreutils.
56010
56011         * m4/utimens.m4, m4/utimecmp.m4: New files.
56012         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
56013         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
56014         prereq.m4, sha.m4: Import changes from coreutils.
56015
56016 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56017
56018         More merge from coreutils.
56019         * modules/raise, modules/readtokens0, modules/utimens:
56020         * modules/utimecmp, module/xnanosleep: New files.
56021         * modules/strftime: Add lib/strftime.h.
56022         Change include from <time.h> to "strftime.h".
56023         * modules/yesno: Add lib/yesno.h.
56024         * modules/backupfile: Remove lib/addext.c.
56025         * modules/euidaccess: Add stat-macros.h.
56026         * modules/canonicalize, modules/euidaccess,
56027         modules/filemode, modules/lchown, modules/makepath,
56028         modules/rmdir, modules/stat: Likewise.
56029
56030 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56031
56032         Merge from tar.
56033         * lib/argp-help.c (make_hol, hol_append): Don't assume that
56034         SIZE_MAX is a valid preprocessor constant.
56035         (__argp_basename): Change from "#ifndef _LIBC"
56036         to "#ifndef __argp_short_program_name", so that
56037         we don't compile these functions for tar.
56038
56039         More merges from coreutils.
56040         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
56041         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
56042         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
56043         * lib/addext.c: Remove; no longer needed.
56044         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
56045         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
56046         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
56047         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
56048         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
56049         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
56050         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
56051         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
56052         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
56053         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
56054         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
56055         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
56056         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
56057         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
56058         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
56059         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
56060         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
56061         Import changes from coreutils.
56062
56063 2004-08-05  Simon Josefsson  <jas@extundo.com>
56064
56065         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
56066
56067 2004-08-05  Simon Josefsson  <jas@extundo.com>
56068
56069         * m4/getsubopt.m4: New file.
56070
56071 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
56072
56073         Merge from coreutils.
56074
56075         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
56076         * m4/getcwd-path-max.m4: New files.
56077
56078         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
56079         FILESYSTEM_PREFIX_LEN ->
56080         FILE_SYSTEM_PREFIX_LEN.
56081         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
56082         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
56083         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
56084         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
56085
56086         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
56087         prerequisite modules now handle the DOS stuff.
56088         Don't check for unistd.h.
56089
56090 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
56091
56092         Merge from coreutils.
56093
56094         * lib/.gdb-history: Remove; this doesn't belong here.
56095
56096         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
56097         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
56098         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
56099         * lib/getcwd.c: New files.
56100
56101         * lib/dirname.h: Include <stdbool.h>.
56102         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
56103         for consistency with POSIX terminology.  All uses changed.
56104         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
56105         (strip_trailing_slashes): Use bool for booleans.
56106         * lib/stripslash.c (strip_trailing_slashes): Likewise.
56107
56108         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
56109         sometimes returns a positive errno value even when it succeeds.
56110         (print_errno_message) [!LIBC]: Fall back on strerror if
56111         __strerror_r fails.
56112
56113         * lib/path-concat.c (mempcpy): Don't define if a system header defines
56114         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
56115         (longest_relative_suffix): New function.
56116         (path_concat): Use it.  Assume first argument is not NULL.
56117         Port to DOS.  Omit redundant separators.
56118         Report an error instead of returning NULL.
56119         Use mempcpy instead of memcpy.
56120         (xpath_concat): Remove: not declared or used.
56121
56122         * lib/same.h: Include <stdbool.h>
56123         (same_name): Return bool, not int.
56124         * lib/same.c (same_name): Likewise.
56125         (errno): Don't declare; we assume C89 or better now.
56126
56127         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
56128         if not already defined.
56129
56130         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
56131         * lib/dup-safer.c (errno): Likewise.
56132
56133 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
56134
56135         Merge from coreutils.
56136         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
56137         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
56138         * modules/path-concat: Don't depend on strdup.
56139
56140 2004-08-03  Simon Josefsson  <jas@extundo.com>
56141
56142         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
56143         * lib/progname.h: Don't include stdbool.h.
56144
56145 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
56146
56147         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
56148         * MODULES.html.sh (func_all_modules): Remove fatal.
56149
56150 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
56151
56152         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
56153
56154 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
56155
56156         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
56157         working.
56158
56159 2004-08-02  Simon Josefsson  <jas@extundo.com>
56160
56161         * lib/getsubopt.h: New file, with comments from Bruno Haible.
56162         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
56163         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
56164
56165 2004-08-01  Simon Josefsson  <jas@extundo.com>
56166
56167         * lib/xgetdomainname.c: Include stdlib.h, for free().
56168
56169 2004-07-19  Bruno Haible  <bruno@clisp.org>
56170
56171         * MODULES.html.sh (func_all_modules): Add dummy.
56172
56173 2004-07-16  Simon Josefsson  <jas@extundo.com>
56174
56175         * modules/dummy: New file.
56176
56177 2004-07-16  Simon Josefsson  <jas@extundo.com>
56178
56179         * lib/dummy.c: New file.
56180
56181 2004-07-16  Bruno Haible  <bruno@clisp.org>
56182
56183         * lib/backupfile.h: Add extern "C" for C++.
56184         * lib/closeout.h: Likewise.
56185         * lib/copy-file.h: Likewise.
56186         * lib/findprog.h: Likewise.
56187         * lib/full-write.h: Likewise.
56188         * lib/pathname.h: Likewise.
56189         * lib/progname.h: Likewise.
56190         * lib/stpcpy.h: Likewise.
56191         * lib/stpncpy.h: Likewise.
56192         * lib/strcase.h: Likewise.
56193         * lib/strstr.h: Likewise.
56194         * lib/xalloc.h: Likewise.
56195
56196         * lib/mbswidth.h: Add extern "C" for C++.
56197         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
56198
56199 2004-07-13  Robert Millan  <robertmh@gnu.org>
56200
56201         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
56202
56203 2004-07-09  Simon Josefsson  <jas@extundo.com>
56204
56205         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
56206         failed without this.)
56207
56208 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56209
56210         * modules/chown (Files): Add lib/fchown-stub.c, since
56211         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
56212
56213 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56214
56215         * lib/fchown-stub.c: New file.
56216
56217 2004-06-24  Jim Meyering  <jim@meyering.net>
56218
56219         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
56220
56221 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56222
56223         * modules/argz: Omit "#include".
56224
56225         * MODULES.html.sh (func_all_modules): Add calloc, to match
56226         2004-06-01 addition of calloc module.
56227
56228 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56229
56230         * m4/argz.m4: New file, which is autoupdated from libtool.
56231
56232 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56233
56234         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
56235         libtool.
56236
56237 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56238
56239         * config/srclist-update: Don't insist on "USA." before the
56240         close-comment, as libtool omits the period and puts the */ on a
56241         separate line.
56242         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
56243         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
56244
56245 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
56246
56247         * modules/argz: New file.
56248         * MODULES.html.sh (func_all_modules): Add argz.
56249
56250 2004-06-12  Jim Meyering  <jim@meyering.net>
56251         and  Paul Eggert  <eggert@cs.ucla.edu>
56252
56253         * modules/hash (Files): Add lib/xalloc.h.
56254         * modules/pipe (Depends-on): Add wait-process.
56255         * modules/stat (Depends-on): Add xalloc.
56256         * modules/userspec (Files): Add lib/userspec.h.
56257         * modules/xstrto
56258
56259         Upgrade from gettext-0.13.
56260         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
56261         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
56262         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
56263
56264 2004-06-10  Jim Meyering  <jim@meyering.net>
56265
56266         * lib/calloc.c: New file.
56267
56268 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56269
56270         * lib/getdate.y (yylex): Allow space between sign and number.
56271         Problem reported by Dan Jacobson.
56272
56273 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
56274
56275         Merge from coreutils CVS.
56276
56277         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
56278         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
56279         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
56280         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
56281         xstrtol.m4: Fix copyright date and/or serial number.
56282
56283         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
56284         See if we need an fchown replacement.
56285         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
56286         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
56287         and use the replacement function if we detect either defect.
56288
56289         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
56290         gl_UTIMECMP.
56291
56292 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
56293         and  Jim Meyering  <jim@meyering.net>
56294
56295         Merge from coreutils CVS.
56296
56297         * lib/stat-macros.h: New file, with contents from file-type.h
56298         and coreutils' system.h.
56299         * lib/file-type.c: Include "stat-macros.h".
56300         * lib/file-type.h (file_type): Move all macro definitions to new file,
56301         stat-macros.h.
56302
56303         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
56304         Wrap old code with this conditional.
56305         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
56306         function that does not dereference symlinks.
56307         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
56308
56309         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
56310         dependency problems.
56311         (xreadlink): Accept new arg SIZE, for efficiency.
56312         All decls and uses changed.
56313         * lib/xreadlink.h: Include <stddef.h>, for size_t.
56314
56315         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
56316         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
56317
56318         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
56319         sysexits.h.
56320
56321 2004-06-01  Jim Meyering  <jim@meyering.net>
56322
56323         * m4/calloc.m4: New file.
56324
56325 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
56326
56327         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
56328         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
56329         Also, fix a typo in a diagnostic.
56330
56331 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
56332
56333         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
56334         or AC_FUNC_REALLOC.
56335
56336 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
56337
56338         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
56339         macros to be defined.
56340         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
56341         the allocator returns NULL because the requested size is zero.
56342
56343 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56344
56345         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
56346         var.  Add comment explaining why libc still defines it.  This
56347         merges the following patch from glibc:
56348         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
56349
56350 2004-05-20  Andreas Schwab  <schwab@suse.de>
56351
56352         * m4/free.m4: Replace free if it not known to work, not the other
56353         way round.
56354
56355 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56356
56357         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
56358         present in glibc since revision 1.1 of this file.
56359         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
56360         obstack_alignment_mask, obstack_alloc, obstack_base,
56361         obstack_blank, obstack_blank_fast, obstack_chunk_size,
56362         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
56363         obstack_grow0, obstack_init, obstack_int_grow,
56364         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
56365         obstack_next_free, obstack_object_size, obstack_ptr_grow,
56366         obstack_ptr_grow_fast, obstack_room): Remove declarations of
56367         nonexistent functions.
56368
56369 2004-05-18  Karl Berry  <karl@gnu.org>
56370
56371         * config/srclist.txt: break link for vasnprintf.c.
56372
56373 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56374
56375         Port obstack to the AS/400, where pointers are 16 bytes wide and
56376         you cannot cast an integer to a valid pointer.  This patch is
56377         currently waiting to be integrated into glibc; see
56378         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
56379
56380         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
56381         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
56382         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
56383         (struct obstack): temp member is now a union of a pointer and
56384         an integer, instead of an integer.  All integer uses changed.
56385         This does not affect the physical layout of struct obstack,
56386         except on hosts (like the AS/400) where the size or alignment of
56387         void * is greater than that of ptrdiff_t.
56388         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
56389         __STDC__)]: Store temporary in pointer member of union, not
56390         integer member.
56391         * lib/obstack.c: Include <stddef.h>, for offsetof.
56392         (struct fooalign): Remove; it doesn't need a name.
56393         (union fooround): Change double to long double, and add void *.
56394         (DEFAULT_ALIGNMENT): Use offsetof to compute.
56395         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
56396         not a macro.  Hence the values are always int; so remove all
56397         casts-to-int in uses.
56398
56399 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56400
56401         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
56402         we can get this patch merged into glibc.
56403
56404 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56405             Paul Eggert  <eggert@cs.ucla.edu>
56406
56407         * m4/argp: Depend on alloca.
56408
56409 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56410             Paul Eggert  <eggert@cs.ucla.edu>
56411
56412         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
56413         freecoding.
56414
56415 2004-05-17  Bruno Haible  <bruno@clisp.org>
56416
56417         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
56418         precision that consists of a '.' followed by an empty digit string.
56419         Patch by Tor Lillqvist <tml@iki.fi>.
56420
56421 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56422
56423         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
56424         for backward compatibility with older code.  We need our own
56425         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
56426         it under some other name, and our alloca.h will define it.
56427
56428 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56429             Derek Price  <derek@ximbiot.com>
56430
56431         * lib/alloca.c: Include <alloca.h>, to get our interface.
56432         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
56433         include <alloca.h> first.  Use C89 prototype for alloca; this
56434         requires including <stddef.h> for size_t.  Use extern "C" if C++.
56435         Use #elif for simplicity, since we can assume C89 now.
56436         Don't try to source the system alloca.h since it will not be found
56437         and to prevent recursively including its replacement.
56438         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
56439         * lib/regex.c: Likewise.
56440
56441 2004-05-16  Derek Price  <derek@ximbiot.com>
56442             Paul Eggert  <eggert@cs.ucla.edu>
56443
56444         getline cleanup.  This changes the getndelim2 API: both order of
56445         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
56446         no delimiter).
56447
56448         * lib/getline.c: Don't include stddef.h or stdio.h, since our
56449         interface does that.
56450         (getline): Always use getdelim, so that we don't have two
56451         copies of this code.
56452         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
56453         if available.
56454         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
56455         (GETNDELIM2_MAXIMUM): New macro.
56456         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
56457         instead of the old practice of delim2==0.  All callers changed.
56458         Return -1 on overflow, instead of returning junk.
56459         Do not set *linesize unless allocation succeeds.
56460         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
56461         that we include sys/types.h.
56462         * lib/getnline.h: Likewise.
56463         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
56464         (getndelim2): Reorder arguments.
56465         * lib/getnline.c (getnline, getndelim):
56466         Don't discard the NMAX argument.
56467         (getnline): Invoke getndelim, to avoid code duplication.
56468         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
56469         of (size_t) -1 by callers of the getnline family.
56470
56471 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56472
56473         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
56474         Check for gettimeofday.
56475         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
56476         Check for settimeofday, stime.
56477
56478 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56479
56480         * lib/nanosleep.c (suspended): Change its type from int to
56481         sig_atomic_t volatile.
56482         (first_call): Make it private to rpl_nanosleep, and have it
56483         be zero initially as that's a bit faster.
56484         (my_usleep): Round up fractional times instead of truncating them,
56485         as this is the usual meaning for 'sleep'.
56486
56487         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
56488         doesn't work.
56489         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
56490         (ENOSYS): Define if not defined.
56491         (settime): Fall back on stime if it exists and settimeofday fails.
56492         But don't bother with fallbacks if a method fails with errno == EPERM.
56493
56494 2004-05-11  Jim Meyering  <jim@meyering.net>
56495
56496         Prior to this change, the save_cwd caller required read access to the
56497         current directory on most systems (ones with the fchdir function).
56498
56499         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
56500         fails, try write-only, and finally, resort to using xgetcwd.
56501
56502 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56503
56504         * lib/obstack.c, obstack.h: Import changes from libc.
56505
56506 2004-04-28  Bruno Haible  <bruno@clisp.org>
56507
56508         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
56509         also implicitly appends .exe to executables.
56510         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
56511         accepts Windows pathnames.
56512         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56513         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56514         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56515         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56516         Reported by Derek Robert Price <derek@ximbiot.com>.
56517
56518 2004-04-21  Karl Berry  <karl@gnu.org>
56519
56520         * config/srclist.txt (localcharset.c): break sync.
56521
56522 2004-04-20  Paul Eggert  <eggert@twinsun.com>
56523
56524         * m4/host-os.m4: Add a copyright notice.
56525
56526 2004-04-20  Jim Meyering  <jim@meyering.net>
56527
56528         Change UTILS_ to gl_ in AC_DEFINE'd names.
56529         Change utils_- and jm_-prefixed variables, too.
56530         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
56531         UTILS_FUNC_MKDIR_TRAILING_SLASH.
56532         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
56533
56534         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
56535         Don't emit trailing blanks.
56536         Also rename jm_-prefixed variables to have gl_ prefix.
56537
56538         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
56539         Also rename jm_-prefixed variables to have gl_ prefix.
56540
56541         * m4/jm-macros.m4: Reflect the renamings.
56542         * m4/prereq.m4: Likewise.
56543
56544 2004-04-20  Jim Meyering  <jim@meyering.net>
56545
56546         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
56547         memory.
56548
56549 2004-04-20  Jim Meyering  <jim@meyering.net>
56550             Bruno Haible  <bruno@clisp.org>
56551
56552         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
56553         memory when realloc fails.
56554
56555 2004-04-19  Jim Meyering  <jim@meyering.net>
56556
56557         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
56558         now that readutmp.c may call `free (0)'.
56559
56560 2004-04-19  Bruno Haible  <bruno@clisp.org>
56561
56562         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
56563         * m4/inttypes_h.m4: Likewise.
56564         * m4/stdint_h.m4: Likewise.
56565         * m4/intmax_t.m4: Likewise.
56566         * m4/uintmax_t.m4: Likewise.
56567
56568 2004-04-18  Jim Meyering  <jim@meyering.net>
56569
56570         * m4/prereq.m4: Don't forbid jm_ prefix.
56571
56572         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
56573         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
56574         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
56575         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
56576         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
56577         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
56578         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
56579         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
56580         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
56581         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
56582         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
56583         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
56584         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
56585         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
56586         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
56587         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
56588         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
56589         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
56590         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
56591
56592 2004-04-18  Jim Meyering  <jim@meyering.net>
56593
56594         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
56595         failure, don't leak memory and do call END_UTMP_ENT.
56596
56597 2004-04-16  Jim Meyering  <jim@meyering.net>
56598
56599         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
56600         coreutils' stat program.
56601         (gl_PREREQ): Don't require jm_PREREQ_STAT.
56602
56603 2004-04-11  Paul Eggert  <eggert@twinsun.com>
56604
56605         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
56606         C89.
56607         (CHAR_BIT): Remove, since we assume C89.
56608         Include <stdint.h> if available, as per current Autoconf CVS advice.
56609
56610 2004-03-31  Jim Meyering  <jim@meyering.net>
56611
56612         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
56613         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
56614         * m4/xalloc.m4: Likewise.
56615
56616 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56617
56618         Merge from coreutils.
56619
56620         * m4/inttostr.m4: New file.
56621         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56622         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56623         Require gl_CLOCK_TIME.
56624         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56625
56626 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56627
56628         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56629         not bool, to be more consistent with Unix conventions.
56630         Suggested by Bruno Haible.
56631
56632         Merge from coreutils.
56633
56634         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56635         * lib/umaxtostr.c: New files.
56636
56637         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56638         the usual <time.h> dance.
56639         (get_date): Change signature to support fractional time stamps.
56640         All callers changed.
56641         * lib/getdate.y: Include "getdate.h" first, as we can now
56642         assume C89 and don't need to worry about 'const'.
56643         Similarly, include "unlocked-io.h" near start, not in middle.
56644         Include <limits.h>.
56645         (textint.value): Use long int rather than int.
56646         (textint.digits): Use size_t rather than int.
56647         (BILLION, LOG10_BILLION): New constants.
56648         (parser_control): New member rel_ns.  Members day_ordinal,
56649         time_zone, month, day, hour, minutes, rel_year, rel_month,
56650         rel_day, rel_hour, rel_minutes, rel_seconds
56651         are now long int, not int.  Member seconds is now struct timespec,
56652         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56653         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56654         not int.
56655         (%union.intval): Now long int, not int.
56656         New member timespec.
56657         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56658         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56659         (spec): Now is a timespec or an item list.
56660         (timespec, items): New nonterminals.
56661         (time, rel, relunit, number, get_date):
56662         Add support for fractional seconds.
56663         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56664         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56665         (to_hour): First arg is now long int, not int.
56666         (to_year): Returns long int, not int.
56667         Don't treat year -70 like 70.
56668         (tm_diff): Returns long int, not int.
56669         (lookup_word): Use bool instead of int when appropriate.
56670         (yylex): Use size_t for count, not int.
56671         Detect overflow when parsing large integer constants.
56672         Add support for fractions.
56673         (get_date): Make pointers 'const' if possible.
56674         Use more-portable code to detect integer overflow.
56675         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56676         Don't use ctime; it's not reliable if the year has >4 digits.
56677
56678         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56679         This is for compatibility with BSD.
56680
56681         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56682         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56683         From coreutils' system.h.
56684
56685         * lib/userspec.c: Don't include "posixver.h".
56686         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56687         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56688         compatible extension.  Simplify code by removing a boolean int
56689         that was always nonzero if a string was nonnull.
56690
56691 2004-03-30  Jim Meyering  <jim@meyering.net>
56692
56693         Merge from coreutils.
56694
56695         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56696         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56697         on some systems one must include <grp.h> before it.
56698         Reported by Christian Krackowizer.
56699
56700 2004-03-30  Jim Meyering  <jim@meyering.net>
56701
56702         Merge from coreutils.
56703
56704         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56705
56706         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56707         an empty input stream.
56708
56709         * lib/readtokens.c: Include <stdbool.h>.
56710         (readtoken): Use `size_t' rather than int/long.
56711         All callers adjusted.
56712         Use `bool' rather than `int' where appropriate.
56713         Use memset rather than an explicit loop.
56714         Use x2nrealloc rather than xrealloc.
56715         Allow the use of `\0' as a delimiter.
56716         (readtokens): Likewise.
56717         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56718
56719 2004-03-30  Jim Meyering  <jim@meyering.net>
56720
56721         * m4/realloc.m4: Remove file, since now it does no more than
56722         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56723         the `configure.ac' section of module/realloc.
56724         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56725
56726 2004-03-30  Bruno Haible  <bruno@clisp.org>
56727
56728         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56729         nonnull.
56730
56731 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56732
56733         Merge changes to getloadavg.c from coreutils and Emacs.
56734
56735         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56736         Define to an expression, not to the empty string.
56737         Include cloexec.h and xalloc.h.
56738         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56739         Use set_cloexec_flag rather than rolling our own.
56740         * lib/cloexec.c, lib/cloexec.h: New files.
56741
56742 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56743
56744         * m4/cloexec.m4: New file.
56745
56746 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56747
56748         * lib/getopt.h: Sync with libc CVS.
56749
56750 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56751             Bruno Haible  <bruno@clisp.org>
56752
56753         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56754         mbswidth.
56755
56756 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56757             Bruno Haible  <bruno@clisp.org>
56758
56759         * lib/mbswidth.h: Include <wchar.h> only if
56760         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56761         <wchar.h>.
56762         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56763
56764 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56765
56766         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56767         Sync with libc CVS.
56768         * lib/getopt_int.h: New file, also synced from libc.
56769
56770 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56771
56772         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56773         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56774         Bring back getopt.c, getopt.h, getopt1.c.
56775
56776 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56777
56778         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56779         All uses changed.  Check for sa_sigaction member; this fixes
56780         a bug first reported by Jason Andrade in
56781         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56782
56783 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56784
56785         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56786         '#if' expressions.  Unlike the code it replaces, it does not
56787         depend on (defined _SC_PAGESIZE).  However, it does depend on
56788         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56789         first reported by Jason Andrade in
56790         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56791
56792 2004-02-25  Simon Josefsson  <jas@extundo.com>
56793
56794         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56795
56796 2004-02-25  Simon Josefsson  <jas@extundo.com>
56797
56798         * lib/strdup.h: New file.
56799         * lib/strdup.c: Include it.
56800         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56801         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56802
56803 2004-02-23  Karl Berry  <karl@gnu.org>
56804
56805         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56806         (from fencepost.gnu.org:/gd/gnuorg).
56807
56808 2004-02-23  Karl Berry  <karl@gnu.org>
56809
56810         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56811         * config/srclist.txt: add maintain/standards documents.
56812
56813 2004-02-18  Bruno Haible  <bruno@clisp.org>
56814
56815         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56816         Reported by Derek Robert Price <derek@ximbiot.com>.
56817
56818 2004-02-16  Karl Berry  <karl@gnu.org>
56819
56820         * config/mkinstalldirs, install-sh: update from automake.
56821
56822 2004-02-06  Karl Berry  <karl@gnu.org>
56823
56824         * m4/po.m4: update from gettext 0.14.1.
56825
56826 2004-02-06  Karl Berry  <karl@gnu.org>
56827
56828         * lib/config.charset: update from gettext 0.14.1.
56829
56830 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56831
56832         Add comments and code, prompted by suggestions from Bruno Haible
56833         for sh-quote.
56834         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56835         describing the enum quoting_style values.
56836         * lib/quotearg.c (quotearg_alloc): New function.
56837         (quotearg_buffer_restyled): Treat lone { and } as special.
56838         Treat = as special.  Work around bug with older shells
56839         that "see" a '\' that is really the 2nd byte of a multibyte char.
56840         Quote empty string with shell_quoting_style.
56841
56842 2004-02-03  Bruno Haible  <bruno@clisp.org>
56843
56844         * m4/pipe.m4: New file, from GNU gettext.
56845
56846 2004-02-03  Bruno Haible  <bruno@clisp.org>
56847
56848         * lib/pipe.h: New file, from GNU gettext.
56849         * lib/pipe.c: New file, from GNU gettext.
56850
56851 2004-01-27  Bruno Haible  <bruno@clisp.org>
56852
56853         * m4/execute.m4: New file, from GNU gettext.
56854
56855 2004-01-27  Bruno Haible  <bruno@clisp.org>
56856
56857         * lib/execute.h: New file, from GNU gettext.
56858         * lib/execute.c: New file, from GNU gettext.
56859         * lib/w32spawn.h: New file, from GNU gettext.
56860
56861 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56862
56863         Merge from diffutils.
56864
56865         * lib/file-type.c (file_type): Add typed memory objects.
56866         * lib/file-type.h (S_TYPEISTMO): New macro.
56867
56868         * lib/c-stack.h (c_stack_action): Remove argv argument.
56869         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56870         (die): Don't calculate message unless segv_action returns.
56871         (get_stack_location, min_address_from_argv, max_address_from_argv,
56872         volatile stack_base, volatile_stack_size): Remove.
56873         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56874         that every segmentation violation is a stack overflow.  (Ouch!)
56875         See Debian bug 136249 (still outstanding) for more info about why
56876         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56877
56878 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56879
56880         Exit-status fix from coreutils.
56881
56882         Use exit_failure consistently in place of EXIT_FAILURE,
56883         so that program exit statuses are consistent on failure.
56884
56885         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56886         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56887         * lib/argmatch.h: Comment fix to match the above.
56888         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56889         Now a macro referring to exit_failure, instead of a separate
56890         variable.  Include "exitfail.h" to get it.
56891         * lib/xstrtol.h: Include "exitfail.h".
56892         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56893
56894         * lib/long-options.c (parse_long_options): Use prototype
56895         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56896         for clarity.
56897
56898 2004-01-21  Jim Meyering  <jim@meyering.net>
56899
56900         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56901         so as not to conflict with a different-sized __mktime_internal
56902         function in GNU libc.
56903         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56904         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56905
56906 2004-01-20  Karl Berry  <karl@gnu.org>
56907
56908         * config/config.guess: update from config.
56909
56910         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56911
56912 2004-01-20  Bruno Haible  <bruno@clisp.org>
56913
56914         Safer stack allocation.
56915         * lib/setenv.c: Include allocsa.h.
56916         (alloca): Remove fallback definition.
56917         (freea): Remove macro.
56918         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56919         instead of freea.
56920
56921 2004-01-20  Bruno Haible  <bruno@clisp.org>
56922
56923         * m4/eealloc.m4: New file, from GNU gettext.
56924
56925 2004-01-20  Bruno Haible  <bruno@clisp.org>
56926
56927         * m4/allocsa.m4: New file, from GNU gettext.
56928
56929 2004-01-20  Bruno Haible  <bruno@clisp.org>
56930
56931         * lib/xallocsa.h: New file, from GNU gettext.
56932         * lib/xallocsa.c: New file, from GNU gettext.
56933
56934 2004-01-20  Bruno Haible  <bruno@clisp.org>
56935
56936         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56937
56938 2004-01-20  Bruno Haible  <bruno@clisp.org>
56939
56940         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56941         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56942         specially.
56943
56944 2004-01-20  Bruno Haible  <bruno@clisp.org>
56945
56946         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56947         patch.
56948
56949 2004-01-20  Bruno Haible  <bruno@clisp.org>
56950
56951         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56952
56953 2004-01-20  Bruno Haible  <bruno@clisp.org>
56954
56955         * lib/eealloc.h: New file.
56956
56957 2004-01-20  Bruno Haible  <bruno@clisp.org>
56958
56959         * lib/binary-io.h: Avoid warnings on Cygwin.
56960
56961 2004-01-20  Bruno Haible  <bruno@clisp.org>
56962
56963         * lib/allocsa.h: New file, from GNU gettext.
56964         * lib/allocsa.c: New file, from GNU gettext.
56965
56966 2004-01-18  Karl Berry  <karl@gnu.org>
56967
56968         * doc/gpl.texi, doc/lgpl.texi: new files.
56969
56970 2004-01-18  Karl Berry  <karl@gnu.org>
56971
56972         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56973         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56974
56975 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56976
56977         Merge from coreutils.
56978
56979         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56980         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56981         (gl_DEFAULT_POSIX2_VERSION): Move
56982         the documentation from 'configure' into 'config.hin',
56983         so that 'configure --help' isn't burdened by it and
56984         we don't have to worry about its formatting there.
56985         Reword the documentation so that it's more succinct
56986         and can be run together into a single paragraph.
56987         * m4/same.m4 (gl_SAME): Check for pathconf.
56988
56989 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56990
56991         Merge from coreutils.
56992
56993         * lib/posixver.c: Include posixver.h.
56994
56995         * lib/same.c: Include <stdbool.h>, <limits.h>.
56996         (_POSIX_NAME_MAX): Define if not defined.
56997         (MIN): New macro.
56998         (same_name): If file names are silently truncated, report
56999         that the file names are the same if they are the same after
57000         the silent truncation.
57001
57002         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
57003         conversion function.
57004         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
57005         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
57006         longer needed.
57007
57008 2004-01-15  Jim Meyering  <jim@meyering.net>
57009
57010         Merge from coreutils.
57011
57012         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
57013         if no library is required.
57014         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
57015         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
57016         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
57017         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
57018         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
57019         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
57020         value, $ac_cv_search_crypt, if it's "none required".
57021         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
57022         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
57023         not gl_FUNC_GETLOADAVG.
57024         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
57025         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
57026
57027 2004-01-15  Jim Meyering  <jim@meyering.net>
57028
57029         Merge from coreutils.
57030
57031         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
57032         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
57033         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
57034
57035         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
57036         optional configure-time default.
57037
57038         * lib/version-etc.c (version_etc_copyright): Update copyright date.
57039
57040         * lib/xreadlink.c (xreadlink): Correct outdated comment.
57041
57042 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
57043
57044         Merge from coreutils.
57045
57046         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
57047         value, $ac_cv_search_nanosleep, if it's "none required".
57048
57049 2004-01-14  Paul Eggert  <eggert@twinsun.com>
57050
57051         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
57052         with like-named macro in fnmatch.c.
57053         (EXT): Use an internal constant instead.
57054
57055         Merge fnmatch patches from glibc.
57056         * lib/fnmatch.c (mbsinit): Remove define.
57057         Add libc_hidden_ver (__fnmatch, fnmatch).
57058         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
57059         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
57060
57061 2004-01-14  Karl Berry  <karl@gnu.org>
57062
57063         * config/install-sh: update from automake.
57064
57065 2004-01-13  Karl Berry  <karl@gnu.org>
57066
57067         * config/install-sh: update from automake.
57068
57069 2004-01-09  Karl Berry  <karl@gnu.org>
57070
57071         * config/install-sh: update from automake.
57072
57073 2004-01-05  Karl Berry  <karl@gnu.org>
57074
57075         * config/config.{sub,guess}: update from config.
57076
57077 2003-12-31  Karl Berry  <karl@gnu.org>
57078
57079         * config/depcomp: update from automake.
57080
57081 2003-12-14  Karl Berry  <karl@gnu.org>
57082
57083         * lib/config.charset: update from gettext-runtime.
57084
57085 2003-12-03  Paul Eggert  <eggert@twinsun.com>
57086
57087         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
57088         Bug reported by Alfred M. Szmidt.
57089
57090 2003-12-03  Bruno Haible  <bruno@clisp.org>
57091
57092         * m4/gettext.m4: Upgrade from gettext-0.13.
57093         * m4/po.m4: Upgrade from gettext-0.13.
57094         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
57095         * m4/intmax.m4: New file, from gettext-0.13.
57096         * m4/printf-posix.m4: New file, from gettext-0.13.
57097
57098 2003-11-29  Karl Berry  <karl@gnu.org>
57099
57100         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
57101
57102 2003-11-25  Paul Eggert  <eggert@twinsun.com>
57103             Bruno Haible  <bruno@clisp.org>
57104
57105         * lib/printf-parse.h: Don't include sys/types.h.
57106         (ARG_NONE): New macro.
57107         (char_directive): Change type of *arg_index fields to size_t.
57108         * lib/printf-parse.c: Don't include sys/types.h.
57109         (SSIZE_MAX): Remove macro.
57110         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
57111         Remove unnecessary overflow check.
57112         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
57113         fields.
57114
57115 2003-11-25  Bruno Haible  <bruno@clisp.org>
57116
57117         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
57118
57119 2003-11-25  Bruno Haible  <bruno@clisp.org>
57120
57121         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
57122         gt_TYPE_SSIZE_T.
57123
57124 2003-11-24  Paul Eggert  <eggert@twinsun.com>
57125
57126         * modules/alloca: Remove dependency on xalloc.
57127
57128 2003-11-24  Paul Eggert  <eggert@twinsun.com>
57129
57130         * lib/alloca.c: Remove dependency on xalloc module.
57131         (xalloc_die): Remove.
57132         (memory_full) [!defined emacs]: New macro.
57133         [!defined emacs]: Don't include xalloc.h.
57134         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
57135         address arithmetic overflows.  Change datatypes a bit to avoid
57136         unnecessary casts.
57137
57138 2003-11-22  Jim Meyering  <jim@meyering.net>
57139
57140         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
57141         s/size/size_t/.
57142
57143 2003-11-21  Karl Berry  <karl@gnu.org>
57144
57145         * config/config.{sub,guess}: update from config.
57146
57147 2003-11-18  Karl Berry  <karl@gnu.org>
57148
57149         * config/config.{sub,guess}: update from config.
57150
57151         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
57152
57153 2003-11-17  Paul Eggert  <eggert@twinsun.com>
57154
57155         * README: Mention that S+T cannot overflow if S is the size of
57156         an existing object and T is sufficiently small.
57157
57158 2003-11-17  Jim Meyering  <jim@meyering.net>
57159
57160         On systems without utime and without a utimes function capable of
57161         dealing with a NULL struct utimbuf* argument, this utime replacement
57162         could -- in unusual circumstances -- leak a file descriptor.
57163         * lib/utime.c: Include <unistd.h> and <errno.h>.
57164         (utime_null): Be sure to close `fd' and to preserve errno.
57165         Reported by Geoff Collyer via Arnold Robbins.
57166
57167 2003-11-17  Bruno Haible  <bruno@clisp.org>
57168
57169         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
57170         (Depends-on): Add xsize.
57171
57172 2003-11-17  Bruno Haible  <bruno@clisp.org>
57173
57174         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
57175
57176 2003-11-17  Bruno Haible  <bruno@clisp.org>
57177
57178         * lib/vasnprintf.c (alloca): Remove fallback definition.
57179         (freea): Remove definition.
57180         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
57181         Reported by Paul Eggert.
57182
57183 2003-11-16  Paul Eggert  <eggert@twinsun.com>
57184             Bruno Haible  <bruno@clisp.org>
57185
57186         Protect against address arithmetic overflow.
57187         * lib/printf-args.h: Include stddef.h.
57188         (arguments): Change type of field 'count' to size_t.
57189         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
57190         'unsigned int' where appropriate.
57191         * lib/printf-parse.h: Include sys/types.h.
57192         (char_directive): Change type of *arg_index fields to ssize_t.
57193         (char_directives): Change type of fields 'count', max_*_length to
57194         size_t.
57195         * lib/printf-parse.c: Include sys/types.h and xsize.h.
57196         (SSIZE_MAX): Define fallback value.
57197         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
57198         instead of 'int' where appropriate. Check a_allocated, d_allocated
57199         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
57200         * lib/vasnprintf.c: Include xsize.h.
57201         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
57202         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
57203         overflow. Avoid wraparound when converting a width or precision from
57204         decimal to binary.
57205
57206 2003-11-16  Bruno Haible  <bruno@clisp.org>
57207
57208         Update from GNU gettext.
57209         * lib/printf-parse.c: Generalize to it can be compiled for wide
57210         strings.
57211         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
57212         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
57213         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
57214         SNPRINTF): New macros.
57215         Don't include <alloca.h> if the file is used inside libintl.
57216         (local_wcslen): New function, for Solaris 2.5.1.
57217         (VASNPRINTF): Use it instead of wcslen.
57218
57219 2003-11-16  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/xsize.h (xmax): New function.
57222         (xsum, xsum3, xsum4): Declare as "pure" functions.
57223
57224 2003-11-12  Paul Eggert  <eggert@twinsun.com>
57225
57226         * modules/xalloc (Files): Undo latest change, since xalloc.h
57227         no longer needs SIZE_MAX or PTRDIFF_MAX.
57228
57229 2003-11-12  Paul Eggert  <eggert@twinsun.com>
57230
57231         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
57232         gl_PTRDIFF_MAX.
57233
57234 2003-11-12  Paul Eggert  <eggert@twinsun.com>
57235
57236         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
57237         "return", to pacify some unknown compiler.  Problem reported
57238         by Joerg Schilling.
57239
57240 2003-11-12  Paul Eggert  <eggert@twinsun.com>
57241
57242         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
57243         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
57244         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
57245         heuristic is just as accurate as far as we know, and it removes a
57246         dependency on size_max.m4 and ptrdiff_max.m4.
57247
57248 2003-11-11  Bruno Haible  <bruno@clisp.org>
57249
57250         * modules/xsize (Files): Add m4/size_max.m4.
57251         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
57252
57253 2003-11-11  Bruno Haible  <bruno@clisp.org>
57254
57255         * m4/size_max.m4: New file.
57256         * m4/ptrdiff_max.m4: New file.
57257         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
57258         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
57259         (gl_XALLOC): Invoke it.
57260
57261 2003-11-11  Bruno Haible  <bruno@clisp.org>
57262
57263         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
57264         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
57265         defined.
57266
57267 2003-11-10  Paul Eggert  <eggert@twinsun.com>
57268
57269         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
57270         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
57271         rejected some allocations of exactly SIZE_MAX - 2 bytes.
57272         From Bruno Haible.
57273         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
57274         not (size_t) -1, since it's defined here.
57275
57276 2003-11-09  Karl Berry  <karl@gnu.org>
57277
57278         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
57279
57280 2003-11-06  Paul Eggert  <eggert@twinsun.com>
57281
57282         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
57283         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
57284         Reject sizes of exactly SIZE_MAX bytes.
57285         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
57286         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
57287
57288 2003-11-05  Bruno Haible  <bruno@clisp.org>
57289
57290         * lib/xsize.h: Include limits.h, to avoid a possible collision with
57291         SIZE_MAX defined in <limits.h> on Solaris.
57292
57293 2003-11-04  Jim Meyering  <jim@meyering.net>
57294
57295         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
57296         variable names, rather than @VAR@.
57297         * modules/poll: Likewise.
57298
57299 2003-11-04  Bruno Haible  <bruno@clisp.org>
57300
57301         * modules/xsize: New file.
57302         * modules/linebreak: Depend on xsize.
57303         * MODULES.html.sh (func_all_modules): Add xsize.
57304
57305 2003-11-04  Bruno Haible  <bruno@clisp.org>
57306
57307         * m4/xsize.m4: New file.
57308
57309 2003-11-04  Bruno Haible  <bruno@clisp.org>
57310
57311         * lib/xsize.h: New file.
57312         * lib/linebreak.c: Include xsize.h.
57313         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
57314         argument for overflow.
57315         Suggested by Paul Eggert.
57316
57317 2003-11-03  Karl Berry  <karl@gnu.org>
57318
57319         * config/config.{guess,sub}: update from config.
57320
57321 2003-11-03  Jim Meyering  <jim@meyering.net>
57322
57323         * modules/userspec (lib_SOURCES): Add userspec.h.
57324         (Include): Add "userspec.h".
57325         Improve description.
57326
57327 2003-11-03  Jim Meyering  <jim@meyering.net>
57328
57329         * lib/userspec.c: Include "userspec.h".
57330         * lib/userspec.h: New file.
57331
57332 2003-11-03  Bruno Haible  <bruno@clisp.org>
57333
57334         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
57335
57336 2003-11-03  Bruno Haible  <bruno@clisp.org>
57337
57338         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
57339         available, to avoid (extremely rare) race condition.
57340         Suggested by Paul Eggert.
57341
57342 2003-11-02  Karl Berry  <karl@gnu.org>
57343
57344         * config/srclist.txt (vasprintf.c): sync broken, sigh.
57345
57346 2003-10-31  Paul Eggert  <eggert@twinsun.com>
57347
57348         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
57349         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
57350         (read_filesystem_list): Set and use me_type_malloced.
57351         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
57352         whatever the type happens to be), for brevity and consistency.
57353         Check for size calculation overflow on Alphas running OSF/1.
57354
57355 2003-10-31  Jim Meyering  <jim@meyering.net>
57356
57357         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
57358
57359         * lib/linebuffer.c: Include <string.h> for declaration of memset.
57360
57361 2003-10-30  Paul Eggert  <eggert@twinsun.com>
57362             Bruno Haible  <bruno@clisp.org>
57363
57364         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
57365         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
57366
57367 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57368
57369         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
57370         netbsd*-gnu*.  Suggested by Robert Millan.
57371
57372 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57373
57374         * modules/group-member: Depend on stdbool.
57375
57376 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57377
57378         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
57379
57380 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57381
57382         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
57383         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
57384         after the 'gnu' in these cases.  This fixes some bugs in the
57385         previous change, and is based on suggestions by Robert Millan.
57386
57387 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57388
57389         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
57390         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
57391         no longer needed.
57392         * lib/quotearg.c (quotearg_n_options): Use it.
57393         * lib/group-member.c: Include <stdbool.h>.
57394         (free_group_info): Arg is now const *; don't free arg.
57395         (get_group_info): Now returns bool and accepts struct group_info *,
57396         rather than returning a malloc'ed struct group_info *.
57397         All uses changed.  Check for overflow in internal size calculation.
57398
57399         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
57400         rather than xmalloc/xrealloc.
57401         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
57402         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
57403         conformance bug: the old code used a pointer after freeing the
57404         storage that it addressed.
57405         * lib/hash.c (hash_initialize): Simplify the code by using
57406         xalloc_oversized rather than doing it by hand.
57407         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
57408         the buffer preserved.  Use free and xmalloc instead.
57409         * lib/quotearg.c (quotearg_n_options): Likewise.
57410         Use a simpler test for size overflow.  Don't use xalloc_oversized
57411         because unsigned int might be wider than size_t (!); this suggests
57412         that we should switch from unsigned int to size_t for slot numbers.
57413
57414 2003-10-28  Paul Eggert  <eggert@twinsun.com>
57415
57416         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
57417         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
57418         NetBSD kernels.  Requested by Richard Stallman.
57419
57420 2003-10-27  Paul Eggert  <eggert@twinsun.com>
57421
57422         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
57423         to allocate the returned structure.  Do not allocate a subarray,
57424         as x2nrealloc will do that.
57425         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
57426         instead of xnrealloc.
57427         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
57428
57429 2003-10-27  Bruno Haible  <bruno@clisp.org>
57430
57431         * lib/stdbool_.h: Better support for BeOS.
57432
57433 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57434
57435         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
57436         now uses inline.
57437
57438 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57439
57440         * lib/xalloc.h (xalloc_oversized): New static inline function, for
57441         callers that want to do their own size-overflow checking.  Include
57442         <stdbool.h>, since xalloc_oversized returns bool.
57443         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
57444         to use xalloc_oversized.
57445
57446         Add two functions x2realloc, x2nrealloc, for programs that grow
57447         arrays dynamically by doubling their sizes.
57448         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
57449         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
57450         New functions.
57451
57452         Port to C99 semantics for 'inline' of external functions.
57453         Bug reported by Bruno Haible.
57454         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
57455         with the old contents of xnmalloc.
57456         (xnmalloc, xmalloc): Use it.
57457         (xnrealloc_inline): New static inline function,
57458         with the old contents of xnrealloc.
57459         (xnrealloc, xrealloc): Use it.
57460
57461         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
57462         that.
57463
57464 2003-10-26  Karl Berry  <karl@gnu.org>
57465
57466         * config/srclist.txt (COPYING.DOC): no longer available from
57467         /gd/gnuorg; don't know where the ultimate source is.
57468
57469 2003-10-25  Paul Eggert  <eggert@twinsun.com>
57470
57471         Fix several address-calculation bugs in the hash modules,
57472         plus some minor code cleanup.
57473
57474         * lib/hash.h: Include <stdbool.h>, for bool.
57475         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
57476         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
57477         hash_get_n_entries, hash_get_max_bucket_length,
57478         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
57479         hash_rehash): Use size_t rather than unsigned.
57480         * lib/hash.c (struct hash_table, hash_get_n_buckets,
57481         hash_get_n_buckets_used, hash_get_n_entries,
57482         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
57483         hash_get_entries, hash_do_for_each, hash_string, is_prime,
57484         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
57485         Likewise.
57486         (SIZE_MAX): Define if not defined.
57487         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
57488         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
57489         hash_print):
57490         Use const * when possible.
57491         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
57492         (check_tuning): Fix bug: if tuning parameters were very close to
57493         0 or 1, rounding errors could have caused subscript violations.
57494         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
57495         (hash_initialize): Add 'fail:' label
57496         to free table and return NULL, and use it to simplify code.
57497         Use calloc rather than clearing the storage ourself.
57498         (hash_initialize, hash_rehash): Check for arithmetic overflow in
57499         buffer size calculations.
57500         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
57501         Include <stddef.h>, for size_t.
57502         * lib/hash-pjw.c (hash_pjw): Likewise.
57503         Switch to method described by Bruno Haible.
57504         Include <limits.h>, for CHAR_BIT.
57505         (SIZE_BITS): New macro.
57506
57507 2003-10-23  Paul Eggert  <eggert@twinsun.com>
57508
57509         * m4/getline.m4 (AM_FUNC_GETLINE):
57510         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
57511         hosts.  Problem reported by Derek Robert Price in
57512         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
57513         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
57514         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
57515
57516 2003-10-21  Paul Eggert  <eggert@twinsun.com>
57517
57518         * lib/getndelim2.c (getndelim2): When size calculation overflows,
57519         ceiling the allocation at NMAX bytes rather than silently
57520         discarding input bytes before NMAX is reached.  This makes
57521         a difference only if NMAX exceeds SIZE_MAX / 2.
57522
57523         * lib/obstack.c: Merge from glibc.
57524         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
57525         Add libc_hidden_def (_obstack_newchunk).
57526         (_obstack_free) [! defined _LIBC]: Remove.
57527         [defined _LIBC]: Make a strong alias from obstack_free, rather than
57528         a clone of the function body.
57529         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
57530         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
57531
57532         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
57533         glibc.
57534         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
57535         arg to memcpy.
57536
57537         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
57538         (obstack_ptr_grow_fast, obstack_int_grow_fast):
57539         Don't use lvalue casts, as GCC plans to remove support for them
57540         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
57541         was also present in the non-GCC version, indicating that this
57542         code had always been buggy and had never been widely used.
57543         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
57544         Use the fast variant of each macro, rather than copying the
57545         definiens of the fast variant; that way, we'll be more likely to
57546         catch future bugs in the fast variants.
57547
57548 2003-10-20  Bruno Haible  <bruno@clisp.org>
57549
57550         * modules/wait-process: New file.
57551         * MODULES.html.sh (func_all_modules): Add wait-process.
57552
57553 2003-10-20  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/wait-process.m4: New file.
57556
57557 2003-10-20  Bruno Haible  <bruno@clisp.org>
57558
57559         * lib/wait-process.h: New file, from GNU gettext.
57560         * lib/wait-process.c: New file, from GNU gettext.
57561
57562 2003-10-19  Jim Meyering  <jim@meyering.net>
57563
57564         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
57565         HPUX 10.20.
57566
57567 2003-10-18  Karl Berry  <karl@gnu.org>
57568
57569         * config/config.guess: update from config.
57570
57571 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57572
57573         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
57574         (getgroups): First arg is int, not size_t.
57575         Don't let 'free' mangle errno.
57576
57577 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57578
57579         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
57580
57581 2003-10-16  Karl Berry  <karl@gnu.org>
57582
57583         * config/config.{guess,sub}: update from config.
57584
57585 2003-10-16  Jim Meyering  <jim@meyering.net>
57586
57587         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
57588         memcpy.
57589
57590 2003-10-15  Paul Eggert  <eggert@twinsun.com>
57591
57592         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
57593         (SIZE_MAX): Remove.
57594         (new_exclude, add_exclude_file): Initial size no longer needs to
57595         be a power of 2.
57596         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
57597         our own address arithmetic overflow checking.
57598
57599         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
57600         (fnmatch): Do not alloca more than 2000 wide characters;
57601         instead, use malloc for large buffers.
57602         Check for address arithmetic overflow, and return -1
57603         with errno set to ENOMEM in that case.
57604         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
57605         (NEW_PATTERN): Do not alloca more than 8000 bytes;
57606         instead, return -1.  Check for address arithmetic overflow.
57607
57608 2003-10-14  Paul Eggert  <eggert@twinsun.com>
57609
57610         Handle invalid suffixes and overflow independently, so that
57611         callers can treat them independently as needed.  Fix some bugs in
57612         suffix handling, e.g., "100k@" was not diagnosed as an invalid
57613         suffix for a human-readable blocksize.  The major caller-visible
57614         change is the addition of a new
57615         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
57616         that both overflow and suffix chars were found.
57617
57618         * lib/human.c (humblock): Don't check separately for invalid suffix
57619         char; that is xstrtoumax's job (now that its bug is fixed).
57620         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57621         INTMAX_MAX]: New macros.
57622         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57623         TYPE_MAXIMUM): New macros.
57624         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57625         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57626         if overflow occurs, as it's what __strtol does and it's more useful
57627         in practice.
57628         (__xstrtol): If __strtol reports some error other than ERANGE,
57629         reflect it to the caller as LONGINT_INVALID.  If it reports
57630         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57631         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57632         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57633         value.
57634         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57635         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57636         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57637         [defined UINTMAX_MAX]: New macros.
57638
57639 2003-10-14  Bruno Haible  <bruno@clisp.org>
57640
57641         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57642
57643 2003-10-14  Bruno Haible  <bruno@clisp.org>
57644
57645         * m4/sig_atomic_t: New file, from GNU gettext.
57646         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57647
57648 2003-10-14  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57651         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57652         Also use volatile where needed.
57653
57654 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57655
57656         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57657         Change maintainer from Bruno Haible to 'all'.
57658
57659 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57660
57661         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57662
57663 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57664
57665         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57666         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57667         and define in terms of the other primitives.
57668         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57669         (SIZE_MAX): Define if not already defined.
57670         (array_size_overflow): New function.
57671         (xalloc_die): Abort instead of exiting if 'error' returns.
57672         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57673         (xmalloc, xrealloc): Use them.
57674         (xcalloc): Check for address arithmetic overflow.
57675         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57676         a bit faster than strcpy.
57677
57678 2003-10-10  Simon Josefsson  <jas@extundo.com>
57679
57680         * modules/argp (Depends-on): Add restrict and strcase.
57681
57682 2003-10-10  Simon Josefsson  <jas@extundo.com>
57683
57684         * m4/argp.m4: Add AC_C_INLINE.
57685
57686 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57687
57688         Merge getpass from libc, plus a few fixes.
57689
57690         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57691         Include <stdbool.h>.
57692         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57693         __fsetlocking to empty.
57694         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57695         do include <bits/libc-lock.h>.
57696         Do not include <fcntl.h>; not needed.
57697         [_LIBC]: Include <wchar.h>.
57698         (NOTCANCEL_MODE): New macro.
57699         (flockfile, funlockfile) [_LIBC]: New macros.
57700         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57701         [!_LIBC]: New macros.
57702         (call_fclose): New function.
57703         (getpass): Use it.  Save tty stream separately; this simplifies the
57704         code and makes it more reliable if stdin happens to equal stdout.
57705         Invoke __fsetlocking on tty.
57706         Handle thread cancellation if needed.
57707         Namespace cleanup (use __tcgetattr, __getline).
57708         Use bool for Booleans.
57709         [USE_IN_LIBIO]: Handle wide streams.
57710         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57711         stream might go where.
57712
57713         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57714         doesn't have to include <stdio.h> before us.
57715         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57716         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57717         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57718         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57719         if not declared, so that we can use getpass.c code from libc without
57720         rewriting it.
57721         (flockfile, ftrylockfile, funlockfile): New macros.
57722
57723 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57724
57725         * modules/getpass: Depend on stdbool.
57726
57727 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57728
57729         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57730
57731 2003-10-07  Karl Berry  <karl@gnu.org>
57732
57733         * config/config.{guess,sub}: update from config.
57734
57735 2003-10-06  Jim Meyering  <jim@meyering.net>
57736             Bruno Haible  <bruno@clisp.org>
57737
57738         This lets translators provide better translations for the
57739         "Written by ..." part of --version output.
57740         * lib/version-etc.h: Include stdarg.h.
57741         (version_etc_copyright): Declare as readonly.
57742         (version_etc): Make this function variadic with a NULL-terminated list
57743         of author name strings.
57744         (version_etc_va): New declaration.
57745         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57746         (version_etc_copyright): Declare as readonly.
57747         (version_etc_va): New function. Provide a different translatable string
57748         for each possible number of authors < 10. Abbreviate when there are 10
57749         authors or more.
57750         (version_etc): Make this function variadic. Call version_etc_va.
57751         Suggestion from Gary V. Vaughan.
57752
57753         * lib/long-options.h (parse_long_options): Change prototype: the
57754         authors string is moved to the end and becomes variadic.
57755         * lib/long-options.c: Include stdarg.h.
57756         (parse_long_options): Make this function variadic, too.
57757         Call version_etc_va, not version_etc.
57758
57759 2003-10-06  Bruno Haible  <bruno@clisp.org>
57760
57761         * modules/version-etc-2: Remove file.
57762         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57763
57764 2003-10-06  Bruno Haible  <bruno@clisp.org>
57765
57766         * modules/fatal-signal: New file.
57767         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57768
57769 2003-10-06  Bruno Haible  <bruno@clisp.org>
57770
57771         * m4/fatal-signal.m4: New file.
57772         * m4/signalblocking.m4: New file, from GNU gettext.
57773
57774 2003-10-06  Bruno Haible  <bruno@clisp.org>
57775
57776         * lib/version-etc-2.h: Remove file.
57777         * lib/version-etc-2.c: Remove file.
57778
57779 2003-10-06  Bruno Haible  <bruno@clisp.org>
57780
57781         * lib/fatal-signal.h: New file, from GNU gettext.
57782         * lib/fatal-signal.c: New file, from GNU gettext.
57783
57784 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57785
57786         * README: Rework advice for preventing empty .o files.
57787         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57788         not <sys/types.h>.
57789
57790 2003-10-04  Karl Berry  <karl@gnu.org>
57791
57792         * lib/argp*: update from libc.
57793
57794 2003-10-04  Karl Berry  <karl@gnu.org>
57795
57796         * config/config.{guess,sub}: update from config.
57797
57798 2003-10-02  Bruno Haible  <bruno@clisp.org>
57799
57800         * modules/lchown (Include): Add lchown.h.
57801         * modules/time_r (Include): Use "..." syntax.
57802         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57803
57804 2003-10-01  Simon Josefsson  <jas@extundo.com>
57805
57806         * MODULES.html.sh (func_all_modules): Move gethostname from section
57807         'based on' to section 'lacking' POSIX:2001.
57808
57809 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57810
57811         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57812         to output mode on the same stream.
57813
57814 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57815
57816         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57817         Fix arg typo in previous patch.
57818
57819 2003-09-28  Jim Meyering  <jim@meyering.net>
57820
57821         * lib/error.c: Correct cpp indentation.
57822
57823 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57824
57825         * modules/free: New file.
57826
57827 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57828
57829         * m4/free.m4: New file.
57830
57831 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57832
57833         * lib/minmax.h (MIN, MAX)
57834         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57835         Omit the special code that used __typeof__, since we worry that
57836         it could be more trouble than it's worth.  See:
57837         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57838         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57839
57840         * lib/free.c: New file.
57841
57842 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57843
57844         Trivial fixes to Makefile.am parts of module listings.
57845         * modules/strstr: Append strstr.h to lib_SOURCES.
57846         * modules/strcase: Likewise, for strcase.h.
57847
57848 2003-09-27  Karl Berry  <karl@gnu.org>
57849
57850         * config/mkinstalldirs: update from automake.
57851
57852 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57853
57854         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57855         (error_tail): Do not loop, reallocating temporary buffer, since
57856         the output cannot contain more wide characters than the input
57857         contains bytes, the size must be big enough already.  This avoids
57858         one potential size overflow calculation.  Check for size overflow
57859         when calculating temporary buffer size.  Free temporary buffer
57860         when done, if it was allocated with malloc; this plugs a memory
57861         leak.  Remove casts from void * to pointers, that are no longer
57862         needed now that we're assuming C89 or better.
57863
57864         Merge error changes from glibc.
57865
57866         * lib/error.c, error.h: Update copyright notice header to match glibc.
57867         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57868         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57869         Disable cancellation while printing error.
57870         * lib/error.h: Prepend __ to parameter names.
57871
57872 2003-09-26  Jim Meyering  <jim@meyering.net>
57873
57874         * lib/error.c (error_tail): Move some declarations
57875         into inner scope where the local variables are used.
57876
57877 2003-09-26  Bruno Haible  <bruno@clisp.org>
57878
57879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57880         stpncpy().
57881         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57882
57883 2003-09-26  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57886         (stpncpy): Define as alias for gnu_stpncpy.
57887         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57888
57889 2003-09-25  Simon Josefsson  <jas@extundo.com>
57890
57891         * lib/xgetdomainname.h: New file.
57892         * lib/xgetdomainname.c: New file.
57893
57894 2003-09-25  Simon Josefsson  <jas@extundo.com>
57895             Bruno Haible  <bruno@clisp.org>
57896
57897         * modules/getdomainname: New file.
57898         * modules/xgetdomainname: New file.
57899         * MODULES.html.sh (func_all_modules): Add getdomainname,
57900         xgetdomainname.
57901
57902 2003-09-25  Simon Josefsson  <jas@extundo.com>
57903             Bruno Haible  <bruno@clisp.org>
57904
57905         * m4/getdomainname.m4: New file.
57906
57907 2003-09-25  Simon Josefsson  <jas@extundo.com>
57908             Bruno Haible  <bruno@clisp.org>
57909
57910         * lib/getdomainname.h: New file.
57911         * lib/getdomainname.c: New file.
57912
57913 2003-09-25  Karl Berry  <karl@gnu.org>
57914
57915         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57916
57917 2003-09-25  Karl Berry  <karl@gnu.org>
57918
57919         * config/install-sh: update from automake.
57920
57921 2003-09-25  Bruno Haible  <bruno@clisp.org>
57922
57923         * modules/version-etc-2: New file, from modules/version-etc with
57924         modifications.
57925         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57926
57927 2003-09-25  Bruno Haible  <bruno@clisp.org>
57928
57929         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57930         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57931
57932 2003-09-24  Simon Josefsson  <jas@extundo.com>
57933
57934         * modules/xgethostname: Add xgethostname.h.
57935
57936 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57937
57938         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57939         the buffer associated with the argument.  Bug reported by
57940         Simon Josefsson.
57941
57942 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57943
57944         * README: Document assumptions that 'int' is at least 32 bits
57945         wide, that integer arithmetic is 2's complement without overflow,
57946         that there are no holes in integer values, that adding sizes of
57947         two nonoverlapping objects can't overflow, and that all-bits-zero
57948         yields scalar zero.  Fix spelling and capitalization typos.
57949
57950 2003-09-19  Karl Berry  <karl@gnu.org>
57951
57952         * lib/argp.h: update from libc.
57953
57954 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57955
57956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57957         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57958         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57959
57960 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57961
57962         * gnulib-tool: Use "test -h", not "test -L", for portability
57963         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57964         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57965         (sed_extract_prog): Issue s commands one-by-one, rather than
57966         using \| in one s command.
57967
57968 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57969
57970         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57971         input error, instead of returning NULL the next time we are called
57972         (and therefore losing track of errno).
57973
57974 2003-09-16  Bruno Haible  <bruno@clisp.org>
57975
57976         * gnulib-tool (func_create_testdir): Warn about duplicated
57977         dependencies.
57978
57979 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57980
57981         * modules/argmatch, modules/fatal, modules/obstack,
57982         modules/xalloc, modules/xgethostname: Sort dependencies by
57983         importance, not alphabetically.
57984
57985 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57986
57987         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57988         fails, so that the caller gets the proper errno.
57989
57990         * lib/readutmp.c (read_utmp): Likewise.
57991         Check for fstat error.  Close stream and free storage
57992         when failing.
57993
57994 2003-09-14  Karl Berry  <karl@gnu.org>
57995
57996         * config/srclist.txt (strdup.c): disable for c89 changes.
57997
57998 2003-09-14  Jim Meyering  <jim@meyering.net>
57999
58000         * lib/getloadavg.c: Correct cpp indentation.
58001         * lib/strdup.c: Likewise.
58002         * lib/vasnprintf.c: Likewise.
58003
58004 2003-09-14  Bruno Haible  <bruno@clisp.org>
58005
58006         * modules/fwriteerror: New file.
58007         * MODULES.html.sh (func_all_modules): Add fwriteerror.
58008
58009 2003-09-14  Bruno Haible  <bruno@clisp.org>
58010
58011         * lib/fwriteerror.h: New file.
58012         * lib/fwriteerror.c: New file.
58013
58014 2003-09-12  Paul Eggert  <eggert@twinsun.com>
58015
58016         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
58017         modules/xgethostname, modules/xalloc: Depend on exit.
58018
58019 2003-09-12  Paul Eggert  <eggert@twinsun.com>
58020
58021         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
58022
58023         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
58024         and AC_MINIX, too, so that their extensions are available.
58025
58026         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
58027         This macro has been superseded by gl_BACKUPFILE.
58028
58029         More patches to assume C89 or better.
58030
58031         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
58032
58033         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
58034         unconditionally.
58035         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
58036         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
58037         Include <string.h>, <stdlib.h> unconditionally.
58038         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
58039         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
58040         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
58041         headers or for string.h.
58042         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
58043         or strtoul.
58044
58045         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
58046         headers.
58047         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
58048         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58049         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
58050         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
58051         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58052         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
58053         memcpy, memset.
58054         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
58055         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
58056         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
58057         strtol.
58058         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
58059         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
58060         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
58061         strtoul.
58062
58063 2003-09-12  Paul Eggert  <eggert@twinsun.com>
58064
58065         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
58066         * lib/obstack.c [!defined _LIBC]: Likewise.
58067         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
58068         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
58069         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
58070
58071         More changes to assume C89 or better.
58072
58073         * lib/error.c (error_tail): Assume vprintf.
58074
58075         * lib/argmatch.c (getenv): Remove decl.
58076         * lib/progreloc.c (get_full_program_name): Define via prototype.
58077         * lib/setenv.c (clearenv): Likewise.
58078         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
58079         needed.
58080         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
58081         (malloc, memcpy): Remove decls.
58082         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
58083         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
58084         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
58085         (memcpy): Remove macro.
58086         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
58087         (__P): Remove.  All uses removed.
58088         (PTR): Remove.  All uses changed to void *.
58089         (CHAR_BIT, NULL): Remove.
58090         (spaces, zeros, memset_space, memset_zero)
58091         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
58092         Remove.
58093         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
58094         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
58095         Define with prototype.
58096         Remove now-unnecessary prototype decl.
58097         (extra_args_spec): Assume ANSI C.  All uses changed.
58098         (extra_args_spec_iso): Remove.
58099         (my_strftime, emacs_strftimeu): Define via prototype.
58100         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
58101         unconditionally.
58102         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
58103         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
58104         (strtoul, strtol): Remove decls.
58105         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
58106         LONG_MAX): Remove.
58107         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
58108         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
58109         (LOCALE_PARAM_PROTO): New macro.
58110         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
58111         (INTERNAL (strtol), strtol): Define with a prototype.
58112         (PARAMS): Remove.  All uses removed.
58113         * lib/tempname.c: Include <string.h> unconditionally.
58114         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
58115         * lib/xgethostname.c (main): Define with a prototype.
58116         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
58117         Include <stdlib.h> unconditionally.
58118         (calloc, malloc, realloc, free): Remove decls.
58119         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
58120         Include <stdlib.h> unconditionally.  Sort include file names.
58121         (strtod): Remove.
58122         (xstrtod): Define with a prototype.
58123         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
58124         (strtol, strtoul): Remove decls.
58125
58126 2003-09-11  Paul Eggert  <eggert@twinsun.com>
58127
58128         More patches to assume C89 or better.
58129         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
58130         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
58131         string.h, memchr, STDC_HEADERS.
58132
58133 2003-09-11  Paul Eggert  <eggert@twinsun.com>
58134
58135         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
58136         Include <stdlib.h>, <string.h> unconditionally.
58137         Remove now-unnecessary cast to char *.
58138         * lib/strnlen.c: Include <string.h> unconditionally.
58139         * lib/yesno.c (yesno): Define with a prototype.
58140
58141 2003-09-11  Bruno Haible  <bruno@clisp.org>
58142
58143         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
58144
58145 2003-09-10  Jim Meyering  <jim@meyering.net>
58146
58147         * lib/error.c: Correct indentation of cpp directives.
58148
58149 2003-09-10  Bruno Haible  <bruno@clisp.org>
58150
58151         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
58152         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
58153         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
58154         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
58155         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
58156         <stdlib.h> and <string.h> checks.
58157         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
58158         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
58159
58160 2003-09-10  Bruno Haible  <bruno@clisp.org>
58161
58162         * lib/strcspn.c: Include <string.h> unconditionally.
58163         * lib/strpbrk.c: Include <string.h> unconditionally.
58164         * lib/strstr.c: Include <string.h> unconditionally.
58165         * lib/unicodeio.c: Include <string.h> unconditionally.
58166         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
58167         * lib/unsetenv.c: Likewise.
58168         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
58169         * lib/yesno.c: Include <stdlib.h> unconditionally.
58170         (rpmatch): Add prototype.
58171
58172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58173
58174         More patches to assume C89 or better.
58175         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
58176         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
58177         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
58178         or for string.h.
58179         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
58180         stdlib.h.
58181         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
58182         C headers.
58183         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
58184         string.h.
58185         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
58186         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
58187         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
58188         or for string.h.
58189         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
58190         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
58191         C headers.
58192         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
58193         memcpy.
58194         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
58195         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
58196         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
58197         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
58198         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
58199         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
58200         string.h, free.
58201         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
58202         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
58203         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
58204         C headers, or for string.h.
58205         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
58206         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
58207         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
58208         headers, memory.h, stdlib.h, string.h, strings.h.
58209         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
58210         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
58211         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
58212         strchr.
58213         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
58214         headers, memory.h, string.h.
58215         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
58216         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
58217         free.
58218         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
58219         headers.
58220         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
58221         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
58222         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
58223         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
58224         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
58225
58226 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58227
58228         More K&R removal.
58229
58230         * lib/acosl.c (main): Use a prototype.
58231         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
58232         tanl.c: Likewise.
58233
58234         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
58235
58236         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
58237         (getopt, etopt_long, getopt_long_only, _getopt_internal)
58238         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
58239         with a prototype.
58240         * lib/getopt.c (const): Remove macro.
58241         Include <string.h> unconditionally.
58242         (my_index): Remove; all uses changed to strchr.
58243         (strlen): Remove decl.
58244         (exchange): Remove forward decl; no longer needed.
58245         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
58246         Define with prototype.
58247         * lib/getopt1.c (const): Remove macro.
58248         (getopt_long, getopt_long_only, main): Define with prototype.
58249
58250         * lib/getugroups.c: Include <string.h> unconditionally.
58251
58252         * lib/getusershell.c: Include <stdlib.h> unconditionally.
58253         (getusershell, setusershell, endusershell, readname, main):
58254         Define with prototypes.
58255
58256         * lib/group-member.c: Include group-member.h first.
58257         Include <stdlib.h> unconditionally.
58258
58259         * lib/hard-locale.c: Include hard-locale.h first.
58260         Include <stdlib.h>, <string.h> unconditionally.
58261
58262         * lib/hash.c (free, malloc): Remove decls.
58263         Include <stdlib.h> unconditionally.
58264
58265         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
58266         (getenv): Do not declare.
58267
58268         * lib/idcache.c: Include <string.h> unconditionally.
58269
58270         * lib/long-options.c: Include long-options.h first, to test interface.
58271         Include <stdlib.h> unconditionally.
58272
58273         * lib/makepath.c: Include makepath.h first, to test interface.
58274         Include <stdlib.h> and <string.h> unconditionally.
58275
58276         * lib/linebuffer.c: Include <stdlib.h>.
58277         (free): Remove decl.
58278
58279         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
58280         stddef.h. rpl_malloc returns void *, not char *.
58281         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
58282         prototype.
58283
58284         * lib/md5.h: Include <limits.h> unconditionally.
58285         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
58286         (__P): Remove; all uses removed.
58287         * lib/md5.c: Include "md5.h" first.
58288         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
58289         md5_buffer, md5_process_bytes, md5_process_block):
58290         Define with prototypes.
58291         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
58292         * lib/sha.c: Include "sha.h" first.
58293         Include <stdlib.h>, <string.h> unconditionally.
58294
58295         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
58296         * lib/memcmp.c (__ptr_t): Likewise.
58297         * lib/memrchr.c (__ptr_t): Likewise.
58298         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
58299         Include <string.h> unconditionally.
58300         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
58301         * lib/memchr.c: Include <stdlib.h> unconditionally.
58302         * lib/memchr.c (LONG_MAX): Remove.
58303         * lib/memrchr.c (LONG_MAX): Likewise.
58304         * lib/memchr.c (__memchr): Define via a prototype.
58305         * lib/memrchr.c (__memrchr): Likewise.
58306         * lib/memcmp.c (__P): Remove, and remove all uses.
58307         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
58308         Remove forward decls; no longer needed.
58309         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
58310         Use types required by C89 in prototype.
58311
58312         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
58313         * lib/savedir.c: Likewise.
58314         * lib/mkdir.c (free): Remove decl.
58315         * lib/rmdir.c (rmdir): Define with a prototype.
58316         * lib/savedir.c: Include savedir.h first, to test interface.
58317
58318         * lib/mktime.c (STDC_HEADERS): Remove.
58319         Include <stdlib.h>, <string.h> unconditionally.
58320
58321         * lib/modechange.c: Include <stdlib.h> unconditionally.
58322         (malloc): Remove decl.
58323
58324         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
58325         (free): Remove decl.
58326
58327         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
58328         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
58329         (This type really should be intptr_t, but that's a C99ism.)
58330         (_obstack_memcpy): Remove: all uses changed to memcpy.
58331         Include <string.h> unconditionally.
58332         (struct obstack): Assume __STDC__ for types of members
58333         chunkfun, freefun, extra_arg.
58334         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
58335         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
58336         obstack_begin, obstack_specify_allocation,
58337         obstack_specify_allocation_with_arg, obstack_chunkfun,
58338         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
58339         Remove unprototyped decls and the macros that use them.
58340         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
58341         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
58342         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
58343         (defined __STDC__ && __STDC__)]:
58344         Remove nonprototyped code.
58345         Include <stdlib.h> unconditionally.
58346         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
58347         _obstack_allocated_p, _obstack_free, obstack_free,
58348         _obstack_memory_used, print_and_abort):
58349         Define using prototypes.
58350         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
58351         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
58352         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
58353         obstack_next_free, obstack_object_size, obstack_room) [0]:
58354         Remove unused, unprototyped code.
58355
58356         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
58357
58358         * lib/physmem.c (physmem_total, physmem_available, main): Define
58359         with prototypes.
58360
58361         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
58362         (main): Define with a prototype.
58363
58364         * lib/posixver.c (getenv): Remove decl.
58365
58366         * lib/putenv.c (malloc): Returns void *, not char *.
58367         Include <string.h> unconditionally.
58368         (strchr, memcpy, NULL): Do not define.
58369
58370         * lib/readtokens.c: Include readtokens.h first, to test interface.
58371         Include <stdlib.h>, <string.h> unconditionally.
58372         (init_tokenbuffer): Define with a prototype.
58373
58374         * lib/regex.c (PARAMS): Remove.  All uses removed.
58375         All uses of _RE_ARGS removed, too.
58376         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58377         unconditionally.
58378         (bzero): Assume memset exists.
58379         (memcmp, memcpy, NULL): Remove.
58380         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
58381         char, or assignments to local vars of type signed char.
58382         (init_syntax_once, PREFIX(extract_number_and_incr),
58383         PREFIX(print_partial_compiled_pattern),
58384         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
58385         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
58386         PREFIX(regex_grow_registers), PREFIX(regex_compile),
58387         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
58388         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
58389         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
58390         wcs_compile_range, byte_compile_range, truncate_wchar,
58391         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
58392         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
58393         count_mbs_length, wcs_re_match_2_internal,
58394         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
58395         PREFIX(alt_match_null_string_p),
58396         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
58397         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
58398         regfree, PREFIX(extract_number)): Define with prototype.  Remove
58399         now-unnecessary declaration, if any.
58400         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
58401         regcomp, regexec):
58402         Remove now-unnecessary casts among pointer types.
58403         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
58404
58405         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
58406         (free): Remove decl.
58407
58408         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
58409
58410         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
58411         (free): Remove decl.
58412
58413         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
58414         * lib/xgetcwd.c: Likewise.
58415
58416         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
58417         (free): Remove decl.
58418
58419         * lib/strchrnul.c (strchrnul): Define with a prototype.
58420         Fix bug: c_in was not converted to char before searching.
58421
58422         The following changes are not K&R related:
58423
58424         * lib/group-member.h: Include <sys/types.h>, so that this file is
58425         self-contained.
58426         * lib/makepath.h: Likewise.
58427
58428         * lib/getusershell.c (readname, default_index, line_size, readname):
58429         Use size_t, not int, for sizes.
58430         (readname): If the size overflows, report an error instead of
58431         looping forever.
58432
58433 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58434
58435         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
58436         libc.
58437
58438 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58439
58440         * README: New section: portability guidelines.
58441
58442 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58443
58444         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
58445         C89 spec.
58446
58447 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58448
58449         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
58450
58451 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58452
58453         Assume C89 or better; remove K&R cruft.
58454         A few of these changes were first proposed by Derek Robert Price
58455         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
58456
58457         * lib/addext.c: Include <string.h> unconditionally.
58458         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
58459         Don't declare getenv or malloc.
58460
58461         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
58462         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
58463         (NULL): Remove.
58464         (find_stack_direction, alloca): Use prototypes.
58465
58466         * lib/atexit.c (atexit): Define using a prototype.
58467
58468         * lib/basename.c, dirname.c, stripslash.c:
58469         Include <string.h> unconditionally.
58470
58471         * lib/bcopy.c: Include <stddef.h>.
58472         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
58473
58474         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
58475
58476         * lib/error.h (error, error_at_line, error_print_progname)
58477         [! (defined (__STDC__) && __STDC__)]: Remove decls.
58478         * lib/error.c: Include error.h first, to check interface.
58479         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58480         (VA_START): Remove; all uses changeed to va_start.
58481         (exit, strerror): Remove decls.
58482         (error_print_progname): Prototype uncondionally.
58483         Don't include <errno.h>; no longer needed.
58484         (private_strerror): Remove.
58485         (error_tail): Always define.
58486         (error, error_at_line): Assume C89 or better; always use prototypes.
58487         * lib/fatal.c: Include "fatal.h" first, to test interface.
58488         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58489         (VA_START): Remove; all uses changed to va_start.
58490         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
58491         this case.
58492         (exit): Remove decl.
58493         (fatal): Prototype unconditionally.  Assume va_start works.
58494         Abort at end, to pacify gcc.
58495
58496         * lib/euidaccess.c (main): Define with a prototype.
58497
58498         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
58499
58500         * lib/exitfail.c: Include <stdlib.h> unconditionally.
58501
58502         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
58503         prototypes.
58504         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
58505         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
58506         (getenv): Remove decl.
58507         (fnmatch): Define using a prototype.
58508         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
58509         (FCT): Define using a prototype.
58510
58511         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
58512
58513         * lib/gethostname.c: Include <stddef.h>.
58514         (gethostname): Define with prototype.  Length is size_t, not int.
58515
58516 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58517
58518         Assume C89 or better; remove K&R cruft.
58519         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
58520         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
58521         string.h, getenv, malloc.
58522         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
58523         headers.
58524         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
58525         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
58526         do not check for strerror.
58527         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
58528         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
58529         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
58530         do not check for doprnt or vprintf.
58531         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
58532         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
58533
58534 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58535
58536         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
58537         getversion.c should have been removed then, but was accidentally
58538         preserved.
58539
58540         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
58541         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
58542
58543 2003-09-08  Karl Berry  <karl@gnu.org>
58544
58545         * config/config.sub, config.guess, srclistvars.sh: update from savannah
58546                 config, forget about prep.
58547
58548         * config/depcomp, missing: update from automake.
58549
58550 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58551
58552         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
58553         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58554
58555 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58556
58557         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
58558         copy_tm_result.  Bug reported by Simon Josefsson in
58559         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58560
58561 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58562
58563         * m4/time_r.m4: New file.
58564         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
58565         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
58566         is. Check for timegm declaration.
58567         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
58568         Do not check for gmtime_r.
58569         Replace mktime if __mktime_internal does not exist and if mktime
58570         hasn't been replaced already.
58571
58572 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58573
58574         * lib/time_r.c, lib/time_r.h: New files.
58575
58576         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
58577         __localtime_r.
58578         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
58579         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
58580
58581         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
58582         __gmtime_r.
58583         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
58584         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
58585         Include <time_r.h>.
58586
58587         * lib/timegm.c: Switch to glibc implementation, with the following
58588         changes:
58589         [defined HAVE_CONFIG_H]: Include <config.h>.
58590         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
58591         (__mktime_internal) [!defined _LIBC]: New decl.
58592         (__gmtime_r) [!defined _LIBC]: New macro and function.
58593         (timegm): Use a prototype, since gnulib assumes C89.
58594         Do not bother declaring tmp to be const, as it's not really usefu.
58595         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
58596         (timegm): Declare only if HAVE_DECL_TIMEGM.
58597
58598 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58599
58600         * MODULES.html.sh (func_all_modules): Add time_r.
58601         * modules/time_r: New file.
58602         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
58603         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
58604
58605 2003-09-03  Paul Eggert  <eggert@twinsun.com>
58606
58607         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
58608         Bug reported by Lute Kamstra in
58609         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
58610
58611         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
58612         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
58613         course with correspondingly smaller numbers for tomorrow and
58614         yesterday.  From Tadayoshi Funaba.  Originally installed into
58615         sh-utils on 1999-08-07, but the patch got lost (I guess during the
58616         coreutils merge?).
58617
58618 2003-08-31  Simon Josefsson  <jas@extundo.com>
58619
58620         * modules/timegm: New file.
58621         * MODULES.html.sh (func_all_modules): Add timegm.
58622
58623 2003-08-31  Simon Josefsson  <jas@extundo.com>
58624
58625         * m4/timegm.m4: New file.
58626
58627 2003-08-31  Simon Josefsson  <jas@extundo.com>
58628
58629         * lib/timegm.h: New file.
58630         * lib/timegm.c: New file.  Based on
58631         wget-1.8.2/src/http.c:mktime_from_utc.
58632
58633 2003-08-31  Karl Berry  <karl@gnu.org>
58634
58635         * lib/argp.h: update from libc.
58636
58637 2003-08-28  Bruno Haible  <bruno@clisp.org>
58638
58639         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58640         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58641         followed by '#define fnmatch fnmatch_posix' gives an error.
58642
58643 2003-08-28  Bruno Haible  <bruno@clisp.org>
58644
58645         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58646         warning on QNX, which defines O_BINARY to 000000.
58647
58648 2003-08-27  Jim Meyering  <jim@meyering.net>
58649
58650         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58651         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58652         would fail after 32.  Reported by Danny Levinson.  Details here:
58653         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58654
58655 2003-08-24  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58658         MSVC7 <stdio.h> is included later.
58659
58660 2003-08-22  Simon Josefsson  <jas@extundo.com>
58661
58662         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58663
58664 2003-08-20  Karl Berry  <karl@gnu.org>
58665
58666         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58667
58668 2003-08-20  Bruno Haible  <bruno@clisp.org>
58669
58670         * modules/progname: New file.
58671         * MODULES.html.sh (func_all_modules): Add progname.
58672
58673 2003-08-20  Bruno Haible  <bruno@clisp.org>
58674
58675         * lib/progname.h: New file, from GNU gettext.
58676         * lib/progname.c: New file, from GNU gettext.
58677         * lib/progreloc.c: New file, from GNU gettext.
58678
58679 2003-08-19  Jim Meyering  <jim@meyering.net>
58680
58681         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58682         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58683
58684 2003-08-19  Bruno Haible  <bruno@clisp.org>
58685
58686         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58687         more.
58688
58689 2003-08-19  Bruno Haible  <bruno@clisp.org>
58690
58691         * lib/xstrdup.c: Assume <string.h> exists.
58692
58693 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58694
58695         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58696         in makefile rules.
58697
58698 2003-08-18  Jim Meyering  <jim@meyering.net>
58699
58700         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58701         * m4/lib-ld.m4: Likewise.
58702
58703 2003-08-18  Jim Meyering  <jim@meyering.net>
58704
58705         * lib/setenv.h: Indent nested cpp directive.
58706         * lib/vasnprintf.c: Remove trailing blanks.
58707
58708 2003-08-17  Simon Josefsson  <jas@extundo.com>
58709
58710         * modules/xstrndup: New file.
58711         * MODULES.html.sh (func_all_modules): Add xstrndup.
58712
58713 2003-08-17  Simon Josefsson  <jas@extundo.com>
58714
58715         * modules/argp: Fix autoconf macro name. Add more dependencies.
58716
58717 2003-08-17  Simon Josefsson  <jas@extundo.com>
58718
58719         * m4/xstrndup.m4: New file.
58720
58721 2003-08-17  Simon Josefsson  <jas@extundo.com>
58722
58723         * m4/argp.m4: New file.
58724
58725 2003-08-17  Simon Josefsson  <jas@extundo.com>
58726             Bruno Haible  <bruno@clisp.org>
58727
58728         * lib/xstrndup.h: New file.
58729         * lib/xstrndup.c: New file.
58730
58731 2003-08-17  Bruno Haible  <bruno@clisp.org>
58732
58733         * modules/strndup (Files, Include): Add lib/strndup.h.
58734
58735 2003-08-17  Bruno Haible  <bruno@clisp.org>
58736
58737         * modules/euidaccess (Files): Add lib/euidaccess.h.
58738
58739 2003-08-17  Bruno Haible  <bruno@clisp.org>
58740
58741         * lib/strndup.h: New file.
58742
58743 2003-08-17  Bruno Haible  <bruno@clisp.org>
58744
58745         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58746         like AC_GNU_SOURCE.
58747         * modules/extensions (configure.ac): Comment out the invocation of
58748         gl_USE_SYSTEM_EXTENSIONS.
58749
58750 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58751
58752         Merges from coreutils, etc.
58753         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58754         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58755         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58756         fixing a typo.
58757         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58758         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58759
58760 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58761
58762         Document merge from coreutils.
58763         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58764         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58765         * modules/utime: Add m4/utimes-null.m4.
58766
58767 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58768
58769         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58770         space, undoing this 2003-08-12 change:
58771         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58772
58773 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58774
58775         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58776         strtoul.c from libc, undoing this 2003-08-12 change:
58777         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58778
58779 2003-08-16  Jim Meyering  <jim@meyering.net>
58780
58781         Merges from coreutils.
58782         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58783         prefix.  Adjust cache variables similarly.  Create 500 rather than
58784         just 300 files, to exercise bug on Darwin6.5, too.
58785         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58786         $missing_dir.
58787         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58788         AM_SYS_POSIX_TERMIOS.
58789         Reported by mkc@mathdogs.com.
58790         Also change use of $am_cv_sys_posix_termios
58791         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58792         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58793         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58794         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58795         in /proc/mounts until it finds one with matching device number.  This
58796         is unnecessary when the FILE argument *is* a mount point.  No stat call
58797         is necessary in that case.  So, disable the statvfs-testing code on
58798         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58799         as RedHat bug# 84846.
58800         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58801         to 1MB, so as not to render systems with no stack size limit (e.g.,
58802         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58803         Include <unistd.h>.  On some systems,
58804         it is required for the definition of _SC_PAGESIZE.
58805
58806 2003-08-16  Jim Meyering  <jim@meyering.net>
58807
58808         Merge from coreutils.
58809         * lib/xstrtoimax.c: #else #if -> #elif.
58810         * lib/xstrtoumax.c: Likewise.
58811
58812 2003-08-16  Jim Meyering  <jim@meyering.net>
58813
58814         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58815         * m4/utimes.m4: Removed.
58816         * m4/utimes-null.m4: Renamed from utimes.m4.
58817
58818         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58819         to 1MB, so as not to render systems with no stack size limit (e.g.,
58820         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58821         Include <unistd.h>.  On some systems,
58822         it is required for the definition of _SC_PAGESIZE.
58823
58824 2003-08-16  Jim Meyering  <jim@meyering.net>
58825         and Paul Eggert  <eggert@cs.ucla.edu>
58826
58827         Merges from coreutils, etc.
58828
58829         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58830         using the latest version from cvs.  This avoids problems with #line
58831         directives using a vendor (Sun) compiler.
58832         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58833         Don't set GETGROUPS_LIB here; now it's
58834         done via getgroups.m4's wrapper function.
58835         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58836         rather than just in sh-util/configure.in, so that the
58837         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58838         same.
58839         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58840         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58841         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58842         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58843         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58844         Remove code that is now done by the newly-required macros.
58845         Append $(EXEEXT) to DF_PROG.
58846         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58847         Do not invoke or require the following here,
58848         since prereq.m4 or some gnulib .m4 now does this for us:
58849         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58850         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58851         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58852         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58853         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58854         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58855         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58856         AC_FUNC_OBSTACK.
58857         Do not replace the following functions, as this is now the job
58858         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58859         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58860         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58861         atexit getpass, strdup, getpagesize.
58862         Replace 'raise'.
58863         Do not check for the following functions, as this is now the job
58864         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58865         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58866         setregid.
58867         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58868         Check for sys/sysctl.h.
58869         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58870         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58871         of checking for ssize_t ourselves.
58872
58873         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58874         Require every macro that gnulib/modules/* suggests for us.
58875         (jm_PREREQ_ADDEXT): New macro.
58876         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58877         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58878
58879         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58880         (gl_PHYSMEM): Use it.
58881         Also check for `table' function.
58882         Check for new headers and functions.
58883         Add check for sys/sysmp.h.
58884         With suggestions from Kaveh Ghazi.
58885         Ignore headers that are present but cannot be compiled.  This
58886         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58887         C 5.4.
58888
58889 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58890
58891         Document merge from coreutils.
58892         * modules/userspec: Depend on posixver.
58893         * modules/strftime: Depend on tzset.
58894
58895 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58896
58897         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58898         rather than tab, after '#' in shell-script copyright notices.
58899         Suggested by Bruno Haible.
58900
58901 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58902
58903         * config/srclist-update: Use three spaces, rather than tab, after '#'
58904         in shell-script copyright notices.  Suggested by Bruno Haible.
58905         Remove unnecessary parenthesization in regular expression.
58906
58907 2003-08-15  Jim Meyering  <jim@meyering.net>
58908
58909         Merge from coreutils.
58910         * lib/xgethostname.c: Include <stdlib.h>.
58911         (xghostname): Don't exit for anything other than memory-related
58912         failure; just return NULL.
58913         * lib/userspec.c: Include "posixver.h".
58914         (parse_user_spec): Accept `.' as a separator only
58915         in pre-POSIX-200112 mode.
58916         * lib/strtoimax.c: Use #elif rather than #else #if.
58917         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58918         Remove function, now that we can rely on a working tzset function.
58919         [!_LIBC]: Ensure that the required autoconf test has been run.
58920         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58921         Use underlying_strftime for %r.
58922         * lib/sha.c: Merge in some clean-up and optimization changes from
58923         glibc.
58924         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58925         Ensure that it is a multiple of 64.
58926         Rearrange loop exit tests so as to avoid performing an
58927         additional fread after encountering an error or EOF.
58928         * lib/realloc.c: Update copyright date.
58929
58930 2003-08-15  Jim Meyering  <jim@meyering.net>
58931         and Paul Eggert  <eggert@twinsun.com>
58932
58933         Merge from coreutils.
58934         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58935         member but strut utmpx does not.  Needed for AIX 4.3.3.
58936         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58937
58938 2003-08-15  Jim Meyering  <jim@meyering.net>
58939         and Paul Eggert  <eggert@cs.ucla.edu>
58940
58941         Merges from coreutils, etc.
58942         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58943         Require gl_FUNC_TZSET_CLOBBER.
58944         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58945         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58946         members.
58947
58948 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58949
58950         Help the merge from coreutils.
58951         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58952         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58953         * m4/tzset.m4: Use it too.
58954
58955 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58956
58957         * modules/tzset: New file.
58958
58959 2003-08-14  Jim Meyering  <jim@meyering.net>
58960
58961         Merges from coreutils.
58962         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58963         variable names, rather than @FNMATCH_H@.
58964         * modules/alloca: Likewise for $(ALLOCA_H).
58965
58966         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58967         the three copies of the literal target, `fnmatch.h'.
58968         * modules/alloca (alloca.h): Likewise.
58969
58970 2003-08-14  Jim Meyering  <jim@meyering.net>
58971
58972         Merge from coreutils.
58973         * m4/tzset.m4: New file.
58974         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58975         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58976         otherwise, AIX 5.1 systems would end up using the latter.
58977         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58978         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58979         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58980         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58981
58982 2003-08-14  Jim Meyering  <jim@meyering.net>
58983
58984         Merge from coreutils.
58985         * lib/obstack.h: Whitespace changes.
58986         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58987         and xcalloc return values.
58988         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58989         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58990         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58991         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58992         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58993         error from mntctl.
58994         Use mntctl's return value to drive the entry-processing loop, since
58995         we can't rely on the value of the vmt_length member in the last
58996         entry.  On some systems doing so could result in exhausting
58997         virtual memory.  Based in part on a patch from Mike Jetzer.
58998
58999 2003-08-14  Jim Meyering  <jim@meyering.net>
59000         and Paul Eggert  <eggert@twinsun.com>
59001
59002         Merges from coreutils, plus other fixes.
59003         * lib/physmem.c: Merge in portability changes from gcc/libiberty
59004         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
59005         for credits and details.  Thanks to Kaveh Ghazi for helping
59006         to keep these files in sync.
59007         (ARRAY_SIZE): Define it.
59008         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
59009         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
59010         (memcasecmp): Don't assume size_t fits in unsigned int.
59011         Remove casts and duplicate code.
59012         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
59013         (memcpy): Remove definition.
59014         Merge in some clean-up and optimization changes from glibc.
59015         [BLOCKSIZE]: Move definition to top of file.
59016         Ensure that it is a multiple of 64.
59017         Rearrange loop exit tests so as to avoid performing an
59018         additional fread after encountering an error or EOF.
59019         * lib/md5.h (md5_uintptr): Define.
59020         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
59021         return to the initial working directory.  Preserve errno
59022         for caller.
59023         * lib/idcache.c: Include "xalloc.h".
59024         (xmalloc, xrealloc): Remove decls.
59025         (getuser): Remove casts no longer required in C89.
59026         * lib/human.c: Include stdio.h, for sprintf.
59027         * lib/group-member.c: Include "xalloc.h".
59028         (xmalloc, xrealloc): Remove decls.
59029         (get_group_info): Remove casts no longer required in C89.
59030         * lib/getusershell.c (readname): Remove casts no longer required in
59031         C89.
59032         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
59033         * lib/getline.c: Whitespace fix, from coreutils.
59034
59035 2003-08-13  Paul Eggert  <eggert@twinsun.com>
59036
59037         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
59038         Check for isascii.
59039
59040         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
59041         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
59042         Undo previous (whitespace-only) change.
59043
59044 2003-08-13  Paul Eggert  <eggert@twinsun.com>
59045
59046         * lib/exclude.c: Include <ctype.h>
59047         (IN_CTYPE_DOMAIN): New macro.
59048         (is_space): New fn.
59049         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
59050         and empty lines.
59051
59052         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
59053         Undo previous (whitespace-only) change.
59054
59055 2003-08-13  Paul Eggert  <eggert@twinsun.com>
59056
59057         * config/srclist-update: Change update back to the old behavior,
59058         leaving whitespace alone.  Use one 'sed' command rather than a
59059         pipeline.
59060         (fixlicense): Now a variable, not a function.
59061         (remove_trailing_blanks): Remove.
59062         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
59063         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
59064         Undo previous (whitespace-only) change.
59065
59066 2003-08-12  Paul Eggert  <eggert@twinsun.com>
59067
59068         Merge from coreutils.
59069         * modules/euidaccess: Add lib_SOURCES, include for new
59070         file euidaccess.h
59071
59072 2003-08-12  Paul Eggert  <eggert@twinsun.com>
59073
59074         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
59075         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
59076         Normalize leading white space and remove trailing white space.
59077
59078         Merge from coreutils
59079         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
59080
59081         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
59082         0.12.1.  These files are now being upgraded automatically by
59083         ../config/srclist-update.
59084
59085 2003-08-12  Paul Eggert  <eggert@twinsun.com>
59086
59087         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
59088         Normalize leading white space and remove trailing white space.
59089         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
59090         notice, as per ../config/srclist-update.
59091
59092         Merge from coreutils.
59093         * lib/euidaccess.h: New file.
59094         * lib/euidaccess.c: Include it.
59095         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
59096         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
59097         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
59098
59099 2003-08-12  Paul Eggert  <eggert@twinsun.com>
59100
59101         * config/srclist-update: Add copyright notice.
59102         (remove_id_lines, remove_trailing_blanks): New constants.
59103         (fixfile): Use them to normalize spacing a bit in copied files.
59104         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
59105         Normalize leading white space and remove trailing white space.
59106
59107         * config/texinfo.tex: Sync with texinfo.
59108
59109         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
59110         strtoul.c from libc, to merge coreutils whitespace changes.
59111
59112         * config/srclist.txt: Get the following m4 files from gettext:
59113         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
59114         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
59115         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
59116         wint_t.m4.
59117
59118 2003-08-12  Karl Berry  <karl@gnu.org>
59119
59120         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
59121         been made.
59122
59123 2003-08-11  Paul Eggert  <eggert@twinsun.com>
59124
59125         * modules/gnu-source, m4/gnu-source.m4:
59126         Remove; we're assuming Autoconf 2.54 or later now.
59127         Suggested by Bruno Haible.
59128         * MODULES.html.sh (func_all_modules): Remove gnu-source.
59129
59130 2003-08-11  Bruno Haible  <bruno@clisp.org>
59131
59132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
59133
59134 2003-08-11  Bruno Haible  <bruno@clisp.org>
59135
59136         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
59137         (vasnprintf): Use it instead of wcslen.
59138
59139 2003-08-11  Bruno Haible  <bruno@clisp.org>
59140
59141         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
59142         value to ensure that _Bool promotes to int. Use #define for _Bool when
59143         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
59144
59145 2003-08-10  Karl Berry  <karl@gnu.org>
59146
59147         * lib/regex.h: update from libc (whitespace fix).
59148
59149 2003-08-09  Paul Eggert  <eggert@twinsun.com>
59150
59151         Merge some files from coreutils.  These changes were
59152         originally made by Jim Meyering.
59153         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
59154         many older Unixes require this.
59155         * lib/alloca.c (alloca): Remove cast to argument of free;
59156         no longer needed in C89.
59157         * lib/alloca_.h, regex.h: Fix white space to match
59158         what GNU indent does.
59159
59160 2003-08-09  Paul Eggert  <eggert@twinsun.com>
59161
59162         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
59163         apparently Emacs's Unicode mode got confused before my 2003-08-05
59164         checkin.
59165
59166 2003-08-08  Paul Eggert  <eggert@twinsun.com>
59167
59168         * m4/extensions.m4: New file.
59169         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
59170         Require gl_USE_SYSTEM_EXTENSIONS.
59171         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
59172         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
59173
59174 2003-08-08  Paul Eggert  <eggert@twinsun.com>
59175
59176         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
59177         * modules/extensions, modules/gnu-source: New files.
59178         * modules/timespec, modules/unlocked-io: Depend on extensions.
59179
59180 2003-08-07  Paul Eggert  <eggert@twinsun.com>
59181
59182         * modules/restrict: New file.
59183         * MODULES.html.sh (func_all_modules): Add restrict.
59184         * modules/regex: Depend on restrict.
59185
59186 2003-08-07  Paul Eggert  <eggert@twinsun.com>
59187
59188         * m4/restrict.m4: New file.
59189         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
59190
59191 2003-08-07  Bruno Haible  <bruno@clisp.org>
59192
59193         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
59194         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
59195
59196 2003-08-07  Bruno Haible  <bruno@clisp.org>
59197
59198         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
59199         makes the module 'getndelim2' compatible with the module 'getline'.
59200
59201 2003-08-05  Paul Eggert  <eggert@twinsun.com>
59202
59203         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
59204         byte with "\201" to avoid glitches when editing that source file
59205         with multi-gnome-terminal.
59206
59207 2003-08-05  Paul Eggert  <eggert@twinsun.com>
59208
59209         * lib/bumpalloc.h: Remove.
59210
59211 2003-08-05  Paul Eggert  <eggert@twinsun.com>
59212
59213         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
59214         * modules/bumpalloc: Remove.
59215
59216 2003-08-04  Paul Eggert  <eggert@twinsun.com>
59217
59218         * lib/getloadavg.c: Change copyright notice and spacing to conform to
59219         GNU coding style.
59220
59221         Merge from coreutils.
59222         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
59223         1. From glibc.
59224         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
59225         from Karl Berry, implemented by Jim Meyering.
59226         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
59227         from Dmitry V. Levin.
59228         Remove anachronistic cast of xrealloc.
59229         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
59230         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
59231         type. Otherwise, it wouldn't compile with at least /bin/cc on
59232         ymp-cray-unicos9.0.2.X.
59233         Combine two mostly-identical uses of alloca into one.
59234         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
59235
59236 2003-08-04  Dave Love  <d.love@dl.ac.uk>
59237
59238         [From Emacs.]
59239
59240         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
59241         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
59242         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
59243         obsolete NLIST_NAME_UNION.
59244         [__GNU__]: Undef BSD and FSCALE.
59245         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
59246
59247 2003-08-03  Paul Eggert  <eggert@twinsun.com>
59248
59249         * lib/stdbool_.h (_Bool): Make it signed char, instead of
59250         an enum type, so that it's guaranteed to promote to int.  See:
59251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
59252
59253 2003-08-03  Karl Berry  <karl@gnu.org>
59254
59255         * config/depcomp: update from automake.
59256
59257 2003-07-31  Paul Eggert  <eggert@twinsun.com>
59258
59259         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
59260         (strerror): Don't assume that a printable int fits in 14 bytes.
59261
59262 2003-07-31  Bruno Haible  <bruno@clisp.org>
59263
59264         * modules/getpass-gnu: New file.
59265         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
59266
59267 2003-07-31  Bruno Haible  <bruno@clisp.org>
59268
59269         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
59270
59271 2003-07-24  Karl Berry  <karl@gnu.org>
59272
59273         * config/missing: update from automake.
59274
59275 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
59276             Bruno Haible  <bruno@clisp.org>
59277
59278         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
59279         * lib/getline.c (getline, getdelim): Likewise.
59280         Remove _GNU_SOURCE define; now it's defined in config.h through
59281         m4/getline.m4.
59282
59283 2003-07-23  Karl Berry  <karl@gnu.org>
59284
59285         * config/config.sub: update from prep.
59286
59287 2003-07-22  Paul Eggert  <eggert@twinsun.com>
59288
59289         * modules/xalloc (Depends-on): Add exitfail.
59290         * modules/xmemcoll: Likewise.
59291
59292 2003-07-22  Paul Eggert  <eggert@twinsun.com>
59293
59294         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
59295         over-parenthesization in macros.
59296
59297         Sync with coreutils.
59298
59299         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
59300         required by C99.
59301
59302         Use `exit_failure' for xalloc and xmemcoll instead of their own
59303         private exit-failure variables.
59304         * lib/xalloc.h (xalloc_exit_failure): Remove.
59305         * lib/xmalloc.c: Likewise.  Include exitfail.h.
59306         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
59307         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
59308         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
59309         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
59310
59311 2003-07-20  Jim Meyering  <jim@meyering.net>
59312
59313         * modules/closeout (Depends-on): Add exitfail.
59314         Suggestion from Bruno Haible.
59315
59316 2003-07-19  Karl Berry  <karl@gnu.org>
59317
59318         * config/config.sub: update from prep.
59319
59320 2003-07-18  Paul Eggert  <eggert@twinsun.com>
59321
59322         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
59323         Remove.
59324         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
59325         to test that it can stand by itself.  Include "exitfail.h".
59326         Clients should set exit_failure instead.
59327         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
59328
59329 2003-07-18  Bruno Haible  <bruno@clisp.org>
59330
59331         * modules/getndelim2: New file.
59332         * modules/getline: Share files with module getndelim2.
59333         * modules/getnline: Depend on getndelim2 instead of sharing files with
59334         it. Add getnline.c to lib_SOURCES.
59335         * MODULES.html.sh (func_all_modules): Add getndelim2.
59336
59337 2003-07-18  Bruno Haible  <bruno@clisp.org>
59338
59339         * m4/getndelim2.m4: New file.
59340         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
59341         invoke gl_PREREQ_GETNDELIM2.
59342         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
59343         gl_PREREQ_GETNDELIM2.
59344         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
59345         gl_GETNDELIM2.
59346
59347 2003-07-18  Bruno Haible  <bruno@clisp.org>
59348
59349         * lib/getndelim2.h: New file.
59350         * lib/getndelim2.c: Make into a module of its own. Include config.h,
59351         getndelim2.h.
59352         (getndelim2): Make non-static. Change return type to ssize_t.
59353         * lib/getline.h: Change argument names.
59354         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
59355         * lib/getnline.c: Include getndelim2.h.
59356
59357 2003-07-18  Andreas Schwab  <schwab@suse.de>
59358
59359         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
59360
59361 2003-07-17  Karl Berry  <karl@gnu.org>
59362
59363         * config/config.sub: update from prep.
59364
59365 2003-07-17  Bruno Haible  <bruno@clisp.org>
59366
59367         * modules/getnline: New file.
59368         * modules/getline: Add lib/getndelim2.c to source file list.
59369         * MODULES.html.sh (func_all_modules): Add getnline.
59370
59371 2003-07-17  Bruno Haible  <bruno@clisp.org>
59372
59373         * m4/getnline.m4: New file.
59374
59375 2003-07-17  Bruno Haible  <bruno@clisp.org>
59376
59377         * m4/Makefile.am.in: Remove file.
59378         * m4/Makefile.am: Remove file.
59379         * m4/Makefile.in: Remove file.
59380
59381 2003-07-17  Bruno Haible  <bruno@clisp.org>
59382
59383         * lib/getnline.h: New file.
59384         * lib/getnline.c: New file.
59385         * lib/getndelim2.c: New file, extracted from getline.c.
59386         (getndelim2): Renamed from getdelim2, with added nmax argument.
59387         * lib/getline.c: Include getndelim2.c.
59388         (getdelim2): Moved out to getndelim2.c.
59389         (getline, getdelim): Update.
59390
59391 2003-07-17  Bruno Haible  <bruno@clisp.org>
59392
59393         * lib/Makefile.am: Remove file.
59394         * lib/Makefile.in: Remove file.
59395
59396 2003-07-17  Bruno Haible  <bruno@clisp.org>
59397
59398         * configure.in: Remove file.
59399         * Makefile.in: Remove file.
59400
59401 2003-07-17  Bruno Haible  <bruno@clisp.org>
59402
59403         * MODULES.html.sh: Put the </BODY> right before </HTML>.
59404
59405 2003-07-16  Karl Berry  <karl@gnu.org>
59406
59407         * config/srclist-update: was running fixlicense twice, which caused
59408                 texinfo.tex to be nullified for some reason.  Simplify,
59409                 $gplsrc is no longer needed as far as I can see?
59410
59411 2003-07-16  Jim Meyering  <jim@meyering.net>
59412
59413         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
59414
59415 2003-07-15  Paul Eggert  <eggert@twinsun.com>
59416
59417         * config/srclist.txt: Get the following files from gettext-runtime/intl
59418         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
59419         ref-del.sin.  From Bruno Haible.
59420         * config/srclist-update (fixfile): Change grep pattern again, since the
59421         previous fix didn't work (there was another trailing $).  Use
59422         '[$]' to escape the $s.
59423
59424 2003-07-15  Karl Berry  <karl@gnu.org>
59425
59426         * lib/vasnprintf.c: update from gettext.
59427
59428 2003-07-15  Karl Berry  <karl@gnu.org>
59429
59430         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
59431         gets expanded when surrounded by '$'.
59432
59433 2003-07-15  Jim Meyering  <jim@meyering.net>
59434
59435         * modules/save-cwd: Don't depend on error.  From Derek Price.
59436
59437 2003-07-15  Jim Meyering  <jim@meyering.net>
59438
59439         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
59440
59441 2003-07-14  Simon Josefsson  <jas@extundo.com>
59442
59443         * modules/mempcpy: New file.
59444         * MODULES.html.sh (func_all_modules): Add mempcpy.
59445
59446 2003-07-14  Simon Josefsson  <jas@extundo.com>
59447
59448         * m4/mempcpy.m4: New file.
59449
59450 2003-07-14  Simon Josefsson  <jas@extundo.com>
59451
59452         * lib/mempcpy.h: New file.
59453         * lib/mempcpy.c: New file.
59454
59455 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59456
59457         * modules/getdate, modules/posixtm: Depend on mktime.
59458
59459 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59460
59461         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
59462         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
59463         unicodeio.c, unicodeio.h, unlocked-io.h:
59464         Switch from LGPL to GPL.
59465
59466 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59467
59468         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
59469         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
59470         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
59471         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
59472         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
59473         updated automatically by ../config/srclist-update.  This changes
59474         their license from LPGL to GPL.
59475
59476 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59477
59478         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
59479         assumed to refer to the root of the most recent stable gettext version.
59480         * config/srclistvars.sh: Add defaults for eggert.
59481         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
59482         Match "This program" as well as "The program".  This is needed
59483         for gettext.
59484
59485 2003-07-14  Jim Meyering  <jim@meyering.net>
59486
59487         Don't emit diagnostics.  Let callers do that.
59488         * lib/save-cwd.c: Don't include "error.h".
59489         (save_cwd): Don't call error.  Ensure that errno is valid
59490         when returning nonzero.
59491
59492         * lib/save-cwd.h (restore_cwd): Update prototype.
59493         * lib/save-cwd.c (restore_cwd): Remove two parameters.
59494         Simplify.  Don't call error upon failure.  Let callers do that.
59495         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
59496         when auditing is enabled.  But don't bother updating the #if.
59497
59498 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
59499
59500         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
59501         it breaks C++ compilation.
59502         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
59503
59504 2003-07-10  Simon Josefsson  <jas@extundo.com>
59505
59506         * modules/strchrnul (Makefile.am): Add strchrnul.h.
59507
59508 2003-07-10  Jim Meyering  <jim@meyering.net>
59509
59510         * m4/clock_time.m4: Remove trailing blank.
59511         * m4/intmax_t.m4: Likewise.
59512
59513 2003-07-10  Jim Meyering  <jim@meyering.net>
59514
59515         * lib/vasnprintf.c: Remove trailing blanks.
59516         Make cpp indentation consistent.
59517
59518 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59519
59520         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
59521         posixver.c, strftime.c, strnlen.c, strverscmp.c:
59522         Switch from LGPL to GPL.
59523
59524 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59525
59526         * config/srclist.txt: Sort sublists.  Add
59527         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
59528         that differ from gnulib for one reason or another; we'd like this list
59529         to be smaller but for now let's document what we have.
59530
59531 2003-07-08  Paul Eggert  <eggert@twinsun.com>
59532
59533         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
59534         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
59535         and sweeter "eval x=$x".
59536         * config/srclist.txt: Get lib/argp* from glibc.
59537
59538 2003-07-07  Paul Eggert  <eggert@twinsun.com>
59539
59540         * lib/mktime.c: Fix some boundary cases and remove need for floating
59541         point.
59542
59543         Issue a compile-time diagnostic if time_t is floating point, or if
59544         two's complement arithmetic is not in effect, or if arithmetic
59545         right shift does not propagate the sign.  These assumptions were
59546         all in the original code but they weren't checked.
59547
59548         (TIME_T_MIDPOINT, verify): New macros.
59549         (__isleap): Remove; it has integer overflow problems.
59550         (leapyear): New function, without those problems.
59551         (ydhms_tm_diff): Remove; splitting into two parts.
59552         (ydhms_diff): New function, containing the arithmetic part of
59553         the old ydhms_tm_diff function.  Issue a compile-time
59554         diagnostic if we are not using C99 integer division.
59555         Avoid casts when possible.
59556         (guess_time_tm): New function, containing the checking part of
59557         the old ydhms_tm_diff function.  Return the new value, rather than
59558         the difference between it and the old.  Accept a new argument T
59559         so that *T specifies the old value.  Check for overflow in the result.
59560
59561         (__mktime_internal): Use a time_t offset, not a long int offset.
59562         This undoes the 2003-06-04 change, which is no longer needed now
59563         that we have better overflow checking.
59564         (localtime_offset): Likewise.
59565
59566         (__mktime_internal): Avoid harmful overflow on hosts where time_t
59567         and long are 64-bit but int is only 32-bit.
59568         (ydhms_diff): Use long int to store year1 and yday1.
59569         Issue a compile-time diagnostic if long int is not wide enough.
59570
59571         (__mktime_internal): Use long int to store adjusted year and yday.
59572         Use plain C rather than preprocessor commands, if that doesn't
59573         affect efficiency.
59574         Check for overflow (and try to repair) after each probe
59575         rather than checking only at the very end.  This avoids some bugs
59576         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
59577         does not equal GMT offset at maximum time).
59578         Use integer to check for overflow rather than floating point; this
59579         is more portable to non-IEEE hosts, and is a tad faster.
59580         When we detect that we are oscillating between two values,
59581         don't check whether tm_isdst has the requested value, since
59582         we already know the answer.  When tm_isdst has the wrong value,
59583         use a different heuristic to find the right one, based on the
59584         extreme values actually observed in practice in tz2003a,
59585         rather than the (overly optimistic) "previous 3 calendar quarters".
59586
59587         (not_equal_tm, print_tm, check_result): Use "const T" rather than
59588         "T const" to accommodate glibc style.
59589         (check_result): Use less-confusing report format.  "long" -> "long int.
59590         (main): Likewise.
59591         Don't loop if the iteration overflows time_t.
59592         Allow a negative step in the iteration.
59593
59594 2003-07-06  Karl Berry  <karl@gnu.org>
59595
59596         * config/depcomp: update from automake.
59597         * config/config.sub: update from prep.
59598
59599 2003-07-03  Karl Berry  <karl@gnu.org>
59600
59601         * config/config.guess: update from prep.
59602
59603 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59604
59605         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
59606         xreadlink.c now includes it unconditionally.
59607
59608 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59609
59610         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
59611         having it depend on HAVE_SYS_TYPES_H.
59612
59613 2003-07-01  Bruno Haible  <bruno@clisp.org>
59614
59615         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
59616         <sys/types.h> should be sufficient.
59617         Reported by Paul Eggert.
59618
59619 2003-06-26  Karl Berry  <karl@gnu.org>
59620
59621         * config/depcomp: update from automake.
59622
59623 2003-06-26  Bruno Haible  <bruno@clisp.org>
59624
59625         * modules/human: Depend on module stdbool.
59626
59627 2003-06-25  Bruno Haible  <bruno@clisp.org>
59628
59629         * modules/readlink: New file.
59630         * modules/xreadlink: Depend on it.
59631         * MODULES.html.sh (func_all_modules): Add readlink.
59632
59633 2003-06-25  Bruno Haible  <bruno@clisp.org>
59634
59635         * m4/readlink.m4: New file.
59636
59637 2003-06-25  Bruno Haible  <bruno@clisp.org>
59638
59639         * lib/readlink.c: New file.
59640
59641 2003-06-22  Karl Berry  <karl@gnu.org>
59642
59643         * config/srclist.txt: update mkinstalldirs from automake.
59644         * config/mkinstalldirs: update.
59645
59646 2003-06-22  Bruno Haible  <bruno@clisp.org>
59647
59648         Portability to mingw32.
59649         * m4/ssize_t.m4: New file, from GNU gettext.
59650         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59651         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59652
59653 2003-06-22  Bruno Haible  <bruno@clisp.org>
59654
59655         * modules/safe-read: Add m4/ssize_t.m4.
59656         * modules/xreadlink: Add m4/ssize_t.m4.
59657
59658 2003-06-20  Bruno Haible  <bruno@clisp.org>
59659
59660         Assume C89, so PARAMS isn't needed.
59661         * lib/unicodeio.h (PARAMS): Remove.
59662         * lib/unicodeio.c: Don't use PARAMS.
59663
59664 2003-06-18  Karl Berry  <karl@gnu.org>
59665
59666         * config/config.{guess,sub}: update from prep.
59667
59668 2003-06-18  Jim Meyering  <jim@meyering.net>
59669
59670         Merge changes from coreutils.
59671         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59672         Remove explicit declarations of xmalloc and realloc.
59673         Include xalloc.h.
59674         (read_utmp): Remove anachronistic cast of xmalloc.
59675
59676 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59677
59678         Assume C89, so PARAMS isn't needed.
59679         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59680         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59681         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59682         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59683         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59684         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59685         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59686         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59687         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59688         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59689         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59690         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59691         no longer needed. Anyway, config.h should always be included before any
59692         other file.
59693
59694 2003-06-11  Simon Josefsson  <jas@extundo.com>
59695
59696         * modules/sysexits: New file.
59697         * MODULES.html.sh (func_all_modules): Add sysexits.
59698
59699 2003-06-11  Simon Josefsson  <jas@extundo.com>
59700
59701         * lib/sysexit_.h: New file.
59702
59703 2003-06-11  Derek Price  <derek@ximbiot.com>
59704
59705         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59706         necessary.
59707
59708 2003-06-11  Bruno Haible  <bruno@clisp.org>
59709
59710         * m4/sysexits.m4: New file.
59711
59712 2003-06-10  Simon Josefsson  <jas@extundo.com>
59713
59714         * lib/argp.h: New file, from glibc.
59715         * lib/argp-ba.c: New file, from glibc.
59716         * lib/argp-eexst.c: New file, from glibc.
59717         * lib/argp-fmtstream.c: New file, from glibc.
59718         * lib/argp-fmtstream.h: New file, from glibc.
59719         * lib/argp-fs-xinl.c: New file, from glibc.
59720         * lib/argp-help.c: New file, from glibc.
59721         * lib/argp-namefrob.h: New file, from glibc.
59722         * lib/argp-parse.c: New file, from glibc.
59723         * lib/argp-pv.c: New file, from glibc.
59724         * lib/argp-pvh.c: New file, from glibc.
59725         * lib/argp-xinl.c: New file, from glibc.
59726
59727 2003-06-10  Simon Josefsson  <jas@extundo.com>
59728
59729         * modules/strchrnul: New file.
59730
59731 2003-06-10  Simon Josefsson  <jas@extundo.com>
59732
59733         * modules/argp: New file.
59734
59735 2003-06-10  Simon Josefsson  <jas@extundo.com>
59736
59737         * m4/strchrnul.m4: New file.
59738
59739 2003-06-10  Simon Josefsson  <jas@extundo.com>
59740
59741         * lib/strchrnul.h: New file.
59742         * lib/strchrnul.c: New file.
59743
59744 2003-06-10  Bruno Haible  <bruno@clisp.org>
59745
59746         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59747
59748 2003-06-07  Karl Berry  <karl@gnu.org>
59749
59750         * config/config.{guess,sub}: update from prep.
59751
59752 2003-06-07  Jim Meyering  <jim@meyering.net>
59753
59754         * modules/strtod: Use $(...) notation, not @...@ for
59755         AC_REPLACE'd variables.
59756         * modules/localcharset: Likewise.
59757
59758 2003-06-07  Jim Meyering  <jim@meyering.net>
59759
59760         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59761         in place of my name in the copyright comment.
59762         Remove definition and uses of __P.
59763
59764         From coreutils.
59765         * lib/stat.c: Don't declare xmalloc explicitly.
59766         Instead, include "xalloc.h".
59767         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59768         xrealloc, and xcalloc return values.
59769         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59770         Improve comment.
59771         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59772
59773 2003-06-07  Bruno Haible  <bruno@clisp.org>
59774
59775         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59776         avoid AC_CONFIG_LINKS.
59777         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59778         fnmatch.h, to avoid AC_CONFIG_LINKS.
59779         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59780
59781 2003-06-07  Bruno Haible  <bruno@clisp.org>
59782
59783         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59784         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59785         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59786         directory.
59787         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59788         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59789         directory.
59790
59791 2003-06-06  Jim Meyering  <jim@meyering.net>
59792
59793         Merge from coreutils.
59794         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59795         Consolidate declarations and initializations of *_base* locals.
59796
59797         Merge from coreutils.
59798         This avoids a core dump on systems without GNU putenv,
59799         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59800         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59801         (unsetenv): New static function, from GNU libc.
59802         (rpl_putenv): Use it.
59803
59804         * lib/modechange.c: Remove trailing blanks.
59805
59806         Merge from coreutils.
59807         * lib/fsusage.c: Remove declaration of statfs.
59808         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59809
59810         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59811
59812 2003-06-06  Jim Meyering  <jim@meyering.net>
59813
59814         * lib/stdbool_.h: Renamed from stdbool.h.in.
59815
59816 2003-06-06  Jim Meyering  <jim@meyering.net>
59817             Bruno Haible  <bruno@clisp.org>
59818
59819         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59820         Adjust Makefile.am snippet not to redirect directly to target.
59821         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59822
59823 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59824
59825         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59826         mismatch, look in future quarters as well as past.  This fixes a
59827         bug when processing fall-backwards gaps immediately after a long
59828         period of daylight-saving time.
59829
59830         * lib/mktime.c: Assume freestanding C89 or better.
59831         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59832         (__P): Remove; not used.
59833         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59834         (mktime, not_equal_tm, print_tm, check_result,
59835         main): Use prototypes.  Use const * where appropriate.
59836         (main): Fix typo in testing code that uncovered by above changes.
59837         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59838
59839 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59840
59841         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59842         locale.h, localeconv.  This merges changes from coreutils.
59843
59844         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59845         It can be removed after the next Autoconf is released.
59846         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59847         needed.
59848
59849 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59850
59851         * lib/mktime.c: Fix Debian bug 177940
59852         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59853         (localtime_offset): Now long int, not time_t, because we want it
59854         to be guaranteed to be signed.  All uses changed.
59855         (__mktime_internal): If overflow would occur when adding offset,
59856         don't add it.
59857
59858         Merge 'human' changes from coreutils.  Rewrite to support
59859         locale-specific notations like thousands separators.
59860         * lib/human.c: Simplify authorship notice.
59861         Include human.h immediately after config.h.
59862         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59863         <limits.h>: Do not include, since human.h does.
59864         (SIZE_MAX, UINTMAX_MAX): New macros.
59865         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59866         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59867         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59868         (power_letter): Renamed from suffixes.
59869         (generate_suffix_backwards): Remove.
59870         (adjust_value): Now takes int style (because of human.h changes)
59871         and long double value (for greater precision on some platforms).
59872         (group_number): New function.
59873         (human_readable): Use it.  Use integer options, not enum.
59874         Put the options before the sizes in the arg list.
59875         Support all the new options.
59876         The old human_readable function has been removed;
59877         use inttostr.h instead.
59878         (human_readable, default_block_size, humblock):
59879         Use uintmax_t, not int, for block sizes.
59880         (human_readable_inexact, block_size_types): Remove.
59881         (block_size_opts): New constant.
59882         (human_options): Renamed from human_block_size, with new signature
59883         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59884         * lib/human.h: Add copyright and authorship notice.
59885         Include <limits.h> and <stdbool.h> unconditionally.
59886         (PARAMS): Remove.  All uses removed.
59887         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59888         (enum human_inexact_style): Remove tag; now a nameless enum.
59889         (human_floor, human_ceiling, human_round_to_even): Now have
59890         values 2, 0, 1 rather than -1, 1, 0.
59891         (human_group_digits, human_suppress_point_zero, human_autoscale,
59892         human_base_1024, human_SI, human_B): New constants.
59893         (human_readable_inexact, human_block_size): Remove.
59894         (human_readable): Size args are now uintmax_t, not int.
59895         (human_options): New decl.
59896
59897         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59898         unnecessary now that we assume C89 or better.  This change
59899         imported from coreutils.
59900
59901         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59902         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59903         in the 2003-05-30 sync from glibc.
59904
59905         .h files should stand alone, but we shouldn't include <sys/types.h>
59906         if we can get away with just <stddef.h>.
59907
59908         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59909         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59910         rather than <sys/types.h>, as we merely need size_t.
59911         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59912         to get size_t.
59913         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59914         Include <stdio.h>, to get FILE.
59915         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59916         memcasecmp.h has included <stddef.h> and all we need is size_t.
59917         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59918         our interface, instead of including <sys/types.h>
59919
59920 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59921
59922         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59923         now, as glibc mktime is buggy on non-glibc systems.
59924
59925 2003-06-03  Karl Berry  <karl@gnu.org>
59926
59927         * config/config.sub: update from prep.
59928
59929 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59930
59931         [from coreutils]
59932         Fix some minor time-related bugs with POSIX time arguments.
59933         Some valid time stamps were being rejected (notably -1, and
59934         time stamps before 1900 on 64-bit hosts).  And some invalid
59935         time stamps were being accepted, e.g. September 31.
59936
59937         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59938         that we can return (time_t) -1 successfully.
59939         * lib/posixtm.c: Likewise.
59940         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59941         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59942         (t): Remove static var.
59943         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59944         of static var.  All uses changed.
59945         (year): Do not reject years before 1900; they can occur with
59946         64-bit time_t.
59947         (posix_time_parse): Do not check for out-of-range components;
59948         that is now the caller's responsibility, since our checks were
59949         only approximations.
59950         (posixtime): Use mktime to check for out-of-range components,
59951         since it knows them exactly.
59952         If mktime returns (time_t) -1, check whether an error actually occurred
59953         by invoking localtime on -1.
59954         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59955         posixtime failures better.
59956         Improve the test data (in comments only).
59957
59958 2003-06-02  Karl Berry  <karl@gnu.org>
59959
59960         * config/mkinstalldirs (version): new variable.
59961         (--version): new option.
59962         (usage): improve message.
59963
59964 2003-05-30  Karl Berry  <karl@gnu.org>
59965
59966         * lib/mktime.c: update from libc.
59967
59968 2003-05-30  Bruno Haible  <bruno@clisp.org>
59969
59970         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59971         * config/config.rpath: Upgrade to gettext-0.12.1.
59972
59973 2003-05-30  Bruno Haible  <bruno@clisp.org>
59974
59975         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59976         * m4/nls.m4: New file, from gettext-0.12.1.
59977         * m4/po.m4: New file, from gettext-0.12.1.
59978         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59979
59980 2003-05-30  Bruno Haible  <bruno@clisp.org>
59981
59982         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59983         * lib/localcharset.h: Likewise.
59984         * lib/localcharset.c: Likewise.
59985
59986 2003-05-29  Karl Berry  <karl@gnu.org>
59987
59988         * config/config.rpath: update from gettext.
59989
59990 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59991
59992         Assume the headers required for C89 freestanding compilers.
59993         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59994         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59995         * m4/human.m4 (gl_HUMAN): Likewise.
59996         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59997         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59998         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59999         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
60000         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60001         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
60002
60003 2003-05-28  Paul Eggert  <eggert@twinsun.com>
60004
60005         Assume the headers required for C89 freestanding compilers.
60006         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
60007         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
60008         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
60009         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
60010         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
60011         define, since <limits.h> is guaranteed to do that.
60012         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
60013         * lib/exclude.c: Include <stdbool.h> unconditionally.
60014         * lib/tempname.c: Include <stddef.h> unconditionally.
60015         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
60016         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
60017         <stddef.h> does that.
60018         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
60019         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
60020         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
60021         needed.
60022         * lib/xstrtol.c: Likewise.
60023         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
60024         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
60025
60026         * lib/addext.c (addext): Use assignment rather than cast, to avoid
60027         warnings on some platforms.
60028
60029         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
60030         arbitrarily.
60031
60032 2003-05-26  Jim Meyering  <jim@meyering.net>
60033
60034         Merge in a change from coreutils:
60035         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
60036         that is guaranteed to be `no'.  Use `no_such_member' to indicate
60037         that condition, rather than `-1' which is slightly misleading.
60038         Change the name of the cache variable to have the gl_ prefix.
60039         Prompted by a patch from Richard Dawe for DJGPP.
60040
60041 2003-05-24  Karl Berry  <karl@gnu.org>
60042
60043         * config/config.guess: update from prep.
60044
60045 2003-05-22  Karl Berry  <karl@gnu.org>
60046
60047         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
60048
60049 2003-05-20  Karl Berry  <karl@gnu.org>
60050
60051         * config/config.guess: update from prep.
60052
60053 2003-05-18  Karl Berry  <karl@gnu.org>
60054
60055         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
60056         might actually be set by the user.
60057
60058         * config/depcomp, install-sh, mdate-sh: update from automake.
60059
60060 2003-05-17  Bruno Haible  <bruno@clisp.org>
60061
60062         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
60063         invalid expansion for AC_EGREP_CPP.
60064         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
60065         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
60066         Suggested by Akim Demaille <akim@epita.fr> in
60067         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
60068
60069 2003-05-12  Jim Meyering  <jim@meyering.net>
60070
60071         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
60072         the space-padded-by-default conversion specifiers, %e, %k, %l.
60073
60074 2003-05-12  Bruno Haible  <bruno@clisp.org>
60075
60076         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
60077         the string is longer than 4 KB.
60078
60079 2003-05-11  Karl Berry  <karl@gnu.org>
60080
60081         * config/config.{guess,sub}: update from prep.
60082
60083 2003-05-09  Bruno Haible  <bruno@clisp.org>
60084
60085         * modules/error: Add m4/strerror_r.m4 to file list.
60086
60087 2003-05-03  Bruno Haible  <bruno@clisp.org>
60088
60089         Upgrade to Unicode-4.0.
60090         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
60091         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
60092         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
60093         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
60094         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
60095         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
60096         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
60097         Change width of U+E0100..U+E01EF from 1 to 0.
60098
60099 2003-04-25  Jim Meyering  <jim@meyering.net>
60100
60101         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
60102         of type size_t, not int.
60103
60104 2003-04-25  Bruno Haible  <bruno@clisp.org>
60105
60106         * lib/copy-file.c: Include <stddef.h>, for size_t.
60107
60108 2003-04-21  Paul Eggert  <eggert@twinsun.com>
60109
60110         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
60111         code which expansion is under static control.  Patch imported from
60112         Akim Demaille's patch to Bison; see
60113         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
60114
60115 2003-04-14  Bruno Haible  <bruno@clisp.org>
60116
60117         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
60118
60119 2003-04-11  Jim Meyering  <jim@meyering.net>
60120
60121         Merge changes from Coreutils.
60122
60123         2003-03-22  Jim Meyering  <jim@meyering.net>
60124
60125         * lib/strftime.c (widen): Cast alloca return value to proper type.
60126
60127         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
60128
60129         From GNU libc.
60130         * lib/strftime.c (my_strftime): Handle very large width
60131         specifications for numeric values correctly.  Improve checks for
60132         overflow.
60133
60134         2003-01-19  Jim Meyering  <jim@meyering.net>
60135
60136         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
60137         definitions.
60138         (nl_get_alt_digit) [! defined my_strftime]: Define.
60139         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
60140         _nl_get_alt_digit and _nl_get_walt_digit.
60141
60142         * lib/strftime.c (my_strftime): Merge in locale-related changes from
60143         libc. These changes have no effect outside of _LIBC.
60144
60145 2003-04-10  Bruno Haible  <bruno@clisp.org>
60146
60147         * modules/findprog: New file.
60148         * MODULES.html.sh (func_all_modules): Add it.
60149
60150 2003-04-10  Bruno Haible  <bruno@clisp.org>
60151
60152         * m4/findprog.m4: New file.
60153         * m4/eaccess.m4: New file.
60154
60155 2003-04-10  Bruno Haible  <bruno@clisp.org>
60156
60157         * lib/findprog.h: New file, from GNU gettext.
60158         * lib/findprog.c: New file, from GNU gettext.
60159
60160 2003-04-05  Jim Meyering  <jim@meyering.net>
60161
60162         Merge changes from Coreutils.
60163
60164         * lib/exclude.h (PARAMS): Remove definition and uses.
60165         * lib/exclude.c: Remove uses of `PARAMS'.
60166
60167         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
60168         Add test-cases for DOS filenames. Declare program_name.
60169         (main): Set up program_name.  Patch by Rich Dawe.
60170
60171         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
60172         error from mntctl.
60173         Use mntctl's return value to drive the entry-processing loop, since
60174         we can't rely on the value of the vmt_length member in the last
60175         entry.  On some systems doing so could result in exhausting
60176         virtual memory.  Based in part on a patch from Mike Jetzer.
60177
60178 2003-04-04  Bruno Haible  <bruno@clisp.org>
60179
60180         * modules/linebreak: New file.
60181         * MODULES.html.sh (func_all_modules): Add it.
60182
60183 2003-04-04  Bruno Haible  <bruno@clisp.org>
60184
60185         * m4/linebreak.m4: New file.
60186
60187 2003-04-04  Bruno Haible  <bruno@clisp.org>
60188
60189         * lib/linebreak.h: New file, from GNU gettext.
60190         * lib/linebreak.c: New file, from GNU gettext with slight
60191         modifications.
60192         * lib/lbrkprop.h: New file, from GNU gettext.
60193
60194 2003-04-03  Bruno Haible  <bruno@clisp.org>
60195
60196         * modules/utf8-ucs4: New file.
60197         * modules/utf16-ucs4: New file.
60198         * modules/ucs4-utf8: New file.
60199         * modules/ucs4-utf16: New file.
60200         * MODULES.html.sh (func_all_modules): Add them.
60201
60202 2003-04-03  Bruno Haible  <bruno@clisp.org>
60203
60204         * m4/utf-ucs4.m4: New file.
60205         * m4/ucs4-utf.m4: New file.
60206
60207 2003-04-03  Bruno Haible  <bruno@clisp.org>
60208
60209         * lib/utf8-ucs4.h: New file, from GNU gettext.
60210         * lib/utf16-ucs4.h: New file, from GNU gettext.
60211         * lib/ucs4-utf8.h: New file, from GNU gettext.
60212         * lib/ucs4-utf16.h: New file, from GNU gettext.
60213
60214 2003-04-02  Bruno Haible  <bruno@clisp.org>
60215
60216         * modules/binary-io: New file.
60217         * MODULES.html.sh (func_all_modules): Add it.
60218
60219 2003-04-02  Bruno Haible  <bruno@clisp.org>
60220
60221         * lib/binary-io.h: New file, from GNU gettext.
60222
60223 2003-04-01  Bruno Haible  <bruno@clisp.org>
60224
60225         * modules/pathname: New file.
60226         * MODULES.html.sh (func_all_modules): Add it.
60227
60228 2003-04-01  Bruno Haible  <bruno@clisp.org>
60229
60230         * lib/pathname.h: New file, from GNU gettext.
60231         * lib/concatpath.c: New file, from GNU gettext.
60232
60233 2003-03-30  Bruno Haible  <bruno@clisp.org>
60234
60235         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
60236
60237 2003-03-30  Bruno Haible  <bruno@clisp.org>
60238
60239         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
60240         function chown() doesn't exist.
60241
60242 2003-03-28  Bruno Haible  <bruno@clisp.org>
60243
60244         * modules/copy-file: New file.
60245         * MODULES.html.sh (func_all_modules): Add it.
60246
60247 2003-03-28  Bruno Haible  <bruno@clisp.org>
60248
60249         * m4/copy-file.m4: New file.
60250
60251 2003-03-28  Bruno Haible  <bruno@clisp.org>
60252
60253         * lib/copy-file.h: New file, from GNU gettext.
60254         * lib/copy-file.c: New file, from GNU gettext.
60255
60256 2003-03-18  Jim Meyering  <jim@meyering.net>
60257
60258         * lib/quote.c (quote_n): Fix typo in comment.
60259
60260 2003-03-18  Bruno Haible  <bruno@clisp.org>
60261
60262         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
60263         checking.
60264         * m4/onceonly_2_57.m4: Likewise.
60265
60266 2003-03-17  Bruno Haible  <bruno@clisp.org>
60267
60268         * m4/onceonly.m4: Require autoconf 2.54 or newer.
60269         (m4_quote): Remove macro.
60270         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
60271
60272 2003-03-14  Jim Meyering  <jim@meyering.net>
60273
60274         Merge changes from Coreutils.
60275         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
60276         to be const, in order to avoid warnings.
60277         (obstack_room): Likewise.
60278         (obstack_empty_p): Likewise.
60279
60280 2003-03-14  Bruno Haible  <bruno@clisp.org>
60281
60282         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
60283         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
60284
60285 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60286
60287         Merge changes from Bison.
60288         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
60289         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
60290         when compiling Bison 1.875's `bitset bset = obstack_alloc
60291         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
60292         * lib/hash.c: Include <stdbool.h> unconditionally.
60293
60294 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60295
60296         * m4/onceonly.m4 (m4_quote): New macro.
60297         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
60298         Quote AC_FOREACH variable-expansions properly.
60299
60300 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60301
60302         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
60303
60304 2003-03-09  Paul Eggert  <eggert@twinsun.com>
60305
60306         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
60307         Reported by Bruce Becker; see:
60308         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
60309
60310 2003-03-03  Paul Eggert  <eggert@twinsun.com>
60311             Bruno Haible  <bruno@clisp.org>
60312
60313         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
60314         Reported by John Hughes, see
60315         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
60316
60317 2003-02-20  Bruno Haible  <bruno@clisp.org>
60318
60319         * MODULES.html.sh (func_all_modules): Add poll.
60320
60321 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60322
60323         * modules/poll: New file.
60324
60325 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60326
60327         * lib/poll_.h: New file.
60328         * lib/poll.c: New file.
60329
60330 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60331
60332         * m4/poll.m4: New file.
60333
60334 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60335
60336         * modules/mathl: New file.
60337
60338 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60339
60340         * lib/mathl.h: New file.
60341         * lib/acosl.c: New file.
60342         * lib/asinl.c: New file.
60343         * lib/atanl.c: New file.
60344         * lib/ceill.c: New file.
60345         * lib/cosl.c: New file.
60346         * lib/expl.c: New file.
60347         * lib/floorl.c: New file.
60348         * lib/frexpl.c: New file.
60349         * lib/ldexpl.c: New file.
60350         * lib/logl.c: New file.
60351         * lib/sincosl.c: New file.
60352         * lib/sinl.c: New file.
60353         * lib/sqrtl.c: New file.
60354         * lib/tanl.c: New file.
60355         * lib/trigl.c: New file.
60356         * lib/trigl.h: New file.
60357
60358 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60359
60360         * m4/mathl.m4: New file.
60361
60362 2003-02-18  Bruno Haible  <bruno@clisp.org>
60363
60364         * MODULES.html.sh (func_all_modules): Add mathl.
60365
60366 2003-02-17  Bruno Haible  <bruno@clisp.org>
60367
60368         * modules/mkdtemp: New module.
60369         * MODULES.html.sh (func_all_modules): Add it.
60370
60371 2003-02-17  Bruno Haible  <bruno@clisp.org>
60372
60373         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
60374
60375 2003-02-17  Bruno Haible  <bruno@clisp.org>
60376
60377         * lib/mkdtemp.h: New file, from GNU gettext.
60378         * lib/mkdtemp.c: New file, from GNU gettext.
60379
60380 2003-02-02  Jim Meyering  <jim@meyering.net>
60381
60382         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
60383         e.g. glibc-2.2.93.
60384
60385 2003-01-31  Bruno Haible  <bruno@clisp.org>
60386
60387         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
60388         'rpl_rename'.
60389         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
60390         'rpl_strnlen'.
60391         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
60392         'rpl_strtod'.
60393         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
60394         'rpl_utime'.
60395
60396 2003-01-31  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/rename.c: #undef rename before defining rpl_rename.
60399         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
60400
60401 2003-01-30  Bruno Haible  <bruno@clisp.org>
60402
60403         * modules/vasnprintf, modules/vasprintf: New modules.
60404         * MODULES.html.sh (func_all_modules): Add them.
60405
60406 2003-01-30  Bruno Haible  <bruno@clisp.org>
60407
60408         * m4/signed.m4: New file, from GNU gettext.
60409         * m4/longdouble.m4: New file, from GNU gettext.
60410         * m4/wchar_t.m4: New file, from GNU gettext.
60411         * m4/wint_t.m4: New file, from GNU gettext.
60412         * m4/vasnprintf.m4: New file.
60413         * m4/vasprintf.m4: New file.
60414
60415 2003-01-30  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/printf-args.h: New file, from GNU gettext.
60418         * lib/printf-args.c: New file, from GNU gettext.
60419         * lib/printf-parse.h: New file, from GNU gettext.
60420         * lib/printf-parse.c: New file, from GNU gettext.
60421         * lib/vasnprintf.h: New file, from GNU gettext.
60422         * lib/vasnprintf.c: New file, from GNU gettext.
60423         * lib/asnprintf.c: New file, from GNU gettext.
60424         * lib/vasprintf.h: New file, from GNU gettext with modifications.
60425         * lib/vasprintf.c: New file, from GNU gettext.
60426         * lib/asprintf.c: New file, from GNU gettext.
60427
60428 2003-01-29  Bruno Haible  <bruno@clisp.org>
60429
60430         * modules/stpncpy: New module.
60431         * MODULES.html.sh (func_all_modules): Add it.
60432
60433 2003-01-29  Bruno Haible  <bruno@clisp.org>
60434
60435         * m4/stpncpy.m4: New file.
60436
60437 2003-01-29  Bruno Haible  <bruno@clisp.org>
60438
60439         * lib/stpncpy.h: New file, from GNU gettext with modifications.
60440         * lib/stpncpy.c: New file, from GNU gettext with modifications.
60441
60442 2003-01-28  Bruno Haible  <bruno@clisp.org>
60443
60444         * modules/c-ctype: New module.
60445         * MODULES.html.sh (func_all_modules): Add it.
60446
60447 2003-01-28  Bruno Haible  <bruno@clisp.org>
60448
60449         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
60450         Paul Eggert.
60451         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
60452         Paul Eggert.
60453
60454 2003-01-27  Bruno Haible  <bruno@clisp.org>
60455
60456         * modules/xsetenv: New module.
60457         * MODULES.html.sh (func_all_modules): Add it.
60458
60459 2003-01-27  Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/xsetenv.h: New file, from GNU gettext.
60462         * lib/xsetenv.c: New file, from GNU gettext.
60463
60464 2003-01-23  Jim Meyering  <jim@meyering.net>
60465
60466         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
60467         from working on systems without dirfd (at least Irix and OSF1/Tru64).
60468
60469 2003-01-23  Bruno Haible  <bruno@clisp.org>
60470
60471         * modules/minmax: New module.
60472         * MODULES.html.sh (func_all_modules): Add it.
60473
60474 2003-01-23  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
60477         Eggert.
60478
60479 2003-01-22  Bruno Haible  <bruno@clisp.org>
60480
60481         * modules/exit: New module.
60482         * MODULES.html.sh (func_all_modules): Add it.
60483
60484 2003-01-22  Bruno Haible  <bruno@clisp.org>
60485
60486         * lib/exit.h: New file, from GNU gettext.
60487
60488 2003-01-19  Bruno Haible  <bruno@clisp.org>
60489
60490         * gnulib-tool: Recognize option --extract-maintainer.
60491         (func_get_maintainer): New function.
60492         * modules/*: Add Maintainer entry.
60493
60494 2003-01-16  Jim Meyering  <jim@meyering.net>
60495
60496         * m4/regex.m4: The `regex' struct is both input and output.
60497         Initialize it before each use.  Patch by Tim Waugh.
60498
60499 2003-01-16  Bruno Haible  <bruno@clisp.org>
60500
60501         * MODULES.html.sh: Add a table of contents. Add the module name as
60502         leftmost column. Add hyperlinks.
60503
60504 2003-01-15  Bruno Haible  <bruno@clisp.org>
60505
60506         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
60507
60508 2003-01-15  Bruno Haible  <bruno@clisp.org>
60509
60510         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
60511         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
60512         suffix.
60513
60514 2003-01-15  Bruno Haible  <bruno@clisp.org>
60515
60516         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
60517
60518 2003-01-15  Bruno Haible  <bruno@clisp.org>
60519
60520         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
60521         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
60522
60523 2003-01-14  Jim Meyering  <jim@meyering.net>
60524
60525         * lib/same.c (same_name): Tweak a comment.
60526
60527 2003-01-14  Bruno Haible  <bruno@clisp.org>
60528
60529         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
60530         when a string comparison is sufficient.
60531
60532 2003-01-14  Bruno Haible  <bruno@clisp.org>
60533
60534         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
60535         'unsigned int'.
60536
60537 2003-01-14  Bruno Haible  <bruno@clisp.org>
60538
60539         * lib/hash-pjw.c: Add comment about low quality of this function.
60540
60541 2003-01-13  Bruno Haible  <bruno@clisp.org>
60542
60543         * modules/stpcpy: Distribute lib/stpcpy.h.
60544         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
60545
60546 2003-01-13  Bruno Haible  <bruno@clisp.org>
60547
60548         * modules/*: Add a description.
60549         * modules/strpbrk: Fix Makefile.am snippet.
60550         * modules/strtoimax: Fix dependencies.
60551         * modules/strtoumax: Likewise.
60552
60553 2003-01-13  Bruno Haible  <bruno@clisp.org>
60554
60555         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
60556         * modules/alloca (Makefile.am): All object files depend on alloca.h.
60557         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
60558
60559 2003-01-13  Bruno Haible  <bruno@clisp.org>
60560
60561         * gnulib-tool (func_create_testdir): Store config/* files in the main
60562         directory.
60563         * config.rpath: Move to ...
60564         * config/config.rpath: ... here.
60565         * modules/gettext: Contains config/config.rpath, not config.rpath.
60566         * modules/iconv: Likewise.
60567
60568 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60569
60570         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60571         to avoid collisions with libcurses and libreadline.
60572
60573         * m4/getstr.m4: Remove.
60574         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
60575
60576 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60577
60578         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60579         to avoid collisions with libcurses and libreadline.
60580
60581         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
60582         * lib/getstr.h, getstr.c: Remove.
60583         * lib/getline.c: Include "getline.h", to check interface.
60584         Move body of old getstr.c here: this defines MIN_CHUNK and
60585         declares getdelim2, which is renamed from getstr.
60586         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
60587
60588         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
60589         All uses changed.
60590         * lib/linebuffer.h: Likewise.
60591         (readline): Remove backward-compatibility macro.
60592
60593 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60594
60595         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60596         to avoid collisions with libcurses and libreadline.
60597         * getstr: Remove.
60598         * MODULES.html.sh: Remove getstr.
60599         * modules/getline: Depend on unlocked-io, not getstr.
60600
60601 2003-01-12  Jim Meyering  <jim@meyering.net>
60602
60603         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
60604
60605 2003-01-10  Bruno Haible  <bruno@clisp.org>
60606
60607         * modules/alloca: Change Makefile.am requirements. Simplify Include
60608         requirements. Add lib/alloca_.h to file list.
60609
60610 2003-01-10  Bruno Haible  <bruno@clisp.org>
60611
60612         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
60613
60614 2003-01-10  Bruno Haible  <bruno@clisp.org>
60615
60616         * lib/alloca_.h: New file.
60617         * lib/getdate.y: Unconditionally include alloca.h.
60618         * lib/makepath.c: Likewise.
60619         * lib/setenv.c: Likewise.
60620         * lib/userspec.c: Likewise.
60621
60622 2003-01-09  Karl Berry  <karl@gnu.org>
60623
60624         * MODULES.html.sh: include `dirname $0` in PATH, to find
60625         gnulib-tool.
60626
60627 2003-01-09  Bruno Haible  <bruno@clisp.org>
60628
60629         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60630         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60631
60632 2003-01-09  Bruno Haible  <bruno@clisp.org>
60633
60634         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60635
60636 2003-01-09  Bruno Haible  <bruno@clisp.org>
60637
60638         * lib/stdbool.h.in: New file.
60639
60640 2003-01-09  Bruno Haible  <bruno@clisp.org>
60641
60642         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60643         * MODULES.html.sh: Likewise.
60644
60645 2003-01-08  Jim Meyering  <jim@meyering.net>
60646
60647         * lib/full-write.c: Undefine and define-away `const' after inclusion
60648         of errno.h, not before.  Suggestion from Bruno Haible.
60649
60650 2003-01-08  Bruno Haible  <bruno@clisp.org>
60651
60652         * modules/full-read: Depend on full-write.
60653
60654 2003-01-08  Bruno Haible  <bruno@clisp.org>
60655
60656         * lib/safe-read.c: Include specification header first, to ensure its
60657         selfcontainedness.
60658         * lib/full-write.c: Likewise.
60659
60660 2003-01-07  Jim Meyering  <jim@meyering.net>
60661
60662         * lib/full-write.c: Rework so that it may serve to define full_read,
60663         too.
60664         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60665
60666 2003-01-07  Bruno Haible  <bruno@clisp.org>
60667
60668         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60669         <inttypes.h>.
60670         * lib/xstrtol.h: Likewise.
60671         * lib/xstrtoimax.c: Likewise.
60672         * lib/xstrtoumax.c: Likewise.
60673         * lib/human.h: Likewise.
60674
60675         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60676         on systems that have <inttypes.h> but not <stdint.h>.
60677
60678 2003-01-07  Bruno Haible  <bruno@clisp.org>
60679
60680         * MODULES.html.sh: Add copyright notice.
60681         (missed_files): Omit CVS directory entries.
60682         (func_module): Make it work with sed-3.02.
60683         * MODULES.txt: Remove file.
60684
60685 2003-01-06  Jim Meyering  <jim@meyering.net>
60686
60687         * lib/version-etc.c: Update year in translatable copyright string.
60688
60689 2003-01-03  Karl Berry  <karl@gnu.org>
60690
60691         * config/config.{guess,sub}: update from prep.
60692
60693 2003-01-02  Karl Berry  <karl@gnu.org>
60694
60695         * doc/COPYING.DOC: belatedly updated to 1.2.
60696
60697 2003-01-01  Karl Berry  <karl@gnu.org>
60698
60699         * gnulib-tool (func_verify_module): report module name $module in
60700         error message, not $1.
60701         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60702         be created, only if it doesn't exist.
60703         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60704
60705 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60706
60707         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60708
60709 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60710
60711         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60712         memcmp if strcoll doesn't work.
60713
60714 2002-12-31  Bruno Haible  <bruno@clisp.org>
60715
60716         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60717         nonempty.
60718
60719 2002-12-31  Bruno Haible  <bruno@clisp.org>
60720
60721         * lib/memcoll.c (STRCOLL): New macro.
60722         (memcoll): Use it.
60723
60724 2002-12-31  Bruno Haible  <bruno@clisp.org>
60725
60726         * lib/localcharset.h: New file.
60727         * lib/localcharset.c: Include it.
60728         * lib/unicodeio.c: Likewise.
60729
60730 2002-12-31  Bruno Haible  <bruno@clisp.org>
60731
60732         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60733         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60734
60735 2002-12-31  Bruno Haible  <bruno@clisp.org>
60736
60737         * lib/getline.h: Include <stddef.h>, for size_t.
60738
60739         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60740         * lib/unicodeio.c: Don't include <stddef.h>.
60741
60742 2002-12-31  Bruno Haible  <bruno@clisp.org>
60743
60744         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60745         HAVE_TM_ZONE.
60746
60747 2002-12-24  Karl Berry  <karl@gnu.org>
60748
60749         * config/config.guess: update from prep.
60750
60751 2002-12-24  Bruno Haible  <bruno@clisp.org>
60752
60753         General infrasructure.
60754         * m4/README: Rewritten.
60755         * m4/onceonly.m4: New file.
60756         * m4/onceonly_2_57.m4: New file.
60757
60758         Module atexit.
60759         * m4/atexit.m4: New file.
60760
60761         Module strtod.
60762         * m4/strtod.m4: New file.
60763
60764         Module strtol.
60765         * m4/strtol.m4: New file.
60766
60767         Module strtoul.
60768         * m4/strtoul.m4: New file.
60769
60770         Module memchr.
60771         * m4/memchr.m4: New file.
60772
60773         Module memcmp.
60774         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60775         (jm_FUNC_MEMCMP): Invoke it.
60776
60777         Module memcpy.
60778         * m4/memcpy.m4: New file.
60779
60780         Module memmove.
60781         * m4/memmove.m4: New file.
60782
60783         Module memset.
60784         * m4/memset.m4: New file.
60785
60786         Module strcspn.
60787         * m4/strcspn.m4: New file.
60788
60789         Module strpbrk.
60790         * m4/strpbrk.m4: New file.
60791
60792         Module strstr.
60793         * m4/strstr.m4: New file.
60794
60795         Module strerror.
60796         * m4/strerror.m4: New file.
60797
60798         Module mktime.
60799         * m4/mktime.m4: Renamed from jm-mktime.m4.
60800         (gl_PREREQ_MKTIME): New macro.
60801         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60802
60803         Module malloc.
60804         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60805         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60806         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60807
60808         Module realloc.
60809         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60810         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60811         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60812
60813         Module strftime.
60814         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60815         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60816         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60817         gl_TM_GMTOFF.
60818         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60819
60820         Module xalloc.
60821         * m4/xalloc.m4: New file.
60822
60823         Module alloca.
60824         * m4/alloca.m4: New file.
60825
60826         Module putenv.
60827         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60828         (jm_FUNC_PUTENV): Invoke it.
60829
60830         Module setenv.
60831         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60832         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60833         when invoked twice.
60834         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60835         gt_FUNC_SETENV.
60836
60837         Module memrchr.
60838         * m4/memrchr.m4: New file.
60839
60840         Module stpcpy.
60841         * m4/stpcpy.m4: New file.
60842
60843         Module strcase.
60844         * m4/strcase.m4: New file.
60845
60846         Module strdup.
60847         * m4/strdup.m4: New file.
60848
60849         Module strnlen.
60850         * m4/strnlen.m4: New file.
60851
60852         Module strndup.
60853         * m4/strndup.m4: New file.
60854
60855         Module xstrtod.
60856         * m4/xstrtod.m4: New file.
60857
60858         Module xstrtol.
60859         * m4/xstrtol.m4: New file.
60860
60861         Module getdate.
60862         * m4/getdate.m4: New file.
60863
60864         Module unlocked-io.
60865         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60866         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60867         * m4/jm-glibc-io.m4n: Remove file.
60868
60869         Module long-options.
60870         * m4/long-options.m4: New file.
60871
60872         Module md5.
60873         * m4/md5.m4: New file.
60874
60875         Module sha.
60876         * m4/sha.m4: New file.
60877
60878         Module getstr.
60879         * m4/getstr.m4: New file.
60880
60881         Module getline.
60882         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60883         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60884         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60885         simply getline. Infoke gl_PREREQ_GETLINE.
60886
60887         Module obstack.
60888         * m4/obstack.m4: New file.
60889
60890         Module hash.
60891         * m4/hash.m4: New file.
60892
60893         Module readtokens.
60894         * m4/readtokens.m4: New file.
60895
60896         Module strverscmp.
60897         * m4/strverscmp.m4: New file.
60898
60899         Module stdbool.
60900         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60901         OSF/1.
60902
60903         Module strtoll.
60904         * m4/strtoll.m4: New file.
60905
60906         Module strtoull.
60907         * m4/strtoull.m4: New file.
60908
60909         Module strtoimax.
60910         * m4/strtoimax.m4: New file.
60911
60912         Module strtoumax.
60913         * m4/strtoumax.m4: New file.
60914
60915         Module xstrtoimax.
60916         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60917         jm_AC_PREREQ_XSTRTOIMAX.
60918         Moved the strtol prerequisites to strtol.m4.
60919         Moved the strtoll prerequisites to strtoll.m4.
60920         Moved the strtoimax prerequisites to strtoimax.m4.
60921
60922         Module xstrtoumax.
60923         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60924         jm_AC_PREREQ_XSTRTOUMAX.
60925         Moved the strtoul prerequisites to strtoul.m4.
60926         Moved the strtoull prerequisites to strtoull.m4.
60927         Moved the strtoumax prerequisites to strtoumax.m4.
60928
60929         Module chown.
60930         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60931         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60932
60933         Module dup2.
60934         * m4/dup2.m4: New file.
60935
60936         Module ftruncate.
60937         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60938         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60939
60940         Module getgroups.
60941         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60942         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60943
60944         Module gettimeofday.
60945         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60946         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60947         gl_PREREQ_GETTIMEOFDAY.
60948
60949         Module mkdir.
60950         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60951         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60952
60953         Module mkstemp.
60954         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60955         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60956         jm_AC_TYPE_UINTMAX_T.
60957         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60958
60959         Module stat.
60960         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60961         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60962
60963         Module lstat.
60964         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60965         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60966
60967         Module timespec.
60968         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60969         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60970         * m4/st_mtim.m4: Indentation.
60971
60972         Module nanosleep.
60973         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60974         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60975         gl_PREREQ_NANOSLEEP.
60976
60977         Module regex.
60978         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60979         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60980         (gl_REGEX): New macro.
60981
60982         Module rename.
60983         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60984         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60985
60986         Module rmdir.
60987         * m4/rmdir.m4: New file.
60988
60989         Module utime.
60990         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60991         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60992         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60993
60994         Module dirname.
60995         * m4/dirname.m4: New file.
60996
60997         Module getopt.
60998         * m4/getopt.m4: New file.
60999
61000         Module unistd-safer.
61001         * m4/unistd-safer.m4: New file.
61002
61003         Module fnmatch.
61004         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
61005         declaration.
61006         (gl_PREREQ_FNMATCH_EXTRA): New macro.
61007         (gl_FUNC_FNMATCH_POSIX): New macro.
61008         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
61009         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
61010         simply fnmatch.
61011
61012         Module exclude.
61013         * m4/exclude.m4: New file.
61014
61015         Module human.
61016         * m4/human.m4: New file.
61017
61018         Module acl.
61019         * m4/acl.m4: Nop.
61020
61021         Module backupfile.
61022         * m4/backupfile.m4: New file.
61023         * m4/d-ino.m4: Indentation.
61024
61025         Module fsusage.
61026         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
61027         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
61028         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
61029
61030         Module dirfd.
61031         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
61032         requirements.
61033
61034         Module euidaccess.
61035         * m4/euidaccess.m4: New file.
61036
61037         Module file-type.
61038         * m4/file-type.m4: New file.
61039
61040         Module fileblocks.
61041         * m4/fileblocks.m4: New file.
61042
61043         Module filemode.
61044         * m4/filemode.m4: New file.
61045
61046         Module isdir.
61047         * m4/isdir.m4: New file.
61048
61049         Module lchown.
61050         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
61051         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
61052
61053         Module makepath.
61054         * m4/makepath.m4: New file.
61055
61056         Module modechange.
61057         * m4/modechange.m4: New file.
61058
61059         Module mountlist.
61060         * m4/mountlist.m4: New file.
61061         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
61062         Indentation.
61063
61064         Module path-concat.
61065         * m4/path-concat.m4: New file.
61066
61067         Module pathmax.
61068         * m4/pathmax.m4: New file.
61069
61070         Module same.
61071         * m4/same.m4: New file.
61072
61073         Module save-cwd.
61074         * m4/save-cwd.m4: New file.
61075
61076         Module savedir.
61077         * m4/savedir.m4: New file.
61078
61079         Module xgetcwd.
61080         * m4/xgetcwd.m4: New file.
61081         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
61082
61083         Module xreadlink.
61084         * m4/xreadlink.m4: New file.
61085
61086         Module safe-read.
61087         * m4/safe-read.m4: New file.
61088
61089         Module safe-write.
61090         * m4/safe-write.m4: New file.
61091
61092         Module closeout.
61093         * m4/closeout.m4: New file.
61094
61095         Module stdio-safer.
61096         * m4/stdio-safer.m4: New file.
61097
61098         Module getpass.
61099         * m4/getpass.m4: New file.
61100
61101         Module getugroups.
61102         * m4/getugroups.m4: New file.
61103
61104         Module group-member.
61105         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
61106         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
61107
61108         Module idcache.
61109         * m4/idcache.m4: New file.
61110
61111         Module userspec.
61112         * m4/userspec.m4: New file.
61113
61114         Module gettime.
61115         * m4/clock_time.m4: New file.
61116         * m4/gettime.m4: New file.
61117
61118         Module settime.
61119         * m4/settime.m4: New file.
61120
61121         Module posixtm.
61122         * m4/posixtm.m4: New file.
61123
61124         Module gethostname.
61125         * m4/gethostname.m4: New file.
61126
61127         Module canon-host.
61128         * m4/canon-host.m4: New file.
61129
61130         Module gettext.
61131         * m4/codeset.m4: New file, from gettext-0.11.5.
61132         * m4/gettext.m4: New file, from gettext-0.11.5.
61133         * m4/glibc21.m4: New file, from gettext-0.11.5.
61134         * m4/iconv.m4: New file, from gettext-0.11.5.
61135         * m4/intdiv0.m4: New file, from gettext-0.11.5.
61136         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
61137         * m4/inttypes.m4: New file, from gettext-0.11.5.
61138         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
61139         * m4/isc-posix.m4: New file, from gettext-0.11.5.
61140         * m4/lcmessage.m4: New file, from gettext-0.11.5.
61141         * m4/lib-ld.m4: New file, from gettext-0.11.5.
61142         * m4/lib-link.m4: New file, from gettext-0.11.5.
61143         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
61144         * m4/progtest.m4: New file, from gettext-0.11.5.
61145         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
61146         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
61147         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
61148
61149         Module localcharset.
61150         * m4/localcharset.m4: New file.
61151
61152         Module hard-locale.
61153         * m4/hard-locale.m4: New file.
61154
61155         Module mbswidth.
61156         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
61157         onceonly macros.
61158         * m4/mbrtowc.m4: Add comment.
61159
61160         Module memcasecmp.
61161         * m4/memcasecmp.m4: New file.
61162
61163         Module memcoll.
61164         * m4/memcoll.m4: New file.
61165
61166         Module unicodeio.
61167         * m4/unicodeio.m4: New file.
61168
61169         Module rpmatch.
61170         * m4/rpmatch.m4: New file.
61171
61172         Module yesno.
61173         * m4/yesno.m4: New file.
61174
61175         Module exitfail.
61176         * m4/exitfail.m4: New file.
61177
61178         Module c-stack.
61179         * m4/c-stack.m4 (gl_C_STACK): New macro.
61180         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
61181
61182         Module error.
61183         * m4/error.m4 (gl_ERROR): New macro.
61184         (jm_PREREQ_ERROR): Use onceonly macros.
61185
61186         Module fatal.
61187         * m4/fatal.m4: New file.
61188
61189         Module getloadavg.
61190         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
61191         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
61192
61193         Module getpagesize.
61194         * m4/getpagesize.m4: New file.
61195
61196         Module getusershell.
61197         * m4/getusershell.m4: New file.
61198
61199         Module physmem.
61200         * m4/physmem.m4: New file.
61201
61202         Module posixver.
61203         * m4/posixver.m4: New file.
61204
61205         Module quotearg.
61206         * m4/quotearg.m4: New file.
61207
61208         Module quote.
61209         * m4/quote.m4: New file.
61210
61211         Module readutmp.
61212         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
61213
61214         Module sig2str.
61215         * m4/sig2str.m4: New file.
61216
61217         Other.
61218         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
61219         ulonglong.m4.
61220         * m4/intmax_t.m4: New file.
61221         * m4/d-type.m4: Indentation.
61222         * m4/jm-macros.m4: Update.
61223         * m4/prereq.m4 (jm_PREREQ): Update.
61224         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
61225         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
61226         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
61227         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
61228         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
61229         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
61230         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
61231         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
61232         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
61233         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
61234         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
61235         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
61236         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
61237         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
61238         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
61239         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
61240         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
61241         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
61242         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
61243
61244 2002-12-24  Bruno Haible  <bruno@clisp.org>
61245
61246         * MODULES.txt: Update according to m4/ changes.
61247
61248         Module gettext.
61249         * config.rpath: New file, from gettext-0.11.5.
61250
61251         * modules/*: New module descriptions.
61252         * gnulib-tool: New file.
61253         * MODULES.html.sh: New file.
61254
61255 2002-12-21  Karl Berry  <karl@gnu.org>
61256
61257         * doc/fdl.texi: update to version 1.2.
61258
61259 2002-12-19  Karl Berry  <karl@gnu.org>
61260
61261         * config/config.guess: update from prep.
61262
61263 2002-12-18  Bruno Haible  <bruno@clisp.org>
61264
61265         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
61266         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
61267
61268 2002-12-17  Bruno Haible  <bruno@clisp.org>
61269
61270         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
61271         stdlib.h, string.h.
61272
61273 2002-12-17  Bruno Haible  <bruno@clisp.org>
61274
61275         * lib/canon-host.c (strdup): Remove unused declaration.
61276
61277         * lib/fsusage.c: Include full_read.h.
61278         (get_fs_usage): Use full_read instead of safe_read.
61279
61280         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
61281
61282 2002-12-12  Karl Berry  <karl@gnu.org>
61283
61284         * config/config.guess: update from prep.
61285
61286 2002-12-11  Bruno Haible  <bruno@clisp.org>
61287
61288         * m4/setenv.m4: New file, from gettext-0.11.5.
61289
61290 2002-12-11  Bruno Haible  <bruno@clisp.org>
61291
61292         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
61293         not unsetenv().
61294         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
61295         modifications:
61296
61297         2002-12-11  Bruno Haible  <bruno@clisp.org>
61298
61299                 * setenv.c (alloca): Fall back to malloc.
61300                 (freea): New macro.
61301                 (setenv): Use freea() to free memory allocated with alloca().
61302
61303         2002-11-13  Bruno Haible  <bruno@clisp.org>
61304
61305                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
61306                 function declarations.
61307                 * unsetenv.c (unsetenv): Likewise.
61308
61309         2002-03-04  Bruno Haible  <bruno@clisp.org>
61310
61311                 Portability to AIX 4.3.3.
61312                 * unsetenv.c: New file, extracted from setenv.c.
61313                 * setenv.c: Move the unsetenv() function to unsetenv.c.
61314
61315         2001-12-20  Bruno Haible  <bruno@clisp.org>
61316
61317                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
61318                 use malloc instead. For SunOS 4.
61319
61320         2001-12-11  Bruno Haible  <bruno@clisp.org>
61321
61322                 * setenv.c: Declare alloca.
61323                 (compar_fn_t): New typedef.
61324                 (KNOWN_VALUE, STORE_VALUE): Use it.
61325
61326         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
61327         setenv.h.
61328
61329 2002-12-10  Paul Eggert  <eggert@twinsun.com>
61330
61331         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
61332         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
61333         Choose values that are less likely to collide with system fnmatch
61334         options.
61335         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
61336         defined (e.g., a pure POSIX system).
61337         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
61338         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
61339
61340 2002-12-06  Paul Eggert  <eggert@twinsun.com>
61341
61342         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
61343         a pain in practice to deal with generated m4 files.  This change
61344         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
61345
61346         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
61347         and jm-glibc-io.m4, as they are no longer a special case.
61348         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
61349         kludge and the auto-generation stuff.  Check only whether the
61350         functions are declared, not whether they exist, since older hosts
61351         that don't declare the functions can't use the optimization anyway.
61352
61353 2002-12-06  Jim Meyering  <jim@meyering.net>
61354
61355         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
61356
61357         Merge in changes from libc's misc/error.c, in preparation
61358         for the merge of gnulib's changes back into libc.
61359
61360         * lib/error.c (_): Define only if not already defined.
61361         Move definition to follow all #include directives.
61362         Include unlocked-io.h only if !_LIBC.
61363         [_LIBC]: Include <libio/libioP.h>.
61364         [USE_IN_LIBIO]: Include <libio/iolibio.h>
61365         (fflush): Tweak definition to use INTUSE.
61366         (putc): Define.
61367
61368 2002-12-05  Paul Eggert  <eggert@twinsun.com>
61369
61370         * lib/alloca.c [defined emacs]: Include "lisp.h".
61371         (xalloc_die) [defined emacs]: New macro.
61372         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
61373         [! defined emacs]: Include <xalloc.h>.
61374         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
61375         (pointer): Typedef to POINTER_TYPE *.
61376         (malloc): Remove decl; we now always use xmalloc.
61377         (alloca): Use old-style definition, since Emacs needs this.
61378         Check for arithmetic overflow when computing combined size.
61379
61380 2002-12-04  Paul Eggert  <eggert@twinsun.com>
61381
61382         Do not generate unlocked-io.h automatically, since it's easier to
61383         maintain it by hand.
61384
61385         * lib/unlocked-io.h: New file, from GNU diffutils,
61386         but with proper copyright notice and attribution.
61387         * lib/gen-uio: Remove.
61388         * lib/Makefile.am: Add copyright notice.
61389         (libfetish_a_SOURCES): Add unlocked-io.h.
61390         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
61391         (DISTCLEANFILES, io_functions): Remove macros.
61392         (EXTRA_DIST): Remove gen_uio.
61393         (unlocked-io.h): Remove rule.
61394
61395 2002-12-04  Jim Meyering  <jim@meyering.net>
61396
61397         Reflect the fact that stat.c and lstat.c are no longer generated.
61398         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
61399         (DISTCLEANFILES): Likewise.
61400         (EXTRA_DIST): Likewise.
61401         (all_local): Don't depend on stat.c or lstat.c.
61402         (stat.c, lstat.c): Remove rules.
61403         (EXTRA_DIST): Remove xstat.in.
61404
61405         * lib/xstat.in: Remove file.  Contents moved into stat.c.
61406         * lib/stat.c: New file.  Contents mostly from xstat.in.
61407         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
61408         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
61409
61410         * lib/safe-read.c: Rework so that it may serve to define safe_write,
61411         too.
61412         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
61413
61414 2002-12-03  Jim Meyering  <jim@meyering.net>
61415
61416         * lib/safe-read.c, safe-write.c: Change variable names and comments,
61417         but not semantics, to minimize the differences between these two files.
61418         (safe_read): Change comment to mention SAFE_READ_ERROR.
61419
61420         * lib/safe-read.c (IS_EINTR): Define.
61421         (safe_read): Use IS_EINTR in place of in-function cpp directives.
61422
61423 2002-12-02  Jim Meyering  <jim@meyering.net>
61424
61425         * lib/safe-read.c (EINTR): Define.
61426         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61427         (INT_MAX): Provide fallback.
61428         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
61429
61430         * lib/safe-read.h (SAFE_READ_ERROR): Define.
61431
61432 2002-12-02  Bruno Haible  <bruno@clisp.org>
61433
61434         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
61435         Define, taken from safe-read.c.
61436         (INT_MAX): Provide fallback.
61437         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
61438         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
61439
61440         * lib/safe-read.c (EINTR): Remove definition.
61441         (safe_read): Don't use EINTR if it is absent.
61442
61443 2002-12-01  Jim Meyering  <jim@meyering.net>
61444
61445         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
61446         zero.
61447         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
61448
61449 2002-11-27  Paul Eggert  <eggert@twinsun.com>
61450
61451         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
61452         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
61453         with `if (! (value < limit)) abort ();', for readability.
61454
61455 2002-11-26  Karl Berry  <karl@gnu.org>
61456
61457         * lib/strdup.c: copy from libc again, with jim's ok.
61458         * lib/.cppi-disable: re-add strdup.c
61459
61460 2002-11-25  Karl Berry  <karl@gnu.org>
61461
61462         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
61463         instead of "strtol.c".
61464
61465 2002-11-25  Karl Berry  <karl@gnu.org>
61466
61467         * config/install-sh: update from automake for variable quoting, $0 in
61468         error msgs, etc.
61469
61470         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
61471         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
61472         entry.
61473
61474 2002-11-25  Jim Meyering  <jim@meyering.net>
61475
61476         * lib/mktime.c: Sync from libc, now that it has the latest fix.
61477
61478 2002-11-24  Karl Berry  <karl@gnu.org>
61479
61480         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
61481         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
61482
61483 2002-11-24  Jim Meyering  <jim@meyering.net>
61484
61485         Update from coreutils:
61486
61487         * lib/mktime.c: Merge in changes from libc.
61488
61489         Avoid a link-time failure on some Linux systems.
61490         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
61491         (otherwise).
61492         (__mon_yday): Declare with the STATIC attribute.
61493         (__mktime_internal): Likewise.
61494         Based on a report from Greg Schafer.
61495
61496 2002-11-23  Jim Meyering  <jim@meyering.net>
61497
61498         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
61499         Use `unsigned', not `int', as type of index.
61500
61501         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
61502
61503         * lib/fsusage.c: Remove unneeded parentheses around operands of
61504         `defined'.
61505
61506 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61507
61508         * lib/quotearg.h: Allow multiple inclusion by surrounding with
61509         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
61510         so that we can be included first.
61511         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
61512         * lib/quotearg.c: Include quotearg.h immediately after config.h.
61513         No need to include stddef.h or sys/types.h any more.
61514         Surround local include files with "", not "<>".
61515         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
61516         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
61517         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
61518         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
61519         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
61520         (ISPRINT): Remove; no longer needed now that we assume C89.
61521
61522         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
61523         Preserve errno.
61524
61525         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
61526         quotearg_char): Use SIZE_MAX rather than
61527         (size_t) -1 when we are talking about "infinity".
61528
61529         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
61530
61531 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61532
61533         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
61534         hint that one should use `if (! x) abort ();' rather than `assert
61535         (x);', and anyway it's one less thing to worry about configuring.
61536         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
61537         hash_rehash, hash_insert): Use abort rather than assert.
61538
61539 2002-11-22  Bruno Haible  <bruno@clisp.org>
61540
61541         * lib/safe-read.h: Assume C89. Add comments.
61542         (safe_read): Change return type to size_t.
61543         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
61544         byte counts > SSIZE_MAX correctly.
61545         * lib/safe-write.h: New file.
61546         * lib/safe-write.c: New file.
61547         * lib/full-read.h: New file.
61548         * lib/full-read.c: New file.
61549         * lib/full-write.h: Assume C89. Add comments.
61550         * lib/full-write.c: Include safe-write.h.
61551         (full_write): Rewritten to use safe_write.
61552         Suggested by Jim Meyering and Paul Eggert.
61553
61554 2002-11-21  Jim Meyering  <jim@meyering.net>
61555
61556         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
61557
61558         Merge in changes from the coreutils.
61559
61560         2002-09-25  Paul Eggert  <eggert@twinsun.com>
61561         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
61562         <stdint.h>.
61563         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
61564         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
61565         int.  Work more efficiently if X is the same width as uintmax_t.
61566         Do not compare X to -1, to avoid bogus compiler warning.
61567         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
61568         Don't assume that f_frsize and f_bsize are the same type.
61569
61570         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
61571         warning on FreeBSD.
61572
61573         * lib/makepath.c (make_path): Restore umask *before* creating the final
61574         component.
61575         (make_path): Minor reformatting.
61576
61577         * lib/xmalloc.c: Adjust to work with new autoconf macros,
61578         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
61579         HAVE_MALLOC/HAVE_REALLOC.
61580
61581         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
61582         dummy ones.  At least on GNU/Linux systems, `auto' means something
61583         else.
61584         From Michael Stone.
61585
61586 2002-11-21  Bruno Haible  <bruno@clisp.org>
61587
61588         Remove case insensitive option matching.
61589         * lib/argmatch.h (argcasematch): Remove declaration.
61590         (ARGCASEMATCH): Remove macro.
61591         (__xargmatch_internal): Remove case_sensitive argument.
61592         (XARGMATCH): Update.
61593         (XARGCASEMATCH): Remove macro.
61594         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
61595         case_sensitive argument.
61596         (argcasematch): Remove function.
61597         (__xargmatch_internal): Remove case_sensitive argument.
61598         (main): Use XARGMATCH instead of XARGCASEMATCH.
61599
61600         * lib/xmalloc.c: Change compile-time error message. Add comment about
61601         required autoconf version.
61602
61603 2002-11-20  Paul Eggert  <eggert@twinsun.com>
61604
61605         Merge argmatch cleanups from Bison.  Assume C89.
61606
61607         * lib/argmatch.c: Include config.h here, not in argmatch.h.
61608         Include stdlib.h, for EXIT_FAILURE.
61609         Always include <string.h>, since we assume C89.
61610         (EXIT_FAILURE): Remove pre-C89 bug workaround.
61611         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
61612         Include <stddef.h> instead, since it's all we need for size_t.
61613         (PARAMS): Remove.  All uses removed.
61614         (ARRAY_CARDINALITY): Do not bother to #undef.
61615         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
61616         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61617         Remove unnecessary parentheses.
61618         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61619         Insert necessary parentheses.
61620         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61621         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61622
61623 2002-11-19  Bruno Haible  <bruno@clisp.org>
61624
61625         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61626         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61627
61628         * lib/mbswidth.h (PARAMS): Remove macro.
61629         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61630         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61631
61632         * lib/gcd.h (PARAMS): Remove macro.
61633         (gcd): Use ANSI C function declarations.
61634         * lib/gcd.c (gcd): Likewise.
61635
61636 2002-11-15  Bruno Haible  <bruno@clisp.org>
61637
61638         * lib/strcspn.c: Include <stddef.h>.
61639         (strcspn): Use ANSI C function declaration. Change return type to
61640         size_t. Use NULL.
61641         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61642         (strpbrk): Use NULL.
61643         * lib/strpbrk.h (PARAMS): Remove macro.
61644         (strpbrk): Use ANSI C function declaration.
61645         * lib/strstr.c: Don't include <sys/types.h>.
61646         * lib/strstr.h (PARAMS): Remove macro.
61647         (strstr): Use ANSI C function declarations.
61648
61649 2002-11-14  Karl Berry  <karl@gnu.org>
61650
61651         * config/mkinstalldirs: `do' on separate line, instead of
61652         `for var; do'.
61653
61654 2002-11-06  Bruno Haible  <bruno@clisp.org>
61655
61656         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61657         * lib/gcd.c (gcd): Likewise.
61658
61659 2002-11-05  Bruno Haible  <bruno@clisp.org>
61660
61661         * lib/gcd.h: New file, from gettext-0.11.5.
61662         * lib/gcd.c: New file, from gettext-0.11.5.
61663
61664 2002-11-05  Bruno Haible  <bruno@clisp.org>
61665
61666         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61667         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61668         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61669         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61670
61671         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61672         <libintl.h>.
61673         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61674         <libintl.h>.
61675
61676         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61677         * lib/human.c: Include gettext.h instead of <libintl.h>.
61678         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61679         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61680         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61681         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61682         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61683         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61684         (textdomain): Remove definition.
61685         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61686
61687         * lib/long-options.c: Remove include of <libintl.h> and definition of
61688         _.
61689         * lib/same.c: Remove include of <libintl.h> and definition of _.
61690
61691 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61692
61693         * lib/config.charset: A few additions for Solaris.
61694
61695 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61696
61697         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61698         * lib/localcharset.c (locale_charset): Declare as extern "C".
61699
61700 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61701
61702         * lib/config.charset: msdos in uk_UA uses CP1125.
61703
61704 2002-11-04  Bruno Haible  <bruno@clisp.org>
61705
61706         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61707         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61708         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61709         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61710         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61711
61712 2002-11-04  Bruno Haible  <bruno@clisp.org>
61713
61714         * lib/localcharset.c (locale_charset): Don't return an empty string.
61715
61716 2002-11-04  Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61719         aliases.
61720
61721 2002-11-04  Bruno Haible  <bruno@clisp.org>
61722
61723         * lib/config.charset: Update for newest glibc. Add canonical names
61724         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61725
61726 2002-11-04  Bruno Haible  <bruno@clisp.org>
61727
61728         * lib/config.charset: Add support for NetBSD.
61729
61730 2002-11-04  Bruno Haible  <bruno@clisp.org>
61731
61732         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61733
61734 2002-11-01  Bruno Haible  <bruno@clisp.org>
61735
61736         * configure.in: Add AC_CONFIG_AUX_DIR call.
61737         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61738         test/Makefile.
61739         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61740
61741 2002-09-28  Karl Berry  <karl@gnu.org>
61742
61743         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61744         installed automake until the next release, since changes have been
61745         made.
61746
61747 2002-09-25  Karl Berry  <karl@gnu.org>
61748
61749         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61750         * lib/getopt*: copy from libc/posix.
61751         * lib/gettext.h: copy from gettext.
61752         * lib/.cppi-disable: add strdup.c, gettext.h.
61753
61754 2002-09-25  Karl Berry  <karl@gnu.org>
61755
61756         * config/srclist.txt: enable gettext.h check.
61757         * config/config.{guess,sub}: update from prep.
61758         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61759                 from automake 1.6.3.
61760         See srclist*.
61761
61762 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61763
61764         * regex.c (PATFETCH): Remove the translating fetch.
61765         (PATFETCH_RAW): Rename to PATFETCH.
61766         (set_image_of_range): New fun.
61767         (SET_RANGE_TABLE_WORK_AREA): Use it.
61768         (regex_compile): Don't translate the pattern chars so eagerly.
61769         Only do it when inserting an `exactn' bytecode or when handling
61770         a char-range.
61771         (mutually_exclusive_p): Avoid empty statement.
61772
61773 2002-07-06  Jim Meyering  <meyering@lucent.com>
61774
61775         * m4/README: Don't mention Makefile.am.in.
61776         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61777
61778 2002-07-01  Jim Meyering  <meyering@lucent.com>
61779
61780         * lib/c-stack.c: Include sys/time.h.
61781         From Volker Borchert.
61782
61783 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61784
61785         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61786
61787 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61788
61789         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61790         New macro.  Use it uniformly instead of
61791         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61792         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61793         reported by Vin Shelton.
61794
61795 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61796
61797         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61798         Do not assume SA_SIGINFO behavior.
61799         Bug reported by Jim Meyering on NetBSD 1.5.2.
61800
61801 2002-06-22  Jim Meyering  <meyering@lucent.com>
61802
61803         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61804         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61805
61806         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61807         now that configure.ac uses AC_GNU_SOURCE.
61808         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61809         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61810
61811         Update to latest tools.  Suggestions from Paul Eggert.
61812         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61813         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61814         * m4/fnmatch.m4: Likewise.
61815         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61816         to AC_HEADER_STDBOOL
61817
61818 2002-06-22  Jim Meyering  <meyering@lucent.com>
61819
61820         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61821         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61822
61823 2002-06-22  Jim Meyering  <meyering@lucent.com>
61824
61825         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61826
61827         * lib/exitfail.c, exitfail.h: Likewise.
61828         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61829
61830         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61831         of fnmatch.h.
61832         (EXTRA_DIST): Add fnmatch_loop.c.
61833         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61834
61835         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61836         * lib/fnmatch.c: Update from diffutils-2.8.2.
61837         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61838         * lib/fnmatch.h: Remove file.
61839
61840 2002-06-21  Jim Meyering  <meyering@lucent.com>
61841
61842         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61843         * m4/mbrtowc.m4: Likewise.
61844
61845         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61846         * m4/mbswidth.m4: Reflect name change:
61847         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61848         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61849
61850         * m4/lib-link.m4: Update from gettext-0.11.2.
61851         * m4/gettext.m4: Likewise.
61852
61853         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61854         From Alfred M. Szmidt.
61855
61856 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61857
61858         * lib/file-type.h: Report an error if neither S_ISREG nor
61859         S_IFREG is defined, instead of using a test specific to glibc
61860         2.2.  This should be safe, since POSIX requires S_ISREG and
61861         Unix Version 7 had S_IFREG.  We don't need to check for
61862         <sys/types.h> since we don't use any symbols that it defines.
61863
61864 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61865
61866         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61867         $@-t, so that each temporary file name is unique and valid in the first
61868         8 characters, for operation under DOS.
61869
61870 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61871
61872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61873
61874 2002-06-15  Jim Meyering  <meyering@lucent.com>
61875
61876         Work even with DJGPP 2.03, which lacks support for symlinks.
61877         From Richard Dawe.
61878         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61879         is defined.
61880         * lib/lchown.c (S_ISLNK): Likewise.
61881
61882 2002-06-15  Jim Meyering  <meyering@lucent.com>
61883
61884         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61885         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61886         have been included before this file.
61887
61888 2002-06-14  Jim Meyering  <meyering@lucent.com>
61889
61890         * lib/file-type.h: Use the version from diffutils-2.8.2.
61891         * lib/file-type.c: Likewise.
61892
61893 2002-06-07  Jim Meyering  <meyering@lucent.com>
61894
61895         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61896         They're needed at least for NetBSD 1.5.2.
61897         ($statxfs_includes): Include those same headers.
61898         ($statxfs_includes): Include sys/vfs.h if available.
61899         ($statxfs_includes): Likewise for sys/statvfs.h.
61900         Check for the following members in both structs statfs and statvfs:
61901         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61902
61903 2002-06-01  Jim Meyering  <meyering@lucent.com>
61904
61905         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61906         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61907
61908 2002-05-28  Jim Meyering  <meyering@lucent.com>
61909
61910         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61911         Reported by Volker Borchert.
61912
61913 2002-05-27  Jim Meyering  <meyering@lucent.com>
61914
61915         Fix a problem seen only on nonconforming systems whereby ls.c's
61916         use of localtime, and then of gettimeofday would cause trouble:
61917         the localtime call used to initialize rpl_gettimeofday's save
61918         mechanism would clobber ls's current local time information so
61919         that in any long listing the first file would always be listed
61920         with date 1970-01-01.  Analysis by Volker Borchert.
61921
61922         * lib/gettimeofday.c (localtime): Undefine.
61923         (rpl_localtime): New function.
61924
61925 2002-05-27  Jim Meyering  <meyering@lucent.com>
61926
61927         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61928         localtime.
61929
61930         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61931         use the replacement function; it wouldn't resolve at link time.
61932         Reported by Volker Borchert.
61933
61934 2002-05-22  Jim Meyering  <meyering@lucent.com>
61935
61936         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61937         file-type.h.
61938         * lib/file-type.h: New file.
61939         * lib/file-type.c (file_type): New file/function.  Extracted from
61940         diffutils.
61941
61942 2002-04-30  Jim Meyering  <meyering@lucent.com>
61943
61944         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61945
61946 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61947
61948         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61949
61950 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61951
61952         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61953         Do not check for alloca.h (no longer used) or stdbool.h (was never
61954         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61955
61956 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61957
61958         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61959
61960 2002-04-29  Jim Meyering  <meyering@lucent.com>
61961
61962         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61963         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61964         Use AC_FUNC_STRNLEN here instead.
61965
61966         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61967         With autoconf-2.53a, it's part of AC_PROG_CC.
61968
61969 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61970
61971         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61972         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61973
61974 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61975
61976         * lib/sig2str.h, lib/sig2str.c: New files.
61977         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61978
61979 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61980
61981         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61982         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61983         of 127, since 64 is the largest conceivable number for ancient
61984         nonstandard hosts.
61985         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61986
61987 2002-04-28  Jim Meyering  <meyering@lucent.com>
61988
61989         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61990
61991 2002-04-24  Jim Meyering  <meyering@lucent.com>
61992
61993         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61994         (jm_PREREQ): Use it.
61995
61996         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61997         mach/mach.h fcntl.h.
61998         Check for this function: setlocale.
61999
62000 2002-04-24  Jim Meyering  <meyering@lucent.com>
62001
62002         * lib/gettext.h: New file, from Gettext.
62003         * lib/Makefile.am (INCLUDES): Remove -I../intl.
62004         (libfetish_a_SOURCES): Add gettext.h.
62005
62006 2002-04-16  Jim Meyering  <meyering@lucent.com>
62007
62008         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
62009         ut_pid, ut_id, ut_exit.
62010
62011 2002-04-16  Jim Meyering  <meyering@lucent.com>
62012
62013         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
62014         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
62015         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
62016
62017 2002-04-12  Jim Meyering  <meyering@lucent.com>
62018
62019         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
62020         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
62021         existence of the getmntinfo function.  Needed for Darwin 5.3.
62022
62023         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
62024         This is necessary at least on Darwin 5.3.
62025
62026         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
62027         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
62028         strnlen.o in the library, and that makes some versions of ranlib
62029         object.
62030
62031 2002-04-12  Jim Meyering  <meyering@lucent.com>
62032
62033         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
62034
62035 2002-04-09  Jim Meyering  <meyering@lucent.com>
62036
62037         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
62038         to be more precise.  Rather than saying we're checking whether the
62039         function `works', say what we're testing.
62040         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
62041         Reported by Bruno Haible.
62042
62043 2002-03-10  Jim Meyering  <meyering@lucent.com>
62044
62045         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
62046         Suggestion from Santiago Vila.
62047
62048 2002-03-08  Jim Meyering  <meyering@lucent.com>
62049
62050         * lib/rename.c: Mention that this wrapper is needed also on
62051         mips-dec-ultrix4.4 systems.
62052
62053 2002-03-02  Jim Meyering  <meyering@lucent.com>
62054
62055         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
62056         not HAVE_CLOCK_SETTIME.
62057
62058 2002-02-27  Paul Eggert  <eggert@twinsun.com>
62059
62060         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
62061         Check for clock_settime.
62062
62063 2002-02-27  Paul Eggert  <eggert@twinsun.com>
62064
62065         * lib/nanosleep.h: Rename to....
62066         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
62067
62068         * lib/gettime.c: New file.
62069         * lib/settime.c: New file.
62070         * lib/stime.c: Remove.
62071
62072         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
62073         timespec.h.  Remove nanosleep.h.
62074
62075 2002-02-25  Paul Eggert  <eggert@twinsun.com>
62076
62077         * m4/acl.m4: New file.
62078         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
62079         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
62080
62081 2002-02-25  Paul Eggert  <eggert@twinsun.com>
62082
62083         * lib/acl.c, lib/acl.h: New files.
62084         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
62085
62086 2002-02-24  Jim Meyering  <meyering@lucent.com>
62087
62088         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
62089         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
62090         cause trouble.  Reported by Nelson Beebe.
62091
62092 2002-02-23  Paul Eggert  <eggert@twinsun.com>
62093
62094         * lib/path-concat.c (xpath_concat): Reorder code to pacify
62095         compilers that don't know that xalloc_die never returns.
62096
62097 2002-02-20  Jim Meyering  <meyering@lucent.com>
62098
62099         * lib/getdate.c: Regenerate using bison-1.33.
62100
62101 2002-02-17  Jim Meyering  <meyering@lucent.com>
62102
62103         * config/config.guess (main): Don't use `head -1'; it's no longer
62104         portable. Use `sed 1q' instead.
62105
62106 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
62107
62108         * m4/codeset.m4: Upgrade to gettext-0.11.
62109         * m4/gettext.m4: Upgrade to gettext-0.11.
62110         * m4/glibc21.m4: Upgrade to gettext-0.11.
62111         * m4/iconv.m4: Upgrade to gettext-0.11.
62112         * m4/isc-posix.m4: Upgrade to gettext-0.11.
62113         * m4/lcmessage.m4: Upgrade to gettext-0.11.
62114         * m4/lib-ld.m4: New file, from gettext-0.11.
62115         * m4/lib-link.m4: New file, from gettext-0.11.
62116         * m4/lib-prefix.m4: New file, from gettext-0.11.
62117         * m4/progtest.m4: Upgrade to gettext-0.11.
62118
62119 2002-02-15  Paul Eggert  <eggert@twinsun.com>
62120
62121         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
62122         (jm_PREREQ): Use it.
62123
62124 2002-02-15  Paul Eggert  <eggert@twinsun.com>
62125
62126         * lib/posixver.c, lib/posixver.h: New files.
62127         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
62128
62129 2002-02-02  Paul Eggert  <eggert@twinsun.com>
62130             Bruno Haible  <bruno@clisp.org>
62131
62132         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
62133         (fwrite_success_callback): New declaration.
62134         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
62135         print_unicode_char. Call failure callback instead of error.
62136         (fwrite_success_callback): New function.
62137         (exit_failure_callback): New function.
62138         (fallback_failure_callback): New function.
62139         (print_unicode_char): Call unicode_to_mb.
62140
62141 2002-01-26  Jim Meyering  <meyering@lucent.com>
62142
62143         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
62144         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
62145
62146 2002-01-26  Jim Meyering  <meyering@lucent.com>
62147
62148         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
62149
62150 2002-01-22  Paul Eggert  <eggert@twinsun.com>
62151
62152         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
62153
62154 2002-01-22  Jim Meyering  <meyering@lucent.com>
62155
62156         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
62157         Otherwise, some versions of automake would omit the rule that makes
62158         Makefile from Makefile.in.
62159
62160 2002-01-21  Paul Eggert  <eggert@twinsun.com>
62161
62162         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
62163         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
62164         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
62165         (memcoll): Set errno to zero if there is no error.
62166
62167         * lib/quotearg.c (quotearg_buffer_restyled):
62168         Fix bug with quoting buffers containing NUL when backslashing escapes.
62169         This bug was exposed by the other changes in this patch.
62170         (quotearg_n_options): New arg ARGSIZE.
62171         All callers changed.
62172         (quoting_options_from_style): New function.
62173         (quotearg_n_style): Use it.
62174         (quotearg_n_style_mem): New function.
62175
62176         * lib/quotearg.h (quotearg_n_style_mem): New function.
62177
62178 2002-01-19  Jim Meyering  <meyering@lucent.com>
62179
62180         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
62181         Remove useless quotes: DF_PROG="df".
62182         * m4/strnlen.m4: New file.
62183
62184 2002-01-16  Paul Eggert  <eggert@twinsun.com>
62185
62186         * lib/backupfile.c (ISDIGIT): Comment fix.
62187         * lib/getdate.y (ISDIGIT): Likewise.
62188         * lib/posixtm.c (ISDIGIT, year): Likewise.
62189         * lib/strverscmp.c (ISDIGIT): Likewise.
62190         * lib/userspec.c (ISDIGIT): Likewise.
62191
62192 2002-01-16  Jim Meyering  <meyering@lucent.com>
62193
62194         * lib/getdate.y: Add three semicolons, each just before a closing
62195         brace. Bison (as of version 1.31) no longer papers over that mistake.
62196
62197 2002-01-05  Jim Meyering  <meyering@lucent.com>
62198
62199         * lib/version-etc.c (version_etc_copyright): Update copyright year.
62200
62201 2001-12-19  Paul Eggert  <eggert@twinsun.com>
62202
62203         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
62204         not silently exit merely because the output buffer happens to
62205         have nothing pending.
62206
62207 2001-12-18  Paul Eggert  <eggert@twinsun.com>
62208
62209         See the big note in ../ChangeLog.
62210         * lib/human.c (suffixes): Prefer K to k for 1024.
62211         (generate_suffix_backwards): New function.
62212         (human_readable_inexact): Use it.
62213         * lib/xstrtol.c (__xstrtol): If there is no number but there
62214         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
62215         Accept 'K' as well as 'k'.
62216
62217 2001-12-15  Jim Meyering  <meyering@lucent.com>
62218
62219         * lib/regex.h (__restrict_arr): Update from libc.
62220
62221         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
62222         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
62223         (STREQ): Define.
62224
62225 2001-12-14  Jim Meyering  <meyering@lucent.com>
62226
62227         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
62228         Suggestion from Bruno Haible.
62229
62230 2001-12-10  Jim Meyering  <meyering@lucent.com>
62231
62232         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
62233         xrealloc, Instead, include "xalloc.h".
62234         (initbuffer): Don't cast xmalloc return value to char*.
62235         (readline): Reword comment.
62236         Don't cast xrealloc return value to char*
62237         Return NULL, not 0.
62238
62239 2001-12-09  Jim Meyering  <meyering@lucent.com>
62240
62241         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
62242         about `signed and unsigned type in conditional expression'.
62243         * lib/posixtm.c (posix_time_parse): Likewise.
62244
62245         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
62246
62247         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
62248         to avoid a pedantic warning.
62249
62250         * lib/getstr.c: Don't include assert.h.
62251         (getstr): Remove warning-evoking assertions.
62252         Return -1 if offset parameter is out of bounds.
62253         Change the type of a local from int to size_t.
62254
62255         * lib/strftime.c (my_strftime_localtime_r): Include this function
62256         definition in the `#if ! HAVE_TM_GMTOFF' block.
62257
62258         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
62259         Include xalloc.h instead.
62260
62261 2001-12-02  Jim Meyering  <meyering@lucent.com>
62262
62263         * lib/tempname.c: Don't declare getenv, thus reverting the change of
62264         2001-11-18.  It's no longer necessary, now that stdlib.h is always
62265         included.
62266
62267         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
62268         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
62269
62270 2001-11-30  Akim Demaille  <akim@epita.fr>
62271
62272         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
62273         before being defined.
62274
62275 2001-11-27  Paul Eggert  <eggert@twinsun.com>
62276
62277         * lib/quotearg.h (quotearg_n, quotearg_n_style):
62278         First arg is int, not unsigned.
62279         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
62280         (SIZE_MAX, UINT_MAX): New macros.
62281         (quotearg_n_options): Abort if N is negative.
62282         Avoid overflow check on hosts where size_t is 64 bits and int
62283         is 32 bits, as overflow is impossible there.
62284         Fix off-by-one typo that caused unnecessary reallocation.
62285
62286 2001-11-27  Jim Meyering  <meyering@lucent.com>
62287
62288         * lib/tempname.c: Merge with version from libc.
62289         * lib/regex.c: Likewise.
62290
62291         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
62292         systems for which STDC_HEADERS is 0, it was not included, resulting in
62293         a warning about an integer-to-pointer conversion problem with getenv.
62294         Reported by Volker Borchert.
62295
62296 2001-11-26  Jim Meyering  <meyering@lucent.com>
62297
62298         * lib/gtod.h: Remove file.
62299         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
62300         * lib/gettimeofday.c: Don't include gtod.h.
62301         (GTOD_init): Remove function.
62302         (rpl_gettimeofday): Do its job here instead, rather than aborting.
62303         Suggestion from Volker Borchert.
62304
62305 2001-11-23  Jim Meyering  <meyering@lucent.com>
62306
62307         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
62308         it.
62309         * lib/hash.c (struct hash_table): Define it here instead.
62310
62311 2001-11-22  Jim Meyering  <meyering@lucent.com>
62312
62313         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
62314
62315 2001-11-20  Jim Meyering  <meyering@lucent.com>
62316
62317         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
62318         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
62319
62320 2001-11-19  Jim Meyering  <meyering@lucent.com>
62321
62322         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
62323         directory.  Use "conftestXXXXXX" as the template.
62324         Suggestion from Paul Eggert.
62325
62326         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
62327         immediately, so the test doesn't mistakenly hit the max-open-files
62328         limit.
62329
62330 2001-11-18  Paul Eggert  <eggert@twinsun.com>
62331
62332         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
62333         (TEMPORARIES): New macro.
62334         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
62335         removes an artificial limitation (e.g. HP-UX 10.20, where
62336         TMP_MAX is 17576).
62337
62338 2001-11-18  Jim Meyering  <meyering@lucent.com>
62339
62340         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
62341
62342 2001-11-18  Jim Meyering  <meyering@lucent.com>
62343
62344         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
62345         on SunOS 4.
62346
62347         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
62348         files will be created before anything else.
62349
62350 2001-11-17  Paul Eggert  <eggert@twinsun.com>
62351
62352         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
62353         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
62354
62355 2001-11-17  Jim Meyering  <meyering@lucent.com>
62356
62357         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
62358         Prompted by a report from Bob Proulx.
62359
62360         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
62361         Instead, require UTILS_FUNC_MKSTEMP.
62362
62363 2001-11-17  Jim Meyering  <meyering@lucent.com>
62364
62365         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
62366         Now, that's done as part of AC_FUNC_STRTOD.
62367
62368 2001-11-17  Jim Meyering  <meyering@lucent.com>
62369
62370         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
62371         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
62372         rather than group writable.  Patch by Juan F. Codagnone.
62373
62374         * lib/readtokens.c: Remove explicit declarations of xmalloc and
62375         xrealloc, Instead, include "xalloc.h".
62376
62377         * lib/mountlist.c: Include unlocked-io.h after all system headers.
62378         Remove explicit declarations of xmalloc, xrealloc,
62379         and xstrdup.  Instead, include "xalloc.h".
62380
62381         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
62382         unlocked-io.h.
62383         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
62384         Likewise.
62385         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
62386
62387         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
62388         Reported by Padraig Brady.
62389
62390         * lib/mkstemp.c: #undef mkstemp.
62391         Include config.h.
62392         (rpl_mkstemp): Rename from mkstemp.
62393         Protoize.
62394
62395 2001-11-16  Jim Meyering  <meyering@lucent.com>
62396
62397         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
62398         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
62399         determine the amount of total physical memory, use pstat_getstatic.
62400         HPUX-11 doesn't define _SC_PHYS_PAGES.
62401         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
62402         If sysconf couldn't be used to determine the amount of available
62403         physical memory, use both pstat_getstatic and pstat_getdynamic.
62404         Based on a patch from Bob Proulx.
62405
62406 2001-11-10  Jim Meyering  <meyering@lucent.com>
62407
62408         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
62409         (jm_PREREQ): Use it.
62410
62411 2001-11-09  Jim Meyering  <meyering@lucent.com>
62412
62413         * m4/jm-macros.m4: Require autoconf-2.52f.
62414         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
62415         Use these AC_-prefixed names, not the AM_-prefixed ones.
62416
62417         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
62418
62419 2001-11-05  Jim Meyering  <meyering@lucent.com>
62420
62421         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
62422
62423 2001-11-04  Jim Meyering  <meyering@lucent.com>
62424
62425         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
62426         $DEFS.
62427
62428 2001-11-03  Jim Meyering  <meyering@lucent.com>
62429
62430         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
62431         of AC_DEFUN.
62432
62433         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
62434         know the name of the variable in the macro definition.
62435
62436 2001-11-03  Jim Meyering  <meyering@lucent.com>
62437
62438         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
62439         in argmatch_to_argument call.
62440
62441         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
62442         argument.
62443
62444         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
62445         e.g., a fault due to an attempt to free a NULL pointer.
62446
62447 2001-11-01  Jim Meyering  <meyering@lucent.com>
62448
62449         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
62450         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
62451
62452 2001-11-01  Jim Meyering  <meyering@lucent.com>
62453
62454         * lib/dirfd.c, lib/dirfd.h: New files.
62455         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
62456
62457         * lib/hash.c (hash_print) [TESTING]: Clean up.
62458
62459 2001-10-22  Paul Eggert  <eggert@twinsun.com>
62460
62461         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
62462         to avoid a warning if -Wall.
62463
62464 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
62465
62466         * README: New file
62467         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
62468         (per RMS's instructions, this is now the canonical source)
62469         * lgpl/, gpl/: New directories.
62470
62471 2001-10-21  Paul Eggert  <eggert@twinsun.com>
62472
62473         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
62474
62475 2001-10-21  Jim Meyering  <meyering@lucent.com>
62476
62477         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
62478         this code would end up calling gettext even in packages built
62479         with --disable-nls.
62480         * lib/getopt.c (_): Likewise.
62481         * lib/regex.c (_): Likewise.
62482
62483 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62484
62485         * m4/error.m4 (jm_PREREQ_ERROR):
62486         Do not invoke AC_CHECK_FUNCS with strerror_r, as
62487         AC_FUNC_STRERROR_R does that.
62488         Check for strerror declaration.
62489
62490         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
62491         are supposed to have them these days.
62492         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
62493         Merge changes from latest Autoconf CVS.
62494         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
62495         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
62496         POSIX decided to standardize on the int flavor of strerror_r.
62497
62498 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62499
62500         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
62501         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
62502         Use strerror_r that is only a macro, even if it is not a function.
62503         (strerror): Check for HAVE_DECL_STRERROR before declaring.
62504         (private_strerror): Use prototypes, not old-style function definition.
62505         (print_errno_message): New function.
62506         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
62507         char*-flavored one.
62508         (error_tail, error, error_at_line): Use it.
62509
62510 2001-10-11  Jim Meyering  <meyering@lucent.com>
62511
62512         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
62513         and quote_n (1, ... to avoid clobbering a buffer.
62514
62515 2001-10-05  Jim Meyering  <meyering@lucent.com>
62516
62517         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
62518         hash-pjw.h.
62519         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
62520         * lib/hash-pjw.h: New file.
62521
62522 2001-09-30  Jim Meyering  <meyering@lucent.com>
62523
62524         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
62525         `struct fsstat' has the `f_fstypename' member.
62526         Use that to define FS_TYPE, which is now used to make
62527         the getfsstat link test tighter.
62528
62529 2001-09-30  Jim Meyering  <meyering@lucent.com>
62530
62531         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
62532         Include <sys/ucred.h>, for Apple Darwin.
62533         Include sys/mount.h and sys/fs_types.h only if available.
62534         (FS_TYPE): Define.
62535         (read_filesystem_list): Use FS_TYPE.
62536
62537 2001-09-29  Paul Eggert  <eggert@twinsun.com>
62538
62539         * lib/exclude.c (excluded_filename): 0 -> false, since it's
62540         a boolean context.
62541
62542 2001-09-29  Jim Meyering  <meyering@lucent.com>
62543
62544         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62545         [one-argument getmntent function]): Include stdio.h before mntent.h.
62546         SunOS 4.1.x needs it for the declaration of `FILE'.
62547         Patch by Volker Borchert.
62548
62549         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62550         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
62551         sys/fs_types.h, and make the link-test for getfsstat guard #include
62552         directives with appropriate #if HAVE_*_H tests so that we can
62553         detect getfsstat on Apple Darwin1.3.7 systems.
62554         Reported by Nelson Beebe.
62555         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
62556
62557 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62558
62559         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62560         #defines strtoimax.  Also treat the other strto* functions
62561         like strtoimax.
62562
62563         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62564         Check for strtoul and strtoumax,
62565         as those declarations are made even in the signed case.
62566         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
62567         Likewise, for strtol and strtoimax.
62568
62569 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62570
62571         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62572         #defines strtoimax.  Also treat the other strto* functions
62573         like strtoimax.
62574
62575         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
62576         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
62577         (strtoimax, strtoumax): Do not declare if already defined as a macro.
62578
62579 2001-09-26  Jim Meyering  <meyering@lucent.com>
62580
62581         Most macros in unlocked-io.h had the wrong number of arguments.
62582         * lib/gen-uio: New script.
62583         (USE_UNLOCKED_IO): Define to 1 if not already defined.
62584         * lib/unlocked-io.hin: Remove file.
62585         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
62586         rather than trying to embed it here.
62587         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
62588         Reported by Padraig Brady.
62589
62590 2001-09-25  Volker Borchert  <bt@teknon.de>
62591
62592         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
62593         `result'.
62594
62595 2001-09-24  Jim Meyering  <meyering@lucent.com>
62596
62597         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
62598
62599 2001-09-23  Jim Meyering  <meyering@lucent.com>
62600
62601         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
62602         instead of the mere test for existence of mntent.h.  The latter
62603         would get a false-positive on AIX 3.4 systems.
62604         In the outer getmntent if-block, don't die if neither of the getmntent
62605         tests succeeds.  Instead, just fall through and continue with the
62606         remaining tests.
62607
62608 2001-09-23  Jim Meyering  <meyering@lucent.com>
62609
62610         * lib/mountlist.c: Remove useless parentheses in #if directives.
62611         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
62612         the deprecated MOUNTED symbol is no longer defined in mntent.h.
62613
62614 2001-09-22  Jim Meyering  <meyering@lucent.com>
62615
62616         * m4/gettext.m4: New file.  From gettext.
62617         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62618         * m4/progtest.m4: Likewise
62619         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62620         * m4/glibc21.m4: Likewise.
62621
62622         * m4/libintl.m4: Remove.  No longer used.
62623
62624 2001-09-22  Jim Meyering  <meyering@lucent.com>
62625
62626         * lib/localcharset.c: Update from latest gettext.
62627         * lib/config.charset: Likewise.
62628
62629 2001-09-20  Jim Meyering  <meyering@lucent.com>
62630
62631         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62632         strtoimax.
62633         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62634         strtoumax.
62635
62636 2001-09-20  Jim Meyering  <meyering@lucent.com>
62637
62638         * lib/xstrtol.c (strtoimax): Guard declaration with
62639         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62640         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62641         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62642         (strtoumax): Likewise, for completeness (it wasn't necessary).
62643
62644 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62645
62646         * lib/strtoimax.c (HAVE_LONG_LONG):
62647         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62648         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62649         to work around bug in IBM C compiler.
62650
62651 2001-09-17  Jim Meyering  <meyering@lucent.com>
62652
62653         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62654         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62655         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62656         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62657         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62658         whenever the right hand side need not be expanded by the shell.
62659
62660 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62661
62662         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62663         library.  It's not correct, as some older glibcs are buggy.
62664         fnmatch wasn't fixed until glibc 2.2.
62665
62666         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62667         special shell magic here.
62668
62669 2001-09-16  Jim Meyering  <meyering@lucent.com>
62670
62671         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62672         * m4/jm-macros.m4: Require it.
62673
62674 2001-09-16  Jim Meyering  <meyering@lucent.com>
62675
62676         * lib/mkdir.c: New file.
62677
62678 2001-09-15  Jim Meyering  <meyering@lucent.com>
62679
62680         * m4/jm-macros.m4: Check for help2man.
62681
62682 2001-09-11  Jim Meyering  <meyering@lucent.com>
62683
62684         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62685         The body, by Paul Eggert, was moved here from configure.in.
62686         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62687
62688 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62689
62690         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62691         (jm_PREREQ): Use it.
62692
62693 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62694
62695         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62696         Use ssize_t, not int, to store result of readlink.
62697         Check for ssize_t overflow as well as size_t overflow,
62698         as POSIX says the result of readlink is implementation-defined
62699         when ssize_t overflows.
62700         Remove unnecessary cast to char*.
62701         Use free+malloc instead of realloc, as the storage doesn't need
62702         to be preserved and it's clearer and can be more efficient that way.
62703         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62704         * lib/xreadlink.h (xreadlink): Update prototype.
62705
62706 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62707
62708         * lib/xgetcwd.c: Revert some of the previous change; intead,
62709         fix the HAVE_GETCWD_NULL code to behave more like the
62710         !HAVE_GETCWD_NULL code used to.
62711
62712         Include "xalloc.h".
62713         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62714         invoke xalloc_die.
62715
62716 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62717
62718         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62719         sys/param.h, as pathmax.h includes them.
62720
62721 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62722
62723         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62724         (jm_PREREQ_XGETCWD): New macro.
62725
62726         * m4/getcwd.m4: New file.
62727
62728 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62729
62730         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62731         like the HAVE_GETCWD_NULL code.
62732         Include pathmax.h if not HAVE_GETCWD.
62733         Do not include xalloc.h.
62734         (INITIAL_BUFFER_SIZE): New symbol.
62735         Do not use xmalloc / xrealloc, since the caller is responsible for
62736         handling errors.  Preserve errno around `free' during failure.
62737         Do not overrun buffer when using getwd.
62738
62739 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62740
62741         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62742         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62743         getcwd (NULL, 0).
62744
62745 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62746
62747         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62748         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62749         spotted by Jim Meyering.
62750
62751 2001-09-03  Jim Meyering  <meyering@lucent.com>
62752
62753         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62754         failure.
62755
62756 2001-09-02  Jim Meyering  <meyering@lucent.com>
62757
62758         * lib/error.c: Update from GNU libc.
62759
62760 2001-09-01  Jim Meyering  <meyering@lucent.com>
62761
62762         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62763         Used by df.
62764
62765 2001-09-01  Jim Meyering  <meyering@lucent.com>
62766
62767         * lib/xreadlink.c: New file.
62768         * lib/xreadlink.h: New file.
62769         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62770         xreadlink.h.
62771
62772         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62773         doesn't conflict with sparc Solaris 7's definition in
62774         /usr/include/sys/int_types.h.
62775
62776         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62777         files.
62778         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62779         and strncasecmp as r-values.  Unixware didn't have declarations.
62780
62781 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62782
62783         * lib/xstrtol.h: Add copyright notice.
62784         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62785         LONGINT_INVALID_SUFFIX_CHAR.
62786
62787 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62788
62789         * lib/xstrtol.c (strtoimax): New decl.
62790
62791 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62792
62793         * lib/xgetcwd.c: Don't include pathmax.h.
62794         Include stdlib.h and unistd.h if available.
62795         Include xalloc.h.
62796         (xmalloc, xstrdup, free): Remove decls.
62797         (xgetcwd): Don't assume sizes fit in unsigned.
62798         Check for overflow when computing sizes.
62799         Simplify reallocation code.
62800
62801 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62802
62803         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62804         a directory's st_size can have an arbitrary value, so the old
62805         usage could waste an arbitrary amount of memory.  All uses
62806         changed.
62807         * lib/savedir.h: Update prototype.
62808
62809 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62810
62811         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62812
62813         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62814         old strtoimax.c.
62815
62816         Also, make the following further changes to make this file's
62817         configuration more similar to that of strtol.c:
62818         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62819         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62820         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62821         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62822         changed to signed values.
62823
62824         And make the following changes as well:
62825         Fix copyright notice, as 1999 was missing.
62826         (verify): New macro.
62827         (strtoimax): Check sizes at compile-time, not run-time.
62828         Prefer strtol to strtoll if both work.
62829         (main): Remove; it was not that useful and was a pain to maintain.
62830
62831         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62832
62833 2001-08-31  Jim Meyering  <meyering@lucent.com>
62834
62835         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62836         Use an initial, malloc'd, buffer of length 128 rather than
62837         a statically allocated one of length 1024.
62838
62839 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62840
62841         Simplify code, partly by assuming autoconf 2.52 semantics.
62842
62843         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62844
62845         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62846         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62847         All uses removed.
62848         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62849         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62850         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62851         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62852         jm_AC_HEADER_INTTYPES_H.
62853         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62854
62855         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62856
62857         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62858         Quote first arg of AC_DEFUN.
62859         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62860         since they are needed to parse the include file even if we need
62861         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62862         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62863         but with opposite signedness.
62864
62865 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62866
62867         Merge 'exclude' changes from tar 1.13.22.
62868         This fixes one or two unlikely storage allocation overflow bugs,
62869         but doesn't change user-visible behavior otherwise.
62870
62871 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62872
62873         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62874         (jm_PREREQ_EXCLUDE): New macro.
62875
62876 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62877
62878         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62879         tm to be declared.
62880
62881 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62882
62883         * lib/hash.c: Remove '2001' from copyright notice.
62884
62885 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62886
62887         * lib/full-write.h: New file.
62888         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62889         * lib/full-write.c: Correct credits, as cccp.c no longer
62890         exists and anyway it was so heavily changed from the old cccp
62891         code as to be unrecognizable.  Include full-write.h.
62892         (full_write) Return size_t, with short writes meaning failure.
62893         All callers changed.  This fixes a bug with large buffers
62894         on 64-bit hosts.
62895         * lib/utime.c: Include full-write.h.
62896
62897 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62898
62899         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62900         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62901         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62902         Include if available.
62903         (<xalloc.h>): Include
62904         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62905         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62906         collide with FNM macros.
62907         (struct patopts): New struct.
62908         (struct exclude): Use it, as exclude patterns now come with options.
62909         (new_exclude): Support above changes.
62910         (new_exclude, add_exclude_file):
62911         Initial size must now be a power of two to simplify overflow checking.
62912         (free_exclude, fnmatch_no_wildcards): New function.
62913         (excluded_filename): No longer requires options arg, as the options
62914         are determined by add_exclude.  Now returns bool, not int.
62915         (excluded_filename, add_exclude):
62916         Add support for the fancy new exclusion options.
62917         (add_exclude, add_exclude_file): Now takes int options arg.
62918         Check for arithmetic overflow when computing sizes.
62919         (add_exclude_file): xrealloc might modify errno, so don't
62920         realloc until after errno might be used.
62921
62922         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62923         New macros.
62924         (free_exclude): New decl.
62925         (add_exclude, add_exclude_file): Now takes int options arg.
62926         (excluded_filename): No longer requires options arg, as the options
62927         are determined by add_exclude.  Now returns bool, not int.
62928
62929 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62930
62931         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62932
62933 2001-08-27  Jim Meyering  <meyering@lucent.com>
62934
62935         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62936
62937         * lib/version-etc.c (N_): Remove definition.
62938         Revert most of last change.
62939         Instead, simply don't mark the `Copyright...' string for translation.
62940         Based on advice from Paul Eggert.
62941
62942         * lib/strtoxmax.c: Tweak comment.
62943
62944 2001-08-26  Jim Meyering  <meyering@lucent.com>
62945
62946         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62947
62948         * m4/xstrtoimax.m4: New file.
62949         * m4/xstrtoumax.m4: Add comments explaining why we
62950         AC_REPLACE_FUNCS(strtol).
62951
62952 2001-08-26  Jim Meyering  <meyering@lucent.com>
62953
62954         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62955         of copyright with `%s' so translators don't get an untranslated
62956         message in 2002.
62957         (COPYRIGHT_YEAR): Define.
62958         (version_etc): Use fprintf rather than fputs.
62959         Suggestion from Ulrich Drepper.
62960
62961         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62962
62963         * lib/strtoll.c: New file, from GNU libc.
62964         * lib/xstrtoimax.c: New file.
62965
62966         * lib/xstrtol.h: Add xstrtoimax.
62967         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62968         * lib/strtoimax.c: New file.  Likewise, but first define
62969         STRTOUXMAX_SIGNED.
62970
62971         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62972         ...
62973         * lib/strtoxmax.c: ... then renamed to this.
62974
62975 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62976
62977         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62978         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62979         (jm_AC_TYPE_INTMAX_T): New macro.
62980         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62981
62982         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62983
62984         * m4/longlong.m4: Renamed from ulonglong.m4.
62985         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62986         * m4/uintmax_t.m4: Removed.
62987
62988 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62989
62990         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62991         Port to Solaris 8, where 'sed' requires a space after the 'r'
62992         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62993         Redirect output to $tmp just once.
62994
62995 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62996
62997         * lib/addext.c (<errno.h>): Include.
62998         (errno): Declare if not defined.
62999         (addext): Work correctly when pathconf returns -1 and leaves
63000         errno alone because there is no limit.  Also, work even if
63001         pathconf returns a value greater than SIZE_MAX.
63002
63003 2001-08-12  Jim Meyering  <meyering@lucent.com>
63004
63005         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
63006         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
63007         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
63008         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
63009         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
63010         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
63011         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
63012         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
63013         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
63014         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
63015         utime.m4, utimes.m4, xstrtoumax.m4:
63016         Quote the first argument in each use of AC_DEFUN.
63017
63018 2001-08-12  Jim Meyering  <meyering@lucent.com>
63019
63020         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
63021         Simply `return getcwd (NULL, 0);'.
63022         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
63023         Use 1300 as initial value for length, not PATH_MAX.
63024
63025         * lib/pathmax.h: Clean up cpp syntax.
63026
63027 2001-08-12  Jim Meyering  <meyering@lucent.com>
63028
63029         * lib/gettimeofday.c: New file.
63030         * lib/gtod.h: New file.
63031         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
63032
63033 2001-08-05  Jim Meyering  <meyering@lucent.com>
63034
63035         * m4/jm-macros.m4: Require autoconf-2.52.
63036
63037 2001-08-04  Jim Meyering  <meyering@lucent.com>
63038
63039         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
63040         stmt, to get in sync with glibc.
63041
63042 2001-08-03  Paul Eggert  <eggert@twinsun.com>
63043
63044         The following changes are from gettext 0.10.39 as maintained by
63045         Bruno Haible.
63046
63047         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
63048         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
63049         with inverted sense.  All uses changed.
63050
63051         * lib/mbswidth.c: Don't include <limits.h>.
63052         Include <stdlib.h> and <string.h> unconditionally.
63053         (iswcntrl, mbsinit, ISCNTRL): New macros.
63054         (mbsnwidth): Use K&R style function declarations.
63055         Don't bother checking for MB_LEN_MAX == 1, since the compiler
63056         can optimize it when MB_CUR_MAX == 1.
63057         The width of control characters is zero, not 1.
63058
63059 2001-08-03  Paul Eggert  <eggert@twinsun.com>
63060
63061         The following changes are from gettext 0.10.39 as maintained by
63062         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
63063
63064         * m4/codeset.m4: Upgrade to serial AM1.
63065         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
63066         all uses changed.  Quote first arg of AC_DEFUN.
63067         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
63068
63069         * m4/iconv.m4: Upgrade to serial AM2.
63070         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
63071         Add --with-libconv-prefix.
63072         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
63073         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
63074         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
63075         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
63076         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
63077
63078         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
63079         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
63080         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
63081         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
63082         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
63083         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
63084         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
63085         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
63086         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63087
63088         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
63089         string.h any more.
63090
63091         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
63092         not the default value.
63093
63094         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
63095         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
63096         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
63097         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
63098         Also check for iswcntrl, used for wcwidth fallback.
63099         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
63100         to Autoconf 2.13.
63101
63102 2001-08-03  Jim Meyering  <meyering@lucent.com>
63103
63104         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
63105         as it was in the original.  Reported by Paul Eggert.
63106
63107 2001-07-16  Jim Meyering  <meyering@lucent.com>
63108
63109         * m4/gettimeofday.m4: New file.
63110         Prompted by a report from Bernhard Baehr.
63111
63112 2001-07-15  Jim Meyering  <meyering@lucent.com>
63113
63114         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
63115         stuff. Now it's in ../Makefile.cfg.
63116
63117 2001-07-15  Jim Meyering  <meyering@lucent.com>
63118
63119         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
63120         (BUILT_SOURCES): Add unlocked-io.h.
63121         (io_functions): Define.
63122         (unlocked-io.h): New rule.
63123         (DISTCLEANFILES): Add unlocked-io.h.
63124         (all-local): Depend on unlocked-io.h, to ensure it is created.
63125
63126         * lib/unlocked-io.hin: New file
63127
63128         * lib/regex.c: Update from glibc.
63129
63130 2001-07-05  Jim Meyering  <meyering@lucent.com>
63131
63132         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
63133         recommendation.
63134         (libfetish_a_SOURCES): Put all .h files here instead.
63135         Remove a thus-exposed (better checks in automake) duplicate and
63136         two unnecessary .h files.
63137
63138 2001-07-04  Jim Meyering  <meyering@lucent.com>
63139
63140         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
63141         that generates jm-glibc-io.m4 so that it doesn't trigger any make
63142         distcheck failure.
63143
63144 2001-07-02  Jim Meyering  <meyering@lucent.com>
63145
63146         The following changes were prompted by suggestions from Bruno Haible.
63147
63148         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
63149         is now generated.
63150         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
63151         definition of EXTRA_DIST.
63152         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
63153         ensure that the generated file is created/updated whenever the list
63154         of $(unlocked_functions) is changed.
63155         (jm-glibc-io.m4): New rule.
63156         (unlocked-io.h): New rule -- currently unused.
63157
63158 2001-06-24  Jim Meyering  <meyering@lucent.com>
63159
63160         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
63161         unmatched right bracket, rather than kludging it with an extra,
63162         falsely-matching quote in a comment.  Patch by Akim Demaille.
63163
63164 2001-06-11  Jim Meyering  <meyering@lucent.com>
63165
63166         * lib/regex.c: Update from GNU libc.
63167
63168 2001-05-27  Jim Meyering  <meyering@lucent.com>
63169
63170         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
63171         Check for ut_type in struct utmp.
63172
63173 2001-05-27  Jim Meyering  <meyering@lucent.com>
63174
63175         * lib/readutmp.h (UT_TYPE): Define.
63176
63177 2001-05-24  Jim Meyering  <meyering@lucent.com>
63178
63179         * lib/argmatch.c: Include "quote.h".
63180         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
63181         quote function.  Reported by Göran Uddeborg.
63182
63183 2001-05-22  Jim Meyering  <meyering@lucent.com>
63184
63185         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
63186         now that we use the package-supplied version unconditionally.
63187         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
63188
63189 2001-05-21  Jim Meyering  <meyering@lucent.com>
63190
63191         * m4/regex.m4: Change a couple backticks to single quotes to avoid
63192         shell syntax errors.
63193
63194 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
63195
63196         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
63197
63198 2001-05-20  Paul Eggert  <eggert@twinsun.com>
63199
63200         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
63201         Don't bother to check library strftime, since
63202         we'll be using our own my_strftime function anyway.
63203         Define my_strftime instead of strftime.
63204
63205 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
63206
63207         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
63208         which is not yet declared.
63209
63210 2001-05-15  Jim Meyering  <meyering@lucent.com>
63211
63212         * m4/regex.m4: Use proper quoting so brackets appear in the test
63213         program.
63214         Reported by, and with help from, Bruno Haible.
63215
63216 2001-05-13  Jim Meyering  <meyering@lucent.com>
63217
63218         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
63219         undefined.
63220
63221 2001-05-11  Paul Eggert  <eggert@twinsun.com>
63222
63223         dirname code cleanup.  base_name now behaves more compatibly
63224         with POSIX basename when given file names that have trailing
63225         slashes, and similarly for dir_name.  Add new primitives
63226         base_len and dir_len.  Put the directory-name-related decls
63227         into dirname.h.
63228
63229         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
63230         * lib/backupfile.c (base_name): Likewise.
63231         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
63232         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
63233         * lib/makepath.c (strip_trailing_slashes): Likewise.
63234         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
63235         ISSLASH): Likewise.
63236         * lib/rename.c (strip_trailing_slashes): Likewise.
63237         * lib/same.c (base_name): Likewise.
63238         * lib/stripslash.c (ISSLASH): Likewise.
63239
63240         * lib/addext.c: Include <dirname.h> after size_t is defined.
63241         * lib/backupfile.c: Likewise.
63242
63243         * lib/addext.c (addext): Use base_len to trim redundant
63244         trailing slashes instead of doing it ourselves.
63245         But do not trim the last slash if it is not redundant.
63246
63247         * lib/backupfile.c (find_backup_file_name,
63248         max_backup_version): Use base_len instead of rolling it ourselves.
63249         Handle the case of "" and (on DOS) "C:" correctly.
63250
63251         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
63252         needed. Include <string.h>, <dirname.h>.
63253         (base_name): Allow file names ending in slashes, other than names
63254         that are all slashes.  In this case, return the basename followed
63255         by the slashes.  This is more general, and can be used in places
63256         where the original base_name purposely had an assertion failure.
63257         (base_len): New function.
63258
63259         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
63260         Do not include <assert.h>; no longer needed.
63261         Include xalloc.h.
63262         (memrchr): Remove decl.
63263         (dir_name_r): Remove.
63264         (dir_len): Renamed from dirlen.  All callers changed.
63265         Rewrite in terms of base_name, for simplicity and consistency.
63266         (dir_name): Never return NULL.  All callers changed.
63267         Do not include <stdlib.h> in test program; no longer needed.
63268         return 0; is fine for test program.
63269
63270         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
63271         New macros.
63272         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
63273
63274         * lib/path-concat.c (path_concat): Use base_len to compute
63275         base length, not strlen; this means we cannot rely on memcpy
63276         to null-terminate.
63277
63278         * lib/same.c (STREQ): Remove.
63279         (same_name): Handle the case where the basename ends in trailing '/'.
63280
63281         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
63282         a slash was stripped.  Do not strip the last slash after a
63283         file system prefix.
63284
63285 2001-05-11  Paul Eggert  <eggert@twinsun.com>
63286
63287         * lib/Makefile.am (libfetish_a_SOURCES):
63288         Add strftime.c, since we now compile it on all hosts.
63289
63290         * lib/strftime.c (my_strftime):
63291         Define to nstrftime if emacs, but only if my_strftime is not defined.
63292         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
63293         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
63294         Add one more extra argument: a nanoseconds value.
63295         All uses changed.
63296         (ns): New macro.
63297         (my_strftime function): Add %N format.
63298         (emacs_strftimeu): Renamed from emacs_strftime,
63299         with extra ut argument.
63300
63301 2001-05-09  Paul Eggert  <eggert@twinsun.com>
63302
63303         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
63304
63305 2001-04-21  Jim Meyering  <meyering@lucent.com>
63306
63307         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
63308         doesn't interfere.
63309
63310 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
63311
63312         * m4/ftruncate.m4: Check for chsize.
63313         Link with ftruncate.o unconditionally if ftruncate is missing.
63314         This was required when cross-compiling to i586-mingw32msvc.
63315
63316 2001-04-08  Jim Meyering  <meyering@lucent.com>
63317
63318         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
63319         recomputed; that's necessary when the offset spans a DST transition.
63320         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
63321
63322 2001-04-02  Jim Meyering  <meyering@lucent.com>
63323
63324         * lib/regex.h, regex.c: Update from GNU libc.
63325
63326 2001-03-24  Jim Meyering  <meyering@lucent.com>
63327
63328         * m4/jm-macros.m4: Require autoconf-2.49d.
63329
63330 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
63331
63332         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
63333
63334 2001-03-19  Paul Eggert  <eggert@twinsun.com>
63335
63336         * lib/version-etc.c (version_etc_copyright): Update to 2001.
63337
63338 2001-03-17  Jim Meyering  <meyering@lucent.com>
63339
63340         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
63341         now that the version in autoconf is equivalent.
63342         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
63343
63344         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
63345         Suggestion from Akim Demaille.
63346
63347         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
63348         (jm_PREREQ_TEMPNAME): New function.
63349
63350 2001-03-16  Paul Eggert  <eggert@twinsun.com>
63351
63352         * lib/tempname.c (uint64_t): Define to uintmax_t if
63353         not defined, and if UINT64_MAX is not defined.
63354         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
63355         Reported by John David Anglin.
63356
63357 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
63358
63359         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
63360         resolve alias if codeset is empty.
63361         * lib/config.charset (BeOS): Use wildcard syntax.
63362
63363 2001-03-13  Jim Meyering  <meyering@lucent.com>
63364
63365         * lib/path-concat.c (path_concat)
63366         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
63367         concatenating e.g., `C:' and `foo'.
63368         From Bruno Haible.
63369
63370 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
63371
63372         * lib/localcharset.c (locale_charset): Don't use
63373         setlocale(LC_CTYPE,NULL). Don't return NULL.
63374         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
63375
63376 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
63377
63378         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
63379         support for DOS/DJGPP.
63380
63381 2001-03-01  Paul Eggert  <eggert@twinsun.com>
63382
63383         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
63384         lacks mkstemp.  Compile our own tempname.c if we compile our own
63385         mkstemp.c, as mkstemp relies on tempname.
63386
63387 2001-03-01  Jim Meyering  <meyering@lucent.com>
63388
63389         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
63390         AH_VERBATIM really does output its argument verbatim.
63391
63392 2001-02-28  Paul Eggert  <eggert@twinsun.com>
63393
63394         * lib/Makefile.am (libfetish_a_SOURCES):
63395         Add dup-safer.c, fopen-safer.c.
63396         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
63397
63398         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
63399         * lib/unistd-safer.h: New files.
63400
63401 2001-02-25  Paul Eggert  <eggert@twinsun.com>
63402
63403         The mkstemp replacement is taken from glibc 2.2.2, with some
63404         portability fixes for use outside glibc, as follows:
63405
63406         * lib/tempname.c (struct_stat64): New macro.
63407         (direxists, __gen_tempname): Use it.
63408         This avoids a portability problem with Solaris 8.
63409
63410         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
63411         (<stddef.h>, <stdint.h>, <string.h>):
63412         Include only if STDC_HEADERS || _LIBC.
63413         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
63414         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
63415         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
63416         (__set_errno): Define this macro if <errno.h> doesn't.
63417         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
63418         Define these macros if <stdio.h> doesn't.
63419         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
63420         Define these macros if <sys/stat.h>
63421         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
63422         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
63423         __xstat64): Define if not _LIBC.
63424         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
63425         (__gen_tempname): Invoke gettimeofday only if
63426         HAVE_GETTIMEOFDAY || _LIBC;
63427         otherwise, fall back on plain "time".
63428         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
63429
63430         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
63431
63432         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
63433
63434 2001-02-18  Paul Eggert  <eggert@twinsun.com>
63435
63436         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
63437
63438 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63439
63440         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
63441         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
63442         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
63443         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
63444
63445 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63446
63447         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
63448         Remove workaround macros for hosts that have mbrtowc but not
63449         mbstate_t, as we now insist on proper declarations for both
63450         before using mbrtowc.
63451
63452 2001-02-17  Jim Meyering  <meyering@lucent.com>
63453
63454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
63455         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
63456         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
63457         UnixWare 7.1.1.
63458
63459         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
63460         rather than AC_CACHE_VAL.
63461
63462 2001-02-17  Jim Meyering  <meyering@lucent.com>
63463
63464         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
63465         around included file name.
63466
63467         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
63468
63469         * lib/strftime.c: Update from GNU libc (the only changes were to
63470         comments).
63471
63472 2001-02-17  Jim Meyering  <meyering@lucent.com>
63473
63474         * lib/regex.c: Update from libc.
63475
63476 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
63477
63478         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
63479         clash.
63480
63481 2001-02-16  Paul Eggert  <eggert@twinsun.com>
63482
63483         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
63484         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
63485         Reported by Mark Hounschell via Paul Eggert.
63486
63487 2001-02-07  Jim Meyering  <meyering@lucent.com>
63488
63489         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
63490
63491 2001-02-05  Jim Meyering  <meyering@lucent.com>
63492
63493         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
63494         it includes the patch required for `large file' support with at least
63495         HP-UX's 10.20 /bin/cc.
63496
63497 2001-02-03  Jim Meyering  <meyering@lucent.com>
63498
63499         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
63500         AS_IF, now that it works once again (mysteriously).
63501         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63502
63503 2001-01-30  Jim Meyering  <meyering@lucent.com>
63504
63505         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
63506         * m4/chown.m4: Rename conftestchown to conftest.chown.
63507         * m4/rename.m4: s/conftestdir/conftest.d1/ and
63508         s/conftestdir2/conftest.d2/.
63509         * m4/utimes.m4: s/conftestdata/conftest.data/
63510         Inspired by Pavel Roskin's change in autoconf.
63511
63512 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
63513
63514         * lib/config.charset: Update for FreeBSD 4.2.
63515
63516 2001-01-27  Jim Meyering  <meyering@lucent.com>
63517
63518         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
63519         a use of AS_IF.
63520         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63521
63522 2001-01-26  Jim Meyering  <meyering@lucent.com>
63523
63524         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
63525         quotearg.c includes it.
63526
63527 2001-01-26  Jim Meyering  <meyering@lucent.com>
63528
63529         * lib/quotearg.c: Include stddef.h.
63530         * lib/quote.c: Include stddef.h.
63531         Reported by Axel Kittenberger.
63532
63533         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
63534         line in double quotes so that it evokes a better diagnostic.
63535         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
63536         Reported by Axel Kittenberger.
63537
63538 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
63539
63540         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
63541         as if it was a `charset'.
63542
63543 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63544
63545         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
63546         has const.
63547
63548 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63549
63550         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
63551         to avoid a warning.  Add back 'const' to inptr.
63552
63553 2001-01-20  Jim Meyering  <meyering@lucent.com>
63554
63555         Be sure that headers are checked before used in code compiled
63556         for the type checks.
63557         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
63558         In place of that, invoke jm_CHECK_ALL_TYPES.
63559         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
63560         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
63561         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
63562         The check for ssize_t was mistakenly run before the test for unistd.h.
63563
63564         The configure-time check for stdbool.h was missing.
63565         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
63566         (jm_PREREQ_HASH): New function.
63567
63568 2001-01-17  Jim Meyering  <meyering@lucent.com>
63569
63570         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
63571         for autoconf-2.49c.
63572         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
63573
63574 2001-01-16  Jim Meyering  <meyering@lucent.com>
63575
63576         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
63577         From Bruno Haible.
63578
63579 2001-01-14  Jim Meyering  <meyering@lucent.com>
63580
63581         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
63582         foo and bar.  Create conftestdir/ in the script, not in the C code.
63583         Remove directories in the script, not in the C code.
63584         Remove conftestdir{,2} before trying to create the directory.
63585         Make the entire configure script fail if the mkdir fails.
63586
63587 2001-01-14  Jim Meyering  <meyering@lucent.com>
63588
63589         * lib/rename.c: New file.  From Volker Borchert.
63590         Include stdlib.h, string.h or strings.h, and xalloc.h.
63591         Use strip_trailing_slashes rather than open-coding it.
63592
63593 2001-01-03  Paul Eggert  <eggert@twinsun.com>
63594
63595         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
63596
63597 2001-01-03  Jim Meyering  <meyering@lucent.com>
63598
63599         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
63600         of local `inptr' to avoid warning with some system declarations of
63601         iconv.
63602
63603 2001-01-02  Volker Borchert  <bt@teknon.de>
63604
63605         * m4/rename.m4: New file.
63606         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
63607
63608 2001-01-01  Jim Meyering  <meyering@lucent.com>
63609
63610         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
63611         even on systems with utmpx.h.  It's necessary for the declaration of
63612         utmp's ut_user member.  Reported by Andreas Jaeger.
63613
63614         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
63615         available. They are required for the declarations of getgrgid and
63616         getpwuid resp.
63617         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63618         Reported by Andreas Jaeger.
63619
63620 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63621
63622         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63623         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63624         so `make install' also works in VPATH builds.
63625
63626 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63627
63628         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63629         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63630         can be used in subdirectories.
63631
63632 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63633
63634         * lib/modechange.c: Do not assume that mode_t uses the
63635         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63636         the other-execute bit of FOO even if S_IXOTH != 1.
63637
63638         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63639         WOTH, XOTH, ALLM): New macros.
63640         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63641          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63642         Use them.
63643         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63644         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63645         (mode_compile):
63646         No need to use uintmax_t; unsigned long is long enough.
63647         Don't bother to get suffix since we don't use it.
63648
63649 2000-12-26  Jim Meyering  <meyering@lucent.com>
63650
63651         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63652         better with autoheader.
63653
63654 2000-12-24  Jim Meyering  <meyering@lucent.com>
63655
63656         * lib/hash.c (is_prime): Return explicit boolean values.
63657         (hash_get_first): Return NULL to appease Irix5.6's 89.
63658         Reported by Nelson Beebe.
63659
63660 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63661
63662         * lib/localcharset.c (locale_charset): Add support for Win32.
63663
63664 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63665
63666         * lib/physmem.h, lib/physmem.c: New files.
63667
63668         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63669         (noinst_HEADERS): Add physmem.h.
63670
63671         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63672         't' for compatibility with Solaris 8 sort.
63673
63674 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63675
63676         * lib/config.charset: Add support for BeOS.
63677
63678 2000-12-17  Jim Meyering  <meyering@lucent.com>
63679
63680         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63681         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63682
63683 2000-12-16  Jim Meyering  <meyering@lucent.com>
63684
63685         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63686         N and M) would have treated it like `chown N:N FILE'.
63687
63688         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63689
63690 2000-12-16  Jim Meyering  <meyering@lucent.com>
63691
63692         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63693         SHELLS_FILE to a file name that's useful on djgpp systems.
63694         Include stdlib.h.
63695         (ADDITIONAL_DEFAULT_SHELLS): Define.
63696         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63697         Based mostly on a patch from Prashant TR.
63698
63699 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63700
63701         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63702         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63703         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63704
63705 2000-12-08  Andreas Schwab  <schwab@suse.de>
63706
63707         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63708         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63709
63710 2000-12-07  Jim Meyering  <meyering@lucent.com>
63711
63712         * lib/stripslash.c (ISSLASH): Define.
63713         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63714         `/'.
63715         From Prashant TR.
63716
63717         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63718         (dir_name_r): Declare this function as static.
63719         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63720         manifest itself on a name containing a mix of slashes and
63721         backslashes.
63722         Make this function work with names starting with a DOS-style
63723         drive letter and colon prefix.
63724         (dir_name): Append `.' if necessary.
63725         Based mostly on patches from Prashant TR and Eli Zaretskii.
63726
63727         * lib/dirname.h (dir_name_r): Remove prototype.
63728
63729 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63730
63731         * m4/off_t-format.m4: Remove this file.
63732         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63733
63734 2000-12-06  Jim Meyering  <meyering@lucent.com>
63735
63736         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63737         replacement strtoull, we may well need the replacement strtoul, too.
63738         Check for declarations of strtoul and strtoull.
63739         Check for strtol.  Mainly as a cue to cause automake to include
63740         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63741         Check for limits.h -- strtol.c needs it.
63742
63743 2000-12-05  Jim Meyering  <meyering@lucent.com>
63744
63745         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63746
63747 2000-12-04  Jim Meyering  <meyering@lucent.com>
63748
63749         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63750         Also include memory.h, stdlib.h, unistd.h if appropriate.
63751         Reported by Andreas Jaeger (conflicting declaration of malloc).
63752
63753 2000-12-02  Jim Meyering  <meyering@lucent.com>
63754
63755         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63756         * m4/jm-macros.m4 (jm_MACROS): require it.
63757
63758 2000-12-02  Jim Meyering  <meyering@lucent.com>
63759
63760         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63761
63762 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63763
63764         * lib/memrchr.c: Include <config.h> before any system include file.
63765
63766 2000-11-30  Jim Meyering  <meyering@lucent.com>
63767
63768         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63769
63770 2000-11-30  Jim Meyering  <meyering@lucent.com>
63771
63772         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63773
63774 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63775
63776         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63777
63778 2000-11-26  Jim Meyering  <meyering@lucent.com>
63779
63780         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63781
63782 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63783
63784         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63785         size of (size_t) -1; it's not portable.
63786
63787 2000-11-17  Jim Meyering  <meyering@lucent.com>
63788
63789         * lib/strstr.c: Update from GNU libc.
63790
63791 2000-11-17  Akim Demaille  <akim@epita.fr>
63792
63793         * lib/obstack.h: Formatting changes.
63794         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63795         prevent type checking.
63796         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63797         cast the value to (void *): assigning a `foo *' to a `void *'
63798         variable is valid.
63799         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63800
63801 2000-11-16  Jim Meyering  <meyering@lucent.com>
63802
63803         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63804
63805 2000-11-11  Jim Meyering  <meyering@lucent.com>
63806
63807         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63808
63809 2000-11-10  Jim Meyering  <meyering@lucent.com>
63810
63811         * lib/obstack.h: Update from GNU libc.
63812         * lib/obstack.c: Likewise.
63813
63814 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63815
63816         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63817
63818 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63819
63820         * lib/getusershell.c (setusershell): Use rewind rather than
63821         fseek/fseeko, to avoid configuration hassles with fseeko.
63822         Don't bother opening SHELLS_FILE if shellstream is NULL;
63823         it's not necessary.
63824
63825 2000-11-05  Jim Meyering  <meyering@lucent.com>
63826
63827         * lib/makepath.h (make_dir): Declare.
63828         * lib/makepath.c (make_dir): Remove `static' attribute.
63829         Tweak a comment.
63830
63831 2000-11-04  Jim Meyering  <meyering@lucent.com>
63832
63833         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63834
63835 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63836
63837         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63838         last one in a bucket, advance to the next bucket.
63839
63840 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63841
63842         * lib/fnmatch.c: Do not comment out all the code if we are using
63843         the GNU C library, because in some cases we are replacing buggy
63844         code in the GNU C library itself.
63845
63846 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63847
63848         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63849         (regex_compile): Catch bogus \(\1\).
63850
63851 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63852
63853         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63854         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63855         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63856
63857 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63858
63859         * lib/error.h, getline.h, modechange.h:
63860         Remove "2000" from Copyright line, as the file hasn't been
63861         changed this year other than in the copyright notice.
63862
63863         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63864         was changed this year.
63865
63866 2000-10-29  Jim Meyering  <meyering@lucent.com>
63867
63868         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63869         renaming.
63870         * m4/ls-mntd-fs.m4: Likewise
63871
63872 2000-10-29  Jim Meyering  <meyering@lucent.com>
63873
63874         * lib/xstat.in: Fix grammar in comment.
63875
63876 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63877
63878         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63879         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63880         doesn't define __restrict_arr.
63881
63882 2000-10-28  Jim Meyering  <meyering@lucent.com>
63883
63884         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63885         (jm_PREREQ_MEMCHR): New function.
63886
63887 2000-10-28  Jim Meyering  <meyering@lucent.com>
63888
63889         * lib/memchr.c: Update from libc.
63890         Adjust for portability:
63891         [HAVE_STDLIB_H]: Include stdlib.h.
63892         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63893         Undef __memchr, too.
63894         [!weak_alias]: Define __memchr to memchr.
63895
63896         * lib/regex.c: Update from libc.
63897         * lib/regex.h: Likewise.
63898         * lib/getopt1.c: Likewise.
63899         * lib/memcmp.c: Likewise.
63900
63901         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63902         Avoid using fseek, when possible -- it's broken by design.
63903         Patch by Ulrich Drepper.
63904
63905 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63906
63907         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63908         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63909         Giving in to popular pressure to shut up the compiler with casts.
63910
63911 2000-10-26  Jim Meyering  <meyering@lucent.com>
63912
63913         * lib/strftime.c: Update from libc.
63914
63915 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63916
63917         * regex.c: More `unsigned char' -> `re_char' changes.
63918         Also change several `int' into `re_wchar_t'.
63919         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63920         (PUSH_FAILURE_POINTER): Don't cast any more.
63921         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63922         We want GCC to complain, since this piece of code makes
63923         re_match non-reentrant, which *should* be fixed.
63924         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63925         (EXTEND_BUFFER): Use RETALLOC.
63926         (SET_LIST_BIT): Don't cast.
63927         (re_wchar_t): New type.
63928         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63929         that those two functions will always properly return.
63930         (IMMEDIATE_QUIT_CHECK): Cast to void.
63931         (analyse_first): Use recursion rather than an explicit stack.
63932         (re_compile_fastmap): Can't fail anymore.
63933         (re_search_2): Don't check re_compile_fastmap for failure.
63934         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63935         Now also sets the new value (passed in a new argument).
63936         (re_match_2_internal): Use it.
63937         Also, use a new var `reg' of type size_t when looping through regs
63938         rather than reuse the inappropriate `mcnt'.
63939
63940 2000-10-25  Jim Meyering  <meyering@lucent.com>
63941
63942         * lib/obstack.c: Update from libc.
63943
63944 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63945
63946         * regex.c (regex_compile): Change the way of handling a range from
63947         a char less than 256 to a char not less than 256.
63948
63949 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63950
63951         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63952         NT-Emacs only.
63953         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63954         so that re_search functions only quit when callers expect them to.
63955
63956 2000-10-23  Jim Meyering  <meyering@lucent.com>
63957
63958         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63959         wrong.  That set_locale call must not have any side effects.
63960         From Paul Eggert.
63961
63962 2000-10-22  Jim Meyering  <meyering@lucent.com>
63963
63964         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63965         [CYCLIC]: Remove now-unused definition.
63966
63967         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63968         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63969         Suggestion from Ulrich Drepper.
63970
63971 2000-10-21  Jim Meyering  <meyering@lucent.com>
63972
63973         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63974         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63975         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63976
63977 2000-10-21  Jim Meyering  <meyering@lucent.com>
63978
63979         * lib/dirname.c (memrchr): Declare if necessary.
63980         (dir_name): Remove the restriction that there be no
63981         trailing slashes.  Now, this code skips past them, effectively
63982         ignoring them.
63983         [TEST_DIRNAME] (main): New unit tests.
63984
63985         * lib/memrchr.c: New file from GNU libc.
63986         Undef __memrchr, too.
63987         [!weak_alias]: Define __memrchr to memrchr.
63988         Guard weak_alias use with `#ifdef weak_alias'.
63989
63990 2000-10-21  Jim Meyering  <meyering@lucent.com>
63991
63992         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63993         (dir_name): Use dir_name_r.
63994         * lib/dirname.h (dir_name_r): Declare it.
63995
63996 2000-10-17  Jim Meyering  <meyering@lucent.com>
63997
63998         * lib/quote.h (PARAMS): Define and use.
63999         Reported by Akim Demaille.
64000
64001         * lib/getopt.c: Update from libc.
64002
64003 2000-10-16  Jim Meyering  <meyering@lucent.com>
64004
64005         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
64006         setlocale.
64007         From Jan Fedak.
64008
64009 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
64010
64011         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
64012
64013 2000-09-25  Jim Meyering  <meyering@lucent.com>
64014
64015         * lib/md5.h (rol): Define (from GnuPG).
64016
64017         * lib/sha.c: Give credit (GnuPG) where due.
64018         (M): Use rol rather than open-coding it.
64019         Add a FIXME comment.
64020
64021 2000-09-21  Jim Meyering  <meyering@lucent.com>
64022
64023         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
64024         Reported by Michael Stone.
64025
64026 2000-09-20  Jim Meyering  <meyering@lucent.com>
64027
64028         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
64029         (noinst_HEADERS): Add sha.h.
64030         Based on code from Scott G. Miller and from GnuPG.
64031
64032 2000-09-18  Jim Meyering  <meyering@lucent.com>
64033
64034         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
64035         LIBS. Otherwise, everyone ends up linking with -lelf for some
64036         configurations.
64037         Reported by Mike Stone.
64038
64039 2000-09-15  Jim Meyering  <meyering@lucent.com>
64040
64041         * lib/regex.c: Update from libc.
64042
64043 2000-09-10  Jim Meyering  <meyering@lucent.com>
64044
64045         * lib/getopt.c (_getopt_internal): Update from glibc.
64046
64047 2000-09-09  Jim Meyering  <meyering@lucent.com>
64048
64049         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
64050         think it should be used as a general replacement for isascii.
64051         * lib/fnmatch.c: Likewise.
64052         * lib/mbswidth.c: Likewise
64053         * lib/regex.c: Likewise.
64054
64055         Don't use atoi.
64056         * lib/userspec.c: Include sys/param.h and limits.h.
64057         Include xstrtol.h.
64058         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
64059         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
64060         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
64061         UID, GID.  Check range.
64062
64063 2000-09-06  Jim Meyering  <meyering@lucent.com>
64064
64065         * lib/getopt.c (_getopt_internal): Update from glibc.
64066
64067 2000-08-30  Jim Meyering  <meyering@lucent.com>
64068
64069         * lib/strftime.c: Merge in changes from GNU libc.
64070
64071 2000-08-26  Jim Meyering  <meyering@lucent.com>
64072
64073         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
64074         * m4/fpending.m4: New file.
64075
64076 2000-08-26  Jim Meyering  <meyering@lucent.com>
64077
64078         * lib/closeout.c: Include "__fpending.h".
64079         (close_stdout_status): Return right away if there's nothing to flush.
64080
64081         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
64082         * lib/__fpending.c: New file.
64083         * lib/__fpending.h: New file.
64084
64085 2000-08-20  Jim Meyering  <meyering@lucent.com>
64086
64087         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
64088         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
64089         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
64090
64091 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
64092
64093         Improve fileutils installation on systems where running
64094         programs (like install) can't be unlinked.
64095         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
64096         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
64097
64098 2000-08-07  Paul Eggert  <eggert@twinsun.com>
64099
64100         Standardize on "memory exhausted" instead of "Memory exhausted"
64101         or "virtual memory exhausted".
64102         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
64103         "virtual memory exhausted".
64104         * lib/same.c (same_name): Invoke xalloc_die instead of printing
64105         our own message.
64106         * lib/userspec.c (parse_user_spec): Likewise.
64107         * lib/bumpalloc.h: comment fix
64108         * lib/same.c, userspec.c: Include xalloc.h.
64109
64110         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
64111         not char *const and pointing to a constant array.
64112         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
64113         (xrealloc): Comment fix.
64114
64115         * lib/userspec.c (parse_user_spec):
64116         Don't translate a message until just before returning,
64117         to avoid unnecessary translation.
64118
64119 2000-08-07  Jim Meyering  <meyering@lucent.com>
64120
64121         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
64122         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
64123         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
64124         getgroups.c, gethostname.c, getopt.h, group-member.c,
64125         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
64126         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
64127         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
64128         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
64129         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
64130         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
64131         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
64132         yesno.c: Back out Copyright date changes for each file with no change
64133         this year.  This eases coordination with other programs using the same
64134         source code modules.  From Paul Eggert.
64135
64136 2000-08-06  Paul Eggert  <eggert@twinsun.com>
64137
64138         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
64139         not char, for compatibility with glibc 2.1.3 strftime.c.
64140
64141 2000-08-03  Greg McGary  <greg@mcgary.org>
64142
64143         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
64144         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
64145         (EXTEND_BUFFER): Use them.
64146
64147 2000-08-01  Jim Meyering  <meyering@lucent.com>
64148
64149         * lib/dirname.c (ISSLASH): Define.
64150         (BACKSLASH_IS_PATH_SEPARATOR): Define.
64151         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
64152         both `\' and `/' may be use as path separators.
64153         Based on a patch from Prashant TR.
64154
64155 2000-07-31  Paul Eggert  <eggert@twinsun.com>
64156
64157         * lib/quotearg.c (quotearg_n_options): Don't make the initial
64158         slot vector a constant, since it might get modified.
64159
64160 2000-07-31  Jim Meyering  <meyering@lucent.com>
64161
64162         * lib/xmalloc.c: Use `virtual memory exhausted', not
64163         `Memory exhausted'.
64164         * lib/obstack.c (print_and_abort): Likewise.
64165
64166 2000-07-30  Paul Eggert  <eggert@twinsun.com>
64167
64168         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
64169         buffer, so that the caller can always quote one small
64170         component of a "memory exhausted" message in slot 0.
64171         From a suggestion by Jim Meyering.
64172
64173 2000-07-30  Jim Meyering  <meyering@lucent.com>
64174
64175         * lib/makepath.c (make_path): Quote the other instance, too.
64176
64177         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
64178         (STATIC_BUF_SIZE): Define.
64179         (quotearg_n_options): Use only statically allocated storage when
64180         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
64181         than STATIC_BUF_SIZE.
64182
64183 2000-07-29  Jim Meyering  <meyering@lucent.com>
64184
64185         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
64186         * lib/dirname.c (dir_name): Likewise.
64187
64188         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
64189         `/'.
64190
64191         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
64192         (dir_name): Assert that there are no trailing slashes.
64193
64194 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
64195
64196         * lib/mbswidth.h (mbswidth): Add a flags argument.
64197         (mbswidth): New declaration.
64198         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
64199         * lib/mbswidth.c (mbswidth): Add a flags argument.
64200         (mbsnwidth): New function.
64201
64202 2000-07-24  Jim Meyering  <meyering@lucent.com>
64203
64204         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
64205
64206 2000-07-23  Paul Eggert  <eggert@twinsun.com>
64207
64208         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
64209
64210 2000-07-23  Paul Eggert  <eggert@twinsun.com>
64211
64212         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
64213         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
64214         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
64215         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
64216         invoke multibyte primitives.
64217
64218 2000-07-23  Paul Eggert  <eggert@twinsun.com>
64219
64220         * lib/quotearg.c:
64221         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
64222         so that mbstate_t is always defined.
64223
64224         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
64225         be 1 in at least one GCC installation, and this configuration
64226         error is likely to be common.  Ignoring MB_LEN_MAX hurts
64227         performance on hosts that have mbrtowc but have only unibyte
64228         locales, but I assume these hosts are rare.
64229
64230 2000-07-23  Paul Eggert  <eggert@twinsun.com>
64231
64232         * lib/mbswidth.c (_XOPEN_SOURCE):
64233         Don't define; this causes problems on Solaris 7.
64234         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
64235
64236 2000-07-23  Jim Meyering  <meyering@lucent.com>
64237
64238         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
64239         too: getgrgid, getpwuid, getuid.
64240
64241 2000-07-23  Jim Meyering  <meyering@lucent.com>
64242
64243         * lib/basename.c (base_name): Add an assertion.
64244
64245 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
64246
64247         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
64248         shadow its mbsinit function.
64249
64250 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
64251
64252         * lib/mbswidth.h: New file.
64253         * lib/mbswidth.c: New file.
64254         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
64255         (noinst_HEADERS): Add mbswidth.h.
64256
64257 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
64258
64259         * lib/config.charset: Add support for FreeBSD. Improve support for
64260         HP-UX and IRIX 6.
64261
64262 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
64263
64264         * m4/mbswidth.m4: New file.
64265         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
64266
64267 2000-07-15  Jim Meyering  <meyering@lucent.com>
64268
64269         * lib/makepath.c: Include quote.h.
64270         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
64271         corresponding argument in a `quote (...)' call.
64272         Give better diagnostics.
64273
64274         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
64275         (noinst_HEADERS): Add quote.h.
64276
64277         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
64278         from tar's src/misc.c.
64279         * lib/quote.h: New file.  Prototypes for same.
64280
64281 2000-07-14  Paul Eggert  <eggert@twinsun.com>
64282
64283         From a suggestion by Bruno Haible.
64284         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
64285         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
64286         to decide whether to define the BeOS workaround macro;
64287         this adjusts to the change to AC_MBSTATE_T.
64288
64289 2000-07-14  Jim Meyering  <meyering@lucent.com>
64290
64291         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
64292         jm_AC_TYPE_UINTMAX_T.
64293
64294 2000-07-13  Paul Eggert  <eggert@twinsun.com>
64295
64296         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
64297
64298         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
64299         quotearg_buffer_restyled): Add support for
64300         clocale_quoting_style.  Undo previous change to
64301         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
64302         and "{RIGHT QUOTATION MARK}" msgids.
64303
64304 2000-07-10  Paul Eggert  <eggert@twinsun.com>
64305
64306         From a suggestion by Bruno Haible.
64307         * m4/mbstate_t.m4 (AC_MBSTATE_T):
64308         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
64309         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
64310         and mbstate_t, to a single-part test that simply defines mbstate_t.
64311         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
64312         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
64313
64314 2000-07-10  Jim Meyering  <meyering@lucent.com>
64315
64316         * m4/strerror_r.m4: Mirror the correction made in autoconf.
64317
64318         * m4/gnu-source.m4: Output to confdefs.h directly.
64319         Suggestion from Akim Demaille.
64320
64321 2000-07-09  Paul Eggert  <eggert@twinsun.com>
64322
64323         The old behavior of quoting `like this' doesn't look good with
64324         newer, ISO-style fonts.  See:
64325         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
64326
64327         Instead, quote "like this" by default.  Let the translator
64328         tailor the locale-specific quoting behavior by providing
64329         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
64330
64331         * lib/quotearg.c (N_): New macro.
64332         (gettext_default): New function.
64333         (quotearg_buffer_restyled): Use
64334         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
64335         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
64336
64337 2000-07-09  Jim Meyering  <meyering@lucent.com>
64338
64339         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
64340         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
64341
64342         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
64343         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
64344
64345 2000-07-09  Jim Meyering  <meyering@lucent.com>
64346
64347         * lib/Most files: Update copyright dates to include 2000.
64348
64349 2000-07-08  Jim Meyering  <meyering@lucent.com>
64350
64351         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
64352         if not defined.
64353         (xgethostname): Remove now-unnecessary #ifdef.
64354         Move declaration of `err' into loop where it's used.
64355
64356 2000-07-05  Paul Eggert  <eggert@twinsun.com>
64357         and Bruno Haible  <haible@clisp.cons.org>
64358
64359         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
64360         only if the test for an object-type mbstate_t fails.  This
64361         prevents us from mistakenly reporting that mbstate_t is a
64362         system object type after we "#define mbstate_t int" to work
64363         around its lack.
64364
64365 2000-07-05  Paul Eggert  <eggert@twinsun.com>
64366         and Bruno Haible  <haible@clisp.cons.org>
64367
64368         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
64369
64370 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64371
64372         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
64373         to strerror_r.
64374         Include <ctype.h> for use of isalpha.
64375
64376 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64377
64378         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
64379         by allocating a larger buffer. Test the gethostname return value for
64380         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
64381         returns an error and ENAMETOOLONG isn't defined.
64382
64383 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64384
64385         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
64386         dimension.
64387
64388 2000-07-04  Jim Meyering  <meyering@lucent.com>
64389
64390         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
64391         of the deprecated AC_CHECKING.
64392
64393 2000-07-04  Jim Meyering  <meyering@lucent.com>
64394
64395         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
64396         Reported by Bruno Haible.
64397
64398 2000-07-04  Jim Meyering  <meyering@lucent.com>
64399
64400         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
64401         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
64402         lacks mbrtowc.
64403
64404 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64405
64406         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
64407         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
64408
64409 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64410         and Bruno Haible  <haible@clisp.cons.org>
64411
64412         * lib/quotearg.c (mbrtowc):
64413         Assign to *pwc, and return 1 only if result is nonzero.
64414         (iswprint): Use ISPRINT when substituting our own mbrtowc.
64415
64416 2000-07-03  Jim Meyering  <meyering@lucent.com>
64417
64418         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
64419
64420 2000-07-03  Jim Meyering  <meyering@lucent.com>
64421
64422         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
64423         This is necessary to get a definition of e.g., UTMP_FILE on
64424         HP-UX 10.20.
64425         From Bob Proulx.
64426
64427 2000-07-02  Jim Meyering  <meyering@lucent.com>
64428
64429         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
64430
64431         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
64432         AC_LIBOBJ(function_name).
64433         * m4/chown.m4: Likewise.
64434         * m4/fnmatch.m4: Likewise.
64435         * m4/ftruncate.m4: Likewise.
64436         * m4/getgroups.m4: Likewise.
64437         * m4/getline.m4: Likewise.
64438         * m4/group-member.m4: Likewise.
64439         * m4/jm-macros.m4: Likewise.
64440         * m4/lstat.m4: Likewise.
64441         * m4/malloc.m4: Likewise.
64442         * m4/memcmp.m4: Likewise.
64443         * m4/nanosleep.m4: Likewise.
64444         * m4/putenv.m4: Likewise.
64445         * m4/realloc.m4: Likewise.
64446         * m4/regex.m4: Likewise.
64447         * m4/stat.m4: Likewise.
64448         * m4/strftime.m4: Likewise.
64449
64450 2000-07-02  Jim Meyering  <meyering@lucent.com>
64451
64452         * lib/quotearg.c (mbstate_t): Don't define here.
64453
64454 2000-07-02  Jim Meyering  <meyering@lucent.com>
64455
64456         * lib/nanosleep.c (SIGCONT): Define if not already defined.
64457
64458 2000-07-01  Jim Meyering  <meyering@lucent.com>
64459
64460         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
64461
64462 2000-07-01  Jim Meyering  <meyering@lucent.com>
64463
64464         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
64465         problem.
64466
64467 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64468
64469         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
64470         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
64471
64472 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64473
64474         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
64475         per change in ../m4/ls-mntd-fs.m4.
64476         (read_filesystem_list): Ignore symbolic links.
64477
64478 2000-06-29  Jim Meyering  <meyering@lucent.com>
64479
64480         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
64481         for declaration of strcmp.
64482
64483         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
64484
64485         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
64486         Avoid warning by casting result to `char *' to remove `const'.
64487
64488 2000-06-28  Jim Meyering  <meyering@lucent.com>
64489
64490         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
64491         included by quotearg.c, for which we perform this test.  From
64492         Bruno Haible.
64493
64494 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64495
64496         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
64497         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
64498         <utmpx.h> exists, put readutmp.o into LIBOBJS.
64499
64500 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64501
64502         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
64503
64504 2000-06-26  Paul Eggert  <eggert@twinsun.com>
64505
64506         savedir now sets errno on failure and invokes xmalloc to get memory.
64507         Fix a couple of other minor bugs while we're at it.
64508
64509         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
64510         (NAMLEN): Remove macro.
64511         (malloc, realloc): Remove decls.
64512         (stpcpy): Likewise.
64513         ("xalloc.h"): Include.
64514         (NAME_SIZE_DEFAULT): New macro.
64515         (savedir): Use xmalloc / xrealloc to allocate memory.
64516         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
64517         Skip "" directory entries.
64518         Use strlen to calculate directory entry length, since the old method
64519         is rarely used these days and isn't worth supporting.
64520         Don't use a pointer after freeing it.
64521         Check for integer overflow when calculating allocation size.
64522         Use memcpy to copy entries, instead of stpcpy.
64523         Set errno properly when returning NULL.
64524         Check for readdir error.
64525
64526 2000-06-26  Jim Meyering  <meyering@lucent.com>
64527
64528         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
64529
64530 2000-06-25  Jim Meyering  <meyering@lucent.com>
64531
64532         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
64533         Linux header bug when _XOPEN_SOURCE is defined to 500.
64534
64535 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64536
64537         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
64538         deficiency.
64539
64540 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64541
64542         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
64543         Include xalloc.h.
64544         Don't include <stdlib.h>.  Don't declare malloc, realloc.
64545
64546 2000-06-24  Jim Meyering  <meyering@lucent.com>
64547
64548         * m4/strerror_r.m4: Revive this file -- to try out an experimental
64549         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
64550         for which strerror does return char*, but which lacks a conveniently
64551         accessible declaration of the function.  If the compile-test says
64552         strerror_r doesn't work, then resort to a `run'-test that works on
64553         BeOS and segfaults on DEC Unix.
64554
64555 2000-06-24  Jim Meyering  <meyering@lucent.com>
64556
64557         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
64558
64559 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64560
64561         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
64562         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
64563
64564 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64565
64566         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
64567         (mbrtowc, mbstate_t): Define substitutes if
64568         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
64569         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
64570         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
64571
64572 2000-06-23  Jim Meyering  <meyering@lucent.com>
64573
64574         * m4/afs.m4: Add missing AC_MSG_RESULT.
64575         Reported by Bruno Haible.
64576
64577         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
64578         Suggestion from Bruno Haible.
64579
64580 2000-06-23  Jim Meyering  <meyering@lucent.com>
64581
64582         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
64583
64584 2000-06-21  Jim Meyering  <meyering@lucent.com>
64585
64586         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
64587
64588 2000-06-21  Jim Meyering  <meyering@lucent.com>
64589
64590         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
64591         (noinst_HEADERS): Add getstr.h.
64592
64593         * lib/getline.c (getstr): Move into a separate file.
64594         * lib/getstr.c (getstr): New file, extracted from getline.c, with
64595         the following changes: new parameter, delim2; both delim[12]
64596         parameters have type `int', not `char'.  The latter would lose
64597         with 8-bit delimiters.
64598         * lib/getstr.h: New file.
64599
64600 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64601
64602         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
64603         than 1024, return a memory chunk of least possible size, instead
64604         of size PATH_MAX + 2. In the loop, increment the size proportionally.
64605         Use free/xmalloc instead of xrealloc to avoid copying for very long
64606         paths.
64607
64608 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64609
64610         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
64611         the empty string.
64612
64613 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64614
64615         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
64616         address, not strdup.  Include <stdlib.h> and don't declare free().
64617
64618 2000-06-19  Jim Meyering  <meyering@lucent.com>
64619
64620         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64621
64622 2000-06-18  Jim Meyering  <meyering@lucent.com>
64623
64624         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64625
64626         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64627         `checking whether...' message to be consistent with that of the
64628         lstat test.
64629
64630 2000-06-18  Jim Meyering  <meyering@lucent.com>
64631
64632         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64633         Besides, these days every porting target provides a mkdir function.
64634
64635         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64636         needed. (this snippet comes from src/system.h).
64637
64638 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64639
64640         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64641
64642 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64643
64644         * lib/human.c (adjust_value): New function.
64645         (human_readable_inexact): Apply rounding style even when
64646         printing approximate values.
64647
64648 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64649
64650         * lib/human.c (human_readable_inexact): Allow an input block
64651         size that is not a multiple of the output block size, and vice versa.
64652         Reported by Piergiorgio Sartor.
64653
64654 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64655
64656         * lib/getdate.y (get_date): Apply relative times after time
64657         zone indicator, not before.  Reported by Todd A. Jacobs.
64658
64659 2000-06-13  Jim Meyering  <meyering@lucent.com>
64660
64661         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64662
64663         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64664
64665 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64666
64667         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64668
64669 2000-06-12  Jim Meyering  <meyering@lucent.com>
64670
64671         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64672         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64673         optional argument.
64674         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64675         the optional argument, `lib'.
64676
64677 2000-06-08  Jim Meyering  <meyering@lucent.com>
64678
64679         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64680
64681 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64682
64683         Rewrite largefile configuration so that we don't need to run
64684         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64685         AC_CANONICAL_HOST in configure.in -- jmm]
64686
64687         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64688         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64689         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64690         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64691         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64692         All uses changed.
64693         Instead of inspecting the output of getconf, try to compile the
64694         test program without and with the macro definition.
64695         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64696         for getconf.  Instead, check for the needed flags by compiling
64697         test programs.
64698
64699 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64700
64701         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64702
64703 2000-06-04  Jim Meyering  <meyering@lucent.com>
64704
64705         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64706         SunOS 4.1.4 for which gid_t is an unsigned type.
64707
64708 2000-06-03  Jim Meyering  <meyering@lucent.com>
64709
64710         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64711         now that autoconf requires that.
64712
64713         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64714         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64715         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64716
64717 2000-06-03  Jim Meyering  <meyering@lucent.com>
64718
64719         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64720
64721 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64722
64723         * m4/glibc21.m4: New file.
64724         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64725
64726 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64727
64728         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64729         newer, don't install charset.alias.
64730         * lib/config.charset: Change the Linux/glibc rules so they become empty
64731         on glibc-2.1 or newer.
64732
64733 2000-06-02  Jim Meyering  <meyering@lucent.com>
64734
64735         * lib/mountlist.c: Back out last change.  Instead, do this...
64736         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64737         me_dummy member using the same `ignore'-testing code.
64738         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64739         fs_type strings.
64740         From Mark D. Roth.
64741
64742 2000-05-29  Jim Meyering  <meyering@lucent.com>
64743
64744         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64745         mounts with the `ignore' attribute.  Based on a patch from
64746         Mark D. Roth.
64747
64748 2000-05-28  Jim Meyering  <meyering@lucent.com>
64749
64750         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64751         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64752         * m4/stat.m4: Likewise.
64753         * m4/lstat.m4: Likewise.
64754         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64755
64756         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64757         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64758
64759 2000-05-26  Jim Meyering  <meyering@lucent.com>
64760
64761         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64762
64763 2000-05-24  Jim Meyering  <meyering@lucent.com>
64764
64765         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64766         autoconf requires that.
64767         * m4/lib-check.m4: Likewise.
64768         * m4/jm-macros.m4: Likewise.
64769         * m4/strftime.m4: Likewise.
64770
64771         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64772         AC_CHECK_DECLS, now that autoconf requires that.
64773
64774 2000-05-22  Jim Meyering  <meyering@lucent.com>
64775
64776         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64777         * m4/lstat.m4: Likewise.
64778
64779 2000-05-22  Jim Meyering  <meyering@lucent.com>
64780
64781         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64782
64783 2000-05-20  Jim Meyering  <meyering@lucent.com>
64784
64785         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64786         (jm_PREREQ): Use it.
64787
64788 2000-05-18  Jim Meyering  <meyering@lucent.com>
64789
64790         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64791         back, too, since it may have been modified by allocate_entry.
64792         (hash_delete): Rewrite to use neither the assignment operator
64793         nor the comma operator in an if-expression.
64794
64795 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64796
64797         * lib/closeout.c:
64798         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64799         Remove; no longer needed.
64800         "quotearg.h": Add include.
64801         (file_name): Do not bother to explicitly initialize to NULL; it's less
64802         efficient on some hosts.
64803         (close_stdout_status): Remove test as to whether stdout was already
64804         closed; it breaks for the case "echo x | sort >&-".
64805         Quote file name colons.
64806         Do not assume that _("write error") lacks format strings.
64807
64808 2000-05-15  Jim Meyering  <meyering@lucent.com>
64809
64810         * lib/version-etc.c (version_etc_copyright): Update the copyright
64811         string used in all --version output.
64812
64813 2000-05-14  Jim Meyering  <meyering@lucent.com>
64814
64815         * lib/closeout.c (close_stdout_set_file_name): New function.
64816         (close_stdout_status): Use new file-scoped global.
64817         Return right away if fstat says the stdout file descriptor is invalid.
64818         * lib/closeout.h (close_stdout_set_file_name): Declare.
64819
64820 2000-05-10  Jim Meyering  <meyering@lucent.com>
64821
64822         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64823         (close_stdout_set_status): New function.
64824         * lib/closeout.h (close_stdout_set_status): Declare.
64825
64826 2000-05-09  Jim Meyering  <meyering@lucent.com>
64827
64828         * m4/gettext.m4: Rename this...
64829         * m4/libintl.m4: ...to this.
64830
64831 2000-05-08  Jim Meyering  <meyering@lucent.com>
64832
64833         * lib/long-options.c: Don't include closeout.h.
64834         (parse_long_options): Don't call close_stdout for --version.
64835
64836 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64837
64838         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64839         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64840         2.1.3 bug.  This avoids a clash when files like regex.c define
64841         _GNU_SOURCE.
64842
64843 2000-05-06  Jim Meyering  <meyering@lucent.com>
64844
64845         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64846         (AC_REPLACE_FUNCS): Add strnlen.
64847
64848         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64849         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64850
64851         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64852         AC_SEARCH_LIBS call for nanosleep.
64853         (LIB_NANOSLEEP): Set and AC_SUBST.
64854
64855 2000-05-06  Jim Meyering  <meyering@lucent.com>
64856
64857         * lib/strnlen.c: Undefine __strnlen and strnlen.
64858         [!weak_alias]: Define __strnlen to strnlen.
64859
64860         * lib/atexit.c: New file, from libiberty.
64861
64862 2000-05-06  Jim Meyering  <meyering@lucent.com>
64863
64864         * lib/closeout.c (close_stdout_status): Also check for errors on the
64865         stderr stream.
64866
64867 2000-05-05  Jim Meyering  <meyering@lucent.com>
64868
64869         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64870         AC_SEARCH_LIBS call for clock_gettime.
64871         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64872
64873         * m4/search-libs.m4: Update from autoconf.
64874
64875         su doesn't work on Solaris 2.6.
64876         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64877         <shadow.h>.  Reported by Dragos Harabor.
64878
64879 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64880
64881         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64882         memcpy instead of xmalloc, xrealloc, path_concat.
64883         (locale_charset): Treat empty environment variables as absent.
64884         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64885
64886 2000-05-04  Jim Meyering  <meyering@lucent.com>
64887
64888         * lib/getopt.c: Update from glibc.
64889         * lib/obstack.c: Likewise.
64890         * lib/obstack.h: Likewise.
64891         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64892         file
64893
64894         * lib/regex.h: Likewise.
64895         * lib/strndup.c: Likewise.
64896         * lib/strnlen.c: New file, from glibc.
64897
64898 2000-05-03  Jim Meyering  <meyering@lucent.com>
64899
64900         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64901
64902 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64903
64904         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64905         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64906         compile-time test, rather than inspecting host and OS, to
64907         decide whether to define _LARGEFILE_SOURCE.
64908
64909 2000-05-01  Jim Meyering  <meyering@lucent.com>
64910
64911         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64912
64913         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64914         Based on a patch from Bruno Haible.
64915
64916 2000-05-01  Jim Meyering  <meyering@lucent.com>
64917
64918         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64919
64920 2000-04-29  Jim Meyering  <meyering@lucent.com>
64921
64922         * lib/path-concat.c: Declare strdup only if it's not defined.
64923         * lib/canon-host.c: Likewise.
64924
64925 2000-04-28  Jim Meyering  <meyering@lucent.com>
64926
64927         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64928         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64929         is included first, then limits.h is included by locale.h by libintl.h.
64930         From John David Anglin.
64931
64932 2000-04-25  Jim Meyering  <meyering@lucent.com>
64933
64934         * lib/makepath.c (S_IRWXUGO): Define.
64935         (make_path): Always perform explicit chmod if MODE specifies any
64936         of the `special' permission bits.  Prompted by a bug report against
64937         install from Mate Wierdl and Joost van Baal.
64938
64939 2000-04-18  Jim Meyering  <meyering@lucent.com>
64940
64941         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64942         (jm_PREREQ): Use it.
64943
64944 2000-04-18  Jim Meyering  <meyering@lucent.com>
64945
64946         * lib/README: New file.
64947
64948         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64949         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64950
64951 2000-04-17  Jim Meyering  <meyering@lucent.com>
64952
64953         Get it right :-)
64954         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64955         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64956         Suggestion from Akim Demaille.
64957
64958 2000-04-17  Jim Meyering  <meyering@lucent.com>
64959
64960         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64961         the definition of it to rpl_strftime also defined-away the system's
64962         declaration.
64963
64964 2000-04-15  Jim Meyering  <meyering@lucent.com>
64965
64966         Use `C' to denote so-called `contiguous' files, the same way
64967         that tar does.
64968         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64969         (ftypelet): Use S_ISCTG.
64970         From Michael Deutschmann.
64971
64972 2000-04-14  Jim Meyering  <meyering@lucent.com>
64973
64974         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64975         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64976         clobbered.
64977
64978 2000-04-14  Jim Meyering  <meyering@lucent.com>
64979
64980         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64981
64982 2000-04-13  Jim Meyering  <meyering@lucent.com>
64983
64984         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64985         AH_VERBATIM to insert required #ifndef into config.h.in.
64986         Suggestion from Akim Demaille.
64987
64988 2000-04-12  Jim Meyering  <meyering@lucent.com>
64989
64990         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64991         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64992         Christian Krackowizer.
64993
64994         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64995         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64996         (AC_SYS_LARGEFILE): Require.
64997         (AM_C_PROTOTYPES): Require.
64998
64999 2000-04-08  Jim Meyering  <meyering@lucent.com>
65000
65001         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
65002         names don't conflict.  Reported by Eli Zaretskii.
65003
65004 2000-04-07  Jim Meyering  <meyering@lucent.com>
65005
65006         * lib/putenv.c: Move inclusion of errno.h so it follows that of
65007         sys/types.h, to work around system header problems on AIX 3.2.5.
65008         From Bruno Haible.
65009
65010 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
65011
65012         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
65013         bug.  Deal with the different error behavior of Irix iconv.
65014
65015 2000-04-05  Paul Eggert  <eggert@twinsun.com>
65016
65017         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
65018         IRIX if the installer said otherwise.
65019
65020 2000-04-05  Jim Meyering  <meyering@lucent.com>
65021
65022         Portability tweaks required for ultrix4.3.
65023         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
65024         (jm_CHECK_DECLS): Add getutent to the list of functions.
65025         (_jm_DECL_HEADERS): Add utmpx.h.
65026         From John David Anglin.
65027
65028         * m4/strftime.m4: Back out the 2000-04-02 change.
65029         Instead of that change, simply undefine putenv in the test program.
65030
65031 2000-04-05  Jim Meyering  <meyering@lucent.com>
65032
65033         Portability tweaks required for ultrix4.3.
65034         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
65035         getutent.
65036         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
65037         * lib/canon-host.c: Declare strdup.
65038         * lib/path-concat.c: Likewise.
65039         From John David Anglin.
65040
65041 2000-04-04  Jim Meyering  <meyering@lucent.com>
65042
65043         Be more DOS 8.3-friendly.
65044         * lib/ref-add.sin: Renamed from ref-add.sed.in.
65045         * lib/ref-del.sin: Renamed from ref-del.sed.in.
65046         * lib/Makefile.am: Reflect renaming.
65047         Reported by Eli Zaretskii.
65048
65049         Use a temporary file name that won't clash with `charset.alias'
65050         in the DOS 8.3 name space.
65051         * lib/Makefile.am (charset_tmp): Define.
65052         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
65053         (uninstall-local): Likewise.
65054         Reported by Eli Zaretskii.
65055
65056 2000-04-03  Jim Meyering  <meyering@lucent.com>
65057
65058         * m4/gettext.m4: Fix typo in comment.
65059
65060         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
65061         textutils/configure.in).  Suggestion from Paul Eggert.
65062         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
65063
65064 2000-04-02  Paul Eggert  <eggert@twinsun.com>
65065
65066         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
65067         variable in the shell rather than using putenv, which isn't
65068         portable.  This avoids the configure-time inter-test dependency
65069         on the potentially-renamed putenv function.
65070
65071 2000-03-30  Paul Eggert  <eggert@twinsun.com>
65072
65073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
65074         before checking struct stat.st_blksize, so that
65075         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
65076
65077 2000-03-29  Paul Eggert  <eggert@twinsun.com>
65078
65079         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
65080         since strftime.c uses HAVE_STRFTIME to decide whether to use
65081         the underlying strftime.
65082
65083 2000-03-29  Paul Eggert  <eggert@twinsun.com>
65084
65085         * lib/time/strftime.c (my_strftime): Make sure we call the system
65086         strftime, not ourselves, when invoking the underlying strftime.
65087
65088 2000-03-24  Jim Meyering  <meyering@lucent.com>
65089
65090         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
65091         (charset_alias): Define.
65092         (install-exec-local): Factor out common code.
65093         (uninstall-local): Split lines longer than 80.
65094         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
65095         (SUFFIXES): Define.
65096         (.sed.in.sed): New rule.  Don't redirect directly to $@.
65097         (CLEANFILES): Add ref-add.sed and ref-del.sed.
65098
65099 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
65100
65101         * lib/config.charset: Output a line containing "Packages using this
65102         file".
65103         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
65104         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
65105         ref-del.sed): New rules.
65106
65107 2000-03-17  Jim Meyering  <meyering@lucent.com>
65108
65109         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
65110         Otherwise, include <strings.h>
65111
65112 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
65113
65114         * lib/unicodeio.c (utf8_wctomb): New function.
65115         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
65116         format instead of in UCS-4 with platform dependent endianness.
65117
65118 2000-03-10  Jim Meyering  <meyering@lucent.com>
65119
65120         * m4/lib-check.m4: Look for getspnam in -lgen, too.
65121         From Marco Franzen.
65122
65123 2000-03-07  Paul Eggert  <eggert@twinsun.com>
65124
65125         * lib/savedir.c (savedir): Work even if directory size is
65126         negative; this can happen with some screwy NFS configurations.
65127
65128 2000-03-06  Jim Meyering  <meyering@lucent.com>
65129
65130         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
65131         if it's NULL (because we ran out of memory).  From Bruno Haible.
65132
65133 2000-03-05  Jim Meyering  <meyering@lucent.com>
65134
65135         * lib/localcharset.c ("path-concat.h"): Include.
65136         (get_charset_aliases): Use path_concat instead of ANSI string
65137         concatenation.
65138
65139         * lib/unicodeio.h (PARAMS): Define.
65140         Use it to guard prototype.
65141
65142 2000-03-04  Jim Meyering  <meyering@lucent.com>
65143
65144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
65145         for lib/localcharset.c.
65146
65147 2000-03-04  Jim Meyering  <meyering@lucent.com>
65148
65149         * lib/Makefile.am (install-exec-local): Create $(libdir) before
65150         installing into it.
65151         (uninstall-local): Uncomment this rule so `make distcheck' works
65152         once again.
65153
65154         * lib/unicodeio.c (<errno.h>): Include it.
65155         (errno): Declare if not defined.
65156
65157         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
65158
65159         * lib/config.charset: New version, incorporating remarks from a linux
65160         i18n mailing list.  From Bruno Haible.
65161
65162 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
65163
65164         * m4/codeset.m4: New file.
65165         * m4/iconv.m4: New file.
65166         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
65167
65168 2000-03-03  Jim Meyering  <meyering@lucent.com>
65169
65170         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
65171
65172 2000-03-02  Jim Meyering  <meyering@lucent.com>
65173
65174         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
65175         the messages come out on separate lines.
65176
65177         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
65178         rather than jm_CHECK_DECLARATIONS.
65179         * m4/decl.m4: Remove now-unused file.
65180
65181         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
65182         geteuid.
65183
65184 2000-03-02  Jim Meyering  <meyering@lucent.com>
65185
65186         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
65187
65188 2000-03-01  Jim Meyering  <meyering@lucent.com>
65189
65190         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
65191         * lib/unicodeio.c: Likewise.
65192
65193 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
65194
65195         * lib/config.charset: New file.
65196         * lib/localcharset.c: New file.
65197         * lib/unicodeio.h, lib/unicodeio.c: New files.
65198         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
65199         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
65200         (noinst_HEADERS): Add unicodeio.h.
65201         (all-local, install-exec-local, charset.alias): New targets.
65202
65203 2000-02-28  Paul Eggert  <eggert@twinsun.com>
65204
65205         * lib/quotearg.c (ALERT_CHAR): New macro.
65206         (quotearg_buffer_restyled): Use it.
65207
65208 2000-02-27  Jim Meyering  <meyering@lucent.com>
65209
65210         * m4/check-decl.m4: Add getenv to the list.
65211
65212 2000-02-27  Jim Meyering  <meyering@lucent.com>
65213
65214         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
65215         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
65216
65217         * lib/backupfile.c: Guard inclusion of stdlib.h with
65218         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
65219         Declare malloc if needed.
65220
65221         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
65222         `#ifndef HAVE_DECL..'
65223         now that autoconf always defines the HAVE_DECL_ symbols.
65224         * lib/human.c: Likewise.
65225         * lib/same.c: Likewise.
65226         * lib/strtoumax.c: Likewise.
65227
65228         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
65229         declaration check was not run.
65230         * lib/hash.c: Likewise.
65231         * lib/human.c: Likewise.
65232         * lib/same.c: Likewise.
65233         * lib/strtoumax.c: Likewise.
65234
65235         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
65236         `.', then first look up the entire `.'-containing string as a login
65237         name.
65238
65239 2000-02-23  Jim Meyering  <meyering@lucent.com>
65240
65241         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
65242         in place of my hack.
65243
65244 2000-02-18  Paul Eggert  <eggert@twinsun.com>
65245
65246         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
65247         (textint): New typedef.
65248         (parser_control): Member year changed from int to textint.
65249         All uses changed.
65250         (YYSTYPE): Removed; replaced by %union with int and textint members.
65251         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
65252         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
65253         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
65254         (tSNUMBER, tUNUMBER): Now of type <textintval>.
65255         (date, number, to_year): Use width of number in digits, not its value,
65256         to determine whether it's a 2-digit year, or a 2-digit time.
65257         (yylex): Store number of digits of numeric tokens.
65258         Reported by John Kendall.
65259
65260         (parser_control): Changed from struct parser_control to typedef (for
65261         consistency).  All uses changed.
65262
65263         (tID): Removed; not used.
65264         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
65265
65266 2000-02-14  Paul Eggert  <eggert@twinsun.com>
65267
65268         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
65269         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
65270
65271 2000-02-12  Jim Meyering  <meyering@lucent.com>
65272
65273         * lib/userspec.c (ISDIGIT): Define it.
65274         (isdigit): Remove definition.
65275         (is_number): Use ISDIGIT, not isdigit.
65276         <libintl.h>: Include.
65277         (_ and N_): Define.
65278         (parse_user_spec): Mark translatable strings.
65279
65280 2000-02-10  Jim Meyering  <meyering@lucent.com>
65281
65282         With these changes, nanosleep.[ch] are finally enough like the other
65283         lib/* replacement files to compile on a few more losing systems.
65284
65285         * lib/nanosleep.h: Don't include config.h.
65286         Remove prototype from declaration of nanosleep.
65287         (PARAMS): Remove now-unneeded definition.
65288         * lib/nanosleep.c: #undef nanosleep.
65289         (rpl_nanosleep): Rename from nanosleep.
65290
65291 2000-02-10  Jim Meyering  <meyering@lucent.com>
65292
65293         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
65294         gnu_nanosleep to rpl_nanosleep.
65295
65296 2000-02-09  Jim Meyering  <meyering@lucent.com>
65297
65298         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
65299         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
65300
65301 2000-02-08  Akim Demaille  <akim@epita.fr>
65302
65303         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
65304         `[' and `]' and remove uses of `changequote'.
65305         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
65306         (AC_SYS_LARGEFILE): Likewise.
65307         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65308         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
65309         of changequote.
65310         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
65311         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
65312         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
65313         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
65314
65315 2000-02-05  Jim Meyering  <meyering@lucent.com>
65316
65317         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
65318         Remove explicit use of AC_HEADER_TIME.  It is required by
65319         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
65320         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
65321         in autoconf whereby the expansion of the latter ended up preceding
65322         the expansion of its prerequisite, AC_HEADER_TIME.
65323         Reported by Volker Borchert.
65324
65325 2000-02-03  Jim Meyering  <meyering@lucent.com>
65326
65327         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
65328
65329 2000-02-03  Jim Meyering  <meyering@lucent.com>
65330
65331         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
65332         rather than with `#if HAVE_UTMPNAME'.
65333
65334 2000-02-02  Jim Meyering  <meyering@lucent.com>
65335
65336         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
65337         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
65338         Reported by Eli Zaretskii.
65339
65340 2000-02-01  Jim Meyering  <meyering@lucent.com>
65341
65342         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
65343
65344 2000-01-31  Jim Meyering  <meyering@lucent.com>
65345
65346         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
65347         functions.  Add the time.h and sys/time.h headers along with the
65348         AC_REQUIRE'ment of AC_HEADER_TIME.
65349
65350 2000-01-31  Jim Meyering  <meyering@lucent.com>
65351
65352         * lib/nanosleep.h (nanosleep): Guard declaration with
65353         `#if ! HAVE_DECL_NANOSLEEP'.
65354         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
65355         the declaration in that vendor's sys/timers.h.
65356         Reported by Christian Krackowizer.
65357
65358         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
65359         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
65360         (ISPRINT): Likewise.
65361         Reported by Tom Tromey.
65362
65363 2000-01-30  Jim Meyering  <meyering@lucent.com>
65364
65365         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
65366
65367         * m4/prereq.m4 (utmp_includes): Define.
65368         Check for ut_user and ut_name members in both struct utmpx
65369         and struct utmp.
65370
65371 2000-01-30  Jim Meyering  <meyering@lucent.com>
65372
65373         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
65374         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
65375         header files where only utmpx.ut_user is declared.
65376
65377         * lib/readutmp.h (UT_USER): Define.
65378
65379 2000-01-29  Jim Meyering  <meyering@lucent.com>
65380
65381         * m4/lib-check.m4: New file containing library-related checks from
65382         fileutils and sh-utils (textutils had none).
65383
65384 2000-01-28  Jim Meyering  <meyering@lucent.com>
65385
65386         * m4/perl.m4: Change format of warning message to look more like that
65387         from the missing script.  Suggestion from François Pinard.
65388
65389 2000-01-25  Jim Meyering  <meyering@lucent.com>
65390
65391         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
65392         well as time.h in the compile check.
65393         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
65394         Fix typo in cross-compiling case: s/yes/no/.
65395
65396 2000-01-23  Jim Meyering  <meyering@lucent.com>
65397
65398         * m4/jm-macros.m4: Move df-related tests here from
65399         fileutils/configure.in
65400
65401         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
65402         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
65403
65404         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
65405         s/space/ac_fsusage_space/.
65406         (jm_FILE_SYSTEM_USAGE): Take two parameters.
65407
65408         * m4/ftruncate.m4: New file (derived from part of
65409         fileutils/configure.in).
65410         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
65411         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
65412
65413         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
65414         AC_SUBST these here, rather than just in sh-util/configure.in, so
65415         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
65416         all the same.
65417         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
65418         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
65419         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
65420         (AC_SUBST(POW_LIBM)): Likewise.
65421         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
65422
65423 2000-01-23  Jim Meyering  <meyering@lucent.com>
65424
65425         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
65426         obstack.c.
65427
65428 2000-01-22  Jim Meyering  <meyering@lucent.com>
65429
65430         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
65431
65432         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
65433
65434         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
65435         configure.in
65436         (AC_CHECK_HEADERS): Likewise for sh-utils.
65437         (AC_CHECK_HEADERS): Likewise for textutils.
65438         Merge the three lists of headers.
65439
65440         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
65441         from fileutils' configure.in.
65442
65443         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
65444         code. Moved tests into their own function (_jm_DECL_HEADERS) in
65445         check-decl.m4.
65446
65447         * m4/check-decl.m4: Use #if rather than #ifdef.
65448         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
65449         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
65450         (_jm_DECL_HEADERS): Define new function.
65451         (jm_CHECK_DECLARATIONS): Require it.
65452
65453 2000-01-22  Jim Meyering  <meyering@lucent.com>
65454
65455         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
65456         [! HAVE_DECL_STRTOULL]: Declare strtoull.
65457         Required for some AIX systems.  Reported by Christian Krackowizer.
65458         [TESTING] (main): New function.
65459
65460         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
65461         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
65462         letters.
65463
65464         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
65465         iswprint.
65466
65467         * lib/strverscmp.c (ISDIGIT): Define.
65468         (strverscmp): Use ISDIGIT, not isdigit.
65469
65470 2000-01-19  Jim Meyering  <meyering@lucent.com>
65471
65472         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
65473         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
65474         defines `struct timespec' in <sys/time.h>
65475
65476         * m4/c-bs-a.m4: Remove uses of changequote altogether.
65477         Thanks to Akim for explaining.
65478
65479 2000-01-17  Paul Eggert  <eggert@twinsun.com>
65480
65481         * lib/nanosleep.c (nanosleep):
65482         Don't use SA_INTERRUPT to decide whether to call sigaction, as
65483         POSIX.1 doesn't require SA_INTERRUPT and some systems
65484         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
65485         it's been part of POSIX.1 since day 1 (in 1988).
65486
65487 2000-01-17  Jim Meyering  <meyering@lucent.com>
65488
65489         * lib/interlock: Remove unused file.  Reported by François Pinard.
65490
65491 2000-01-16  Paul Eggert  <eggert@twinsun.com>
65492
65493         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
65494         alert, backslash, formfeed, and vertical tab unnecessarily in
65495         shell quoting style.
65496
65497 2000-01-16  Jim Meyering  <meyering@lucent.com>
65498
65499         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
65500         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
65501         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
65502         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
65503
65504 2000-01-16  Jim Meyering  <meyering@lucent.com>
65505
65506         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
65507         because the latter didn't work.
65508
65509 2000-01-15  Jim Meyering  <meyering@lucent.com>
65510
65511         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
65512         (AC_REPLACE_FUNCS): Add memcpy and memset.
65513         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
65514         Add strpbrk.
65515         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
65516
65517 2000-01-12  Jim Meyering  <meyering@lucent.com>
65518
65519         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
65520         (jm_PREREQ): Use it.
65521         (jm_PREREQ_READUTMP): New macro.
65522         (jm_PREREQ): Use it.
65523
65524 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65525
65526         Quote multibyte characters correctly.
65527         * m4/c-bs-a.m4: New file.
65528         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
65529         (jm_PREREQ): Use it.
65530
65531 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65532
65533         * m4/uintmax_t.m4: Port to autoconf 2.13.
65534
65535 2000-01-08  Jim Meyering  <meyering@ascend.com>
65536
65537         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
65538         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
65539
65540 2000-01-04  Jim Meyering  <meyering@ascend.com>
65541
65542         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
65543         jm_STRUCT_DIRENT_D_TYPE.
65544         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
65545         jm_STRUCT_DIRENT_D_INO.
65546         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
65547         jm_STRUCT_UTIMBUF.
65548         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
65549         renamings.
65550         * m4/utime.m4: Likewise.
65551
65552         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
65553         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
65554
65555 2000-01-03  Paul Eggert  <eggert@twinsun.com>
65556
65557         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
65558         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
65559
65560 2000-01-02  Jim Meyering  <meyering@ascend.com>
65561
65562         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
65563         remember if this is necessary.
65564
65565 1999-12-26  Jim Meyering  <meyering@ascend.com>
65566
65567         * m4/jm-macros.m4: Use it here.
65568         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
65569
65570 1999-12-23  Jim Meyering  <meyering@ascend.com>
65571
65572         * m4/jm-macros.m4: Check for clock_gettime (moved from
65573         fileutils/configure.in)
65574         Check for gettimeofday.
65575
65576 1999-12-20  Jim Meyering  <meyering@ascend.com>
65577
65578         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
65579         autoconf-2.14a-1999-12-20.
65580
65581 1999-12-19  Jim Meyering  <meyering@ascend.com>
65582
65583         * m4/lstat-slash.m4: New file.
65584         * m4/jm-macros.m4: Use the new macro:
65585         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65586
65587 1999-12-07  Jim Meyering  <meyering@ascend.com>
65588
65589         * m4/perl.m4: Require that File::Compare be available, too.
65590         Too many systems seem to lack it.
65591
65592         * m4/strftime.m4: Add checks for most of the cpp macros tested in
65593         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
65594
65595 1999-11-18  Paul Eggert  <eggert@twinsun.com>
65596
65597         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
65598         problem with the QNX 4.25 shell, which doesn't propagate exit
65599         status of failed commands inside shell assignments.
65600
65601 1999-11-17  Jim Meyering  <meyering@ascend.com>
65602
65603         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
65604
65605 1999-11-07  Jim Meyering  <meyering@ascend.com>
65606
65607         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
65608
65609 1999-11-06  Jim Meyering  <meyering@ascend.com>
65610
65611         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
65612         * m4/jm-macros.m4 (jm_MACROS): Use it here.
65613
65614 1999-11-05  Jim Meyering  <meyering@ascend.com>
65615
65616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
65617         configure.in of textutils, fileutils, and sh-utils into this one
65618         (shared between those packages) file.
65619         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65620         AC_STRUCT_ST_BLKSIZE.
65621
65622 1999-11-03  Jim Meyering  <meyering@ascend.com>
65623
65624         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65625         of AC_CHECK_TYPE checks includes unistd.h.
65626         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65627         Suggestion from Akim Demaille.
65628
65629 1999-10-30  Jim Meyering  <meyering@ascend.com>
65630
65631         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65632         m4-quoted string.
65633         * m4/ls-mntd-fs.m4: Likewise.
65634         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65635         * m4/jm-winsz1.m4: Likewise.
65636
65637         * m4/const.m4: Remove file, since the fix made it into the experimental
65638         version of autoconf.
65639         * m4/mktime.m4: Likewise.
65640
65641         * m4/check-type.m4: Remove file, now that the latest version of
65642         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65643
65644         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65645         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65646         AC_CHECK_TYPE.
65647
65648 1999-10-04  Jim Meyering  <meyering@ascend.com>
65649
65650         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65651
65652 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65653
65654         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65655         2.95.1 bug with HP-UX 10.20.
65656
65657 1999-09-17  Jim Meyering  <meyering@ascend.com>
65658
65659         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65660         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65661         due to missing strdup (against sh-utils-2.0).
65662
65663 1999-08-29  Jim Meyering  <meyering@ascend.com>
65664
65665         * m4/jm-macros.m4: Require jm_BISON.
65666         * m4/bison.m4: New file.
65667
65668 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65669
65670         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65671         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65672
65673 1999-08-05  Jim Meyering  <meyering@ascend.com>
65674
65675         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65676         to avoid conflicts with `conftest' on 8+3 filesystems.
65677         Suggestion from Eli Zaretskii.
65678
65679 1999-08-04  Jim Meyering  <meyering@ascend.com>
65680
65681         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65682         fileutils and sh-utils (textutils's getline test was inadequate).
65683         (AM_FUNC_GETLINE): Run this test.
65684         (AC_CHECK_FUNCS): Check for getdelim.
65685         Reported by Bob Proulx.
65686
65687 1999-08-02  Jim Meyering  <meyering@ascend.com>
65688
65689         * m4/jm-macros.m4: Add a comment.
65690
65691 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65692
65693         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65694         <inttypes.h> defines strtoumax as a macro (and not as a
65695         function).
65696
65697 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65698
65699         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65700         that we can shift, multiply and divide unsigned long long
65701         values; Ultrix cc can't do it.
65702
65703 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65704
65705         * m4/mktime.m4: New file, which is a preview of what should appear
65706         in the next public autoconf release.
65707
65708 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65709
65710         * m4/lfs.m4: Remove this file.
65711         * m4/largefile.m4: New file.  It contains the old contents of
65712         lfs.m4, except that all names with prefix AC_LFS have been
65713         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65714         compatible with future autoconf versions.  Also, some minor m4
65715         quoting problems have been fixed.
65716
65717 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65718
65719         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65720         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65721         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65722         and simplify the shell code.
65723
65724 1999-08-01  Jim Meyering  <meyering@ascend.com>
65725
65726         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65727         m4.
65728
65729 1999-07-20  Jim Meyering  <meyering@ascend.com>
65730
65731         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65732
65733 1999-07-15  Jim Meyering  <meyering@ascend.com>
65734
65735         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65736
65737 1999-05-22  Jim Meyering  <meyering@ascend.com>
65738
65739         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65740
65741 1999-05-20  Jim Meyering  <meyering@ascend.com>
65742
65743         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65744         Add a colon after each `then' in case $4 is empty.
65745
65746 1999-05-16  Jim Meyering  <meyering@ascend.com>
65747
65748         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65749
65750 1999-05-10  Jim Meyering  <meyering@ascend.com>
65751
65752         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65753
65754         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65755         AC_FUNC_MKTIME.
65756
65757 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65758
65759         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65760
65761 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65762
65763         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65764         not CPPFLAGS, so that linking works correctly in IRIX.
65765
65766 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65767
65768         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65769
65770 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65771
65772         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65773         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65774         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65775         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65776         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65777
65778         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65779
65780 1999-04-20  Jim Meyering  <meyering@ascend.com>
65781
65782         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65783         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65784         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65785
65786 1999-04-18  Jim Meyering  <meyering@ascend.com>
65787
65788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65789         * m4/jm-macros.m4: Use it.
65790
65791 1999-04-06  Jim Meyering  <meyering@ascend.com>
65792
65793         * m4/strftime.m4: Remove test for %f.
65794
65795 1999-03-29  Jim Meyering  <meyering@ascend.com>
65796
65797         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65798         superset of the AC_TYPE_* checks in the textutils, fileutils,
65799         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65800         AC_TYPE_PID_T.
65801
65802 1999-03-28  Jim Meyering  <meyering@ascend.com>
65803
65804         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65805         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65806         replaced e.g., in the *.sh files of the sh-utils.
65807
65808 1999-03-20  Jim Meyering  <meyering@ascend.com>
65809
65810         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65811         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65812         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65813
65814 1999-03-19  Jim Meyering  <meyering@ascend.com>
65815
65816         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65817
65818 1999-03-12  Jim Meyering  <meyering@ascend.com>
65819
65820         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65821
65822 1999-03-07  Jim Meyering  <meyering@ascend.com>
65823
65824         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65825         declared.
65826
65827 1999-02-17  Jim Meyering  <meyering@ascend.com>
65828
65829         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65830         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65831
65832 1999-02-07  Jim Meyering  <meyering@ascend.com>
65833
65834         * m4/group-member.m4: New file -- extracted from sh-utils'
65835         configure.in.
65836
65837         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65838         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65839
65840 1999-02-06  Jim Meyering  <meyering@ascend.com>
65841
65842         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65843         * m4/fnmatch.m4: Likewise.
65844         * m4/getgroups.m4: Likewise.
65845         * m4/lstat.m4: Likewise.
65846         * m4/malloc.m4: Likewise.
65847         * m4/putenv.m4: Likewise.
65848         * m4/realloc.m4: Likewise.
65849         * m4/regex.m4: Likewise.
65850         * m4/stat.m4: Likewise.
65851         * m4/strftime.m4: Likewise.
65852         Suggestion from Alain Magloire.
65853
65854         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65855         * m4/fnmatch.m4: Likewise.
65856         * m4/getgroups.m4: Likewise.
65857         * m4/getline.m4: Likewise.
65858         * m4/lstat.m4: Likewise.
65859         * m4/malloc.m4: Likewise.
65860         * m4/memcmp.m4: Likewise.
65861         * m4/putenv.m4: Likewise.
65862         * m4/realloc.m4: Likewise.
65863         * m4/regex.m4: Likewise.
65864         * m4/stat.m4: Likewise.
65865         * m4/strftime.m4: Likewise.
65866         Suggestion from Alain Magloire.
65867
65868         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65869         an argument.
65870
65871         * m4/regex.m4: Add a run-time Test for proper operation of
65872         re_compile_pattern.
65873
65874 1999-01-31  Jim Meyering  <meyering@ascend.com>
65875
65876         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65877
65878 1999-01-30  Jim Meyering  <meyering@ascend.com>
65879
65880         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65881
65882         * m4/jm-mktime.m4: Make this a wrapper around the official
65883         AM_FUNC_MKTIME rather than my private copy, now that the official one
65884         is up to date.
65885         * m4/mktime.m4: Remove file.
65886
65887         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65888         * m4/uptime.m4: Likewise.
65889         * m4/uintmax_t.m4: Likewise.
65890
65891 1999-01-28  Jim Meyering  <meyering@ascend.com>
65892
65893         * m4/jm-macros.m4: Use jm_AFS.
65894         * m4/afs.m4: New file (from fileutils' configure.in).
65895
65896         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65897         * m4/chown.m4: Likewise.
65898         * m4/d-ino.m4: Likewise.
65899         * m4/d-type.m4: Likewise.
65900         * m4/fnmatch.m4: Likewise.
65901         * m4/getgroups.m4: Likewise.
65902         * m4/gettext.m4: Likewise.
65903         * m4/jm-mktime.m4: Likewise.
65904         * m4/jm-winsz2.m4: Likewise.
65905         * m4/lcmessage.m4: Likewise.
65906         * m4/ls-mntd-fs.m4: Likewise.
65907         * m4/malloc.m4: Likewise.
65908         * m4/memcmp.m4: Likewise.
65909         * m4/putenv.m4: Likewise.
65910         * m4/realloc.m4: Likewise.
65911         * m4/st_mtim.m4: Likewise.
65912         * m4/strftime.m4: Likewise.
65913
65914 1999-01-16  Jim Meyering  <meyering@ascend.com>
65915
65916         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65917         (ARGMATCH_DIE_DECL): Define.
65918
65919 1999-01-12  Jim Meyering  <meyering@ascend.com>
65920
65921         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65922         Reported by Lars Hecking.
65923
65924 1999-01-10  Jim Meyering  <meyering@ascend.com>
65925
65926         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65927         gross kludge.
65928         * m4/inttypes_h.m4: Likewise.
65929         * m4/lstat.m4: Likewise.
65930         * m4/malloc.m4: Likewise.
65931         * m4/readdir.m4: Likewise.
65932         * m4/realloc.m4: Likewise.
65933         * m4/st_dm_mode.m4: Likewise.
65934         * m4/stat.m4: Likewise.
65935         * m4/utimbuf.m4: Likewise.
65936         * m4/utimes.m4: Likewise.
65937
65938         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65939         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65940         comments in config.h.in are meaningful.
65941
65942         * m4/jm-macros.m4: Require autoconf-2.13 here.
65943
65944         * m4/regex.m4: By default, don't use the included regex.c on systems
65945         with glibc 2.  Suggestion from Uli Drepper.
65946
65947 1999-01-02  Jim Meyering  <meyering@ascend.com>
65948
65949         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65950
65951 1998-12-18  Jim Meyering  <meyering@ascend.com>
65952
65953         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65954         Based on a suggestion from Lars Hecking.
65955
65956 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65957
65958         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65959
65960 1998-11-16  Jim Meyering  <meyering@ascend.com>
65961
65962         * m4/lfs.m4: Double-quote the `uname...` expression.
65963
65964 1998-11-14  Jim Meyering  <meyering@ascend.com>
65965
65966         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65967         * m4/stat.m4: Likewise.
65968
65969 1998-11-03  Jim Meyering  <meyering@ascend.com>
65970
65971         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65972         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65973
65974 1998-10-18  Jim Meyering  <meyering@ascend.com>
65975
65976         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65977
65978 1998-10-17  Jim Meyering  <meyering@ascend.com>
65979
65980         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65981         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65982         calls for those previously hard-coded headers.  Instead, take a new
65983         parameter.
65984         (jm_CHECK_DECLARATIONS): Reflect interface change.
65985         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65986         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65987
65988         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65989
65990 1998-10-14  Jim Meyering  <meyering@ascend.com>
65991
65992         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65993         instead of "TZ=America/Vancouver".  From Paul Eggert.
65994
65995 1998-10-11  Jim Meyering  <meyering@ascend.com>
65996
65997         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65998         This adds a test for a recently added compatibility fix for mktime.c.
65999         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
66000
66001 1998-09-27  Jim Meyering  <meyering@ascend.com>
66002
66003         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
66004
66005         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
66006         ../configure.in, including a change from Gordon Matzigkeit to allow
66007         cross-compiling for the Hurd.
66008
66009         * m4/glibc.m4: New file/macro to test for the GNU C Library
66010         versions 1 and 2.  From Gordon Matzigkeit.
66011         Indent.
66012
66013 1998-09-21  Jim Meyering  <meyering@ascend.com>
66014
66015         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
66016
66017 1998-08-18  Paul Eggert  <eggert@twinsun.com>
66018
66019         Port nanosecond-resolution times to UnixWare 2.1.2 and
66020         pedantic Solaris 2.6.
66021
66022         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
66023         AC_STRUCT_ST_MTIM.
66024         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
66025         Generate name of ns member, instead of just 1 or undef.
66026         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
66027
66028 1998-08-15  Jim Meyering  <meyering@ascend.com>
66029
66030         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
66031         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
66032         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
66033         instead of jm_TYPE_SSIZE_T.
66034
66035 1998-08-12  Jim Meyering  <meyering@ascend.com>
66036
66037         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
66038
66039 1998-08-02  Jim Meyering  <meyering@ascend.com>
66040
66041         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
66042         in acconfig.h manually.
66043
66044 1998-07-31  Paul Eggert  <eggert@twinsun.com>
66045
66046         * m4/st_mtim.m4: New file.
66047
66048 1998-07-28  Jim Meyering  <meyering@ascend.com>
66049
66050         * m4/utimes.m4: Undef stat.
66051
66052 1998-07-25  Jim Meyering  <meyering@ascend.com>
66053
66054         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
66055         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
66056
66057 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
66058
66059         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
66060         uid and gid actually remain unchanged.
66061
66062 1998-07-07  Jim Meyering  <meyering@ascend.com>
66063
66064         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
66065
66066 1998-07-04  Jim Meyering  <meyering@ascend.com>
66067
66068         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
66069         to prove that this macro can be used in packages without regex.c.
66070
66071 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
66072
66073         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
66074         is to be used.
66075
66076 1998-07-03  Jim Meyering  <meyering@ascend.com>
66077
66078         * m4/gettext.m4: Add -lintl if it's found to be necessary.
66079
66080         * m4/gettext.m4: New file -- from gettext-0.10.35.
66081         * m4/lcmessage.m4: Likewise.
66082         * m4/progtest.m4: Likewise.
66083
66084         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
66085         * m4/jm-macros.m4: Require the new macro.
66086
66087 1998-06-29  Jim Meyering  <meyering@ascend.com>
66088
66089         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
66090         for the definition of NGROUPS (used in a system header included
66091         by sys/mount.h).
66092
66093 1998-06-28  Jim Meyering  <meyering@ascend.com>
66094
66095         * m4/ls-mntd-fs.m4: New file.
66096         * m4/fstypename.m4: New file.
66097
66098         * m4/jm-macros.m4: Require the new macro.
66099         * m4/jm-glibc-io.m4: New file.
66100
66101 1998-05-19  Jim Meyering  <meyering@ascend.com>
66102
66103         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
66104         * m4/lchown.m4: New file.
66105
66106         * m4/Makefile.am.in: New file.
66107         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
66108
66109 1998-05-14  Jim Meyering  <meyering@ascend.com>
66110
66111         * m4/Makefile.am (EXTRA_DIST): Add them.
66112         * m4/jm-macros.m4: New file.
66113         * m4/utimbuf.m4: New file.
66114
66115 1998-05-12  Jim Meyering  <meyering@ascend.com>
66116
66117         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
66118
66119 1998-05-11  Jim Meyering  <meyering@ascend.com>
66120
66121         * m4/isc-posix.m4: New file.
66122
66123 1998-05-10  Jim Meyering  <meyering@ascend.com>
66124
66125         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
66126
66127 1998-05-09  Jim Meyering  <meyering@ascend.com>
66128
66129         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
66130         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
66131         with automake.
66132
66133         * m4/ssize_t.m4: New file.
66134         * m4/mktime.m4: Remove file -- the new automake has this now.
66135
66136 1998-04-26  Jim Meyering  <meyering@ascend.com>
66137
66138         * m4/assert.m4: New file.
66139         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
66140
66141 1998-04-05  Jim Meyering  <meyering@ascend.com>
66142
66143         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
66144         (jm_PREREQ): Use it here.
66145
66146 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
66147
66148         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
66149         in acconfig.h.
66150
66151 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
66152
66153         * m4/prereq.m4: New file.
66154         * m4/error.m4: New file.
66155         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
66156
66157 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
66158
66159         * m4/getline.m4: Don't set am_cv_func_working_getline before the
66160         cache-check for the same variable -- that defeated the purpose of
66161         the test; the test program was never run.  This was a problem only
66162         on systems with losing getline functions -- HP-UX 10.20 is one.
66163         Reported by Bjorn Helgaas.
66164
66165 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
66166
66167         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
66168
66169 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
66170
66171         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
66172
66173         * m4/const.m4: New file.  Use an initializer in this declaration
66174         typedef int charset[2]; const charset x;
66175         Reported by Bob Glickstein.
66176
66177 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
66178
66179         * m4/chown.m4: Fix reversed types on -1 args to chown.
66180         From Kaveh Ghazi.
66181
66182 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
66183
66184         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
66185         Add lseek and memchr.
66186
66187         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
66188         T.E.Dickey <dickey@clark.net> said that some older preprocessors
66189         have a 20-character limit on names.
66190
66191 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
66192
66193         * m4/inttypes_h.m4: New file.
66194         * m4/uintmax_t.m4: New file.
66195         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
66196
66197
66198         -----
66199
66200         Local Variables:
66201         coding: utf-8
66202         End:
66203
66204         Copyright (C) 1997-2010 Free Software Foundation, Inc.
66205
66206         Copying and distribution of this file, with or without
66207         modification, are permitted provided the copyright notice
66208         and this notice are preserved.